Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: oguiter on Mar 8th, 2013  |  syntax: None  |  size: 1.78 KB  |  views: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. SUMMARY  = "Linux NFC daemon"
  2. DESCRIPTION = "A daemon for the Linux Near Field Communication stack"
  3. HOMEPAGE = "http://01.org/linux-nfc"
  4.  
  5. LICENSE  = "GPLv2"
  6.  
  7. DEPENDS  = "dbus glib-2.0 libnl"
  8.  
  9. inherit autotools pkgconfig update-rc.d
  10.  
  11. INITSCRIPT_NAME = "neard"
  12. INITSCRIPT_PARAMS = "defaults 64"
  13.  
  14. do_install() {
  15.   oe_runmake DESTDIR=${D} libexecdir=${libexecdir} install
  16. }
  17.  
  18. # This would copy neard start-stop shell and test scripts
  19. do_install_append() {
  20.   # start/stop
  21.   install -d ${D}${sysconfdir}/init.d/
  22.  
  23.   sed "s:@installpath@:${libexecdir}:" ${WORKDIR}/neard.in \
  24.                 > ${D}${sysconfdir}/init.d/neard
  25.  
  26.   chmod 0755 ${D}${sysconfdir}/init.d/neard
  27.  
  28.   #test files
  29.   install -d ${D}${libdir}/neard
  30.   install -m 0755 ${S}/test/* ${D}${libdir}/${BPN}/
  31.   install -m 0755 ${S}/tools/nfctool/nfctool ${D}${libdir}/${BPN}/
  32. }
  33.  
  34. RDEPENDS_${PN} = "dbus python python-dbus python-pygobject"
  35.  
  36. # Bluez & Wifi are not mandatory except for handover    "
  37. RRECOMMENDS_${PN} = "\
  38.         ${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez4', '', d)} \
  39.         ${@base_contains('DISTRO_FEATURES', 'wifi','wpa-supplicant', '', d)} \
  40.         "
  41.  
  42. #Additional
  43. PACKAGES =+ "${PN}-tests"
  44.  
  45. FILES_${PN}-tests = "${libdir}/${BPN}/*-test"
  46. FILES_${PN}-dbg += "${libdir}/${BPN}/*/.debug"
  47.  
  48. RDEPENDS_${PN}-tests = "python python-dbus python-pygobject"
  49.  
  50. ##=============================
  51. # This is valid for 0.9+
  52. LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
  53.  file://src/near.h;beginline=1;endline=20;md5=358e4deefef251a4761e1ffacc965d13 \
  54.  "
  55. S       = "${WORKDIR}/git"
  56. SRCREV  = "1e20e396cb837017b7e5ef822bfdab6ce060d2cf"
  57. PV      = "0.9-git${SRCPV}"
  58. PR      = "r1"
  59.  
  60. SRC_URI  = "git://git.kernel.org/pub/scm/network/nfc/neard.git;protocol=git \
  61.         file://neard.in \
  62.         "
  63.  
  64. EXTRA_OECONF += "--enable-tools \
  65.         "