diff options
author | Olivier Guiter <olivier.guiter@linux.intel.com> | 2013-03-12 13:33:52 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-15 01:53:04 +0000 |
commit | ef730a23e37696d72ed50c2d0e4d968abd33de7e (patch) | |
tree | f59713cc46a0924316699fd34d83049ffc6c22f7 | |
parent | e609afe4d747059480b406602cab90b7c36a0572 (diff) | |
download | poky-ef730a23e37696d72ed50c2d0e4d968abd33de7e.tar.gz |
neard: Update reference commit sha1 and install script
This patch installs neard daemon in /usr/lib/neard.
(From OE-Core rev: 415e5bb60bfffe1f3b2acbb3136a45f63bfa91b9)
Signed-off-by: Olivier Guiter <olivier.guiter@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/neard/neard/neard.in (renamed from meta/recipes-connectivity/neard/neard/neard) | 14 | ||||
-rw-r--r-- | meta/recipes-connectivity/neard/neard_0.9.bb | 32 |
2 files changed, 33 insertions, 13 deletions
diff --git a/meta/recipes-connectivity/neard/neard/neard b/meta/recipes-connectivity/neard/neard/neard.in index 5f36174d62..a47d4d96c9 100644 --- a/meta/recipes-connectivity/neard/neard/neard +++ b/meta/recipes-connectivity/neard/neard/neard.in | |||
@@ -1,6 +1,18 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | ||
3 | # start/stop neard daemon. | ||
2 | 4 | ||
3 | DAEMON=/usr/sbin/neard | 5 | ### BEGIN INIT INFO |
6 | # Provides: neard | ||
7 | # Required-Start: $network | ||
8 | # Required-Stop: $network | ||
9 | # Default-Start: S 2 3 4 5 | ||
10 | # Default-Stop: 0 1 6 | ||
11 | # Short-Description: NFC daemon | ||
12 | # Description: neard is a daemon used to enable NFC features | ||
13 | ### END INIT INFO | ||
14 | |||
15 | DAEMON=@installpath@/neard | ||
4 | PIDFILE=/var/run/neard.pid | 16 | PIDFILE=/var/run/neard.pid |
5 | DESC="Linux NFC daemon" | 17 | DESC="Linux NFC daemon" |
6 | 18 | ||
diff --git a/meta/recipes-connectivity/neard/neard_0.9.bb b/meta/recipes-connectivity/neard/neard_0.9.bb index 61ea58cc14..8e33a9da76 100644 --- a/meta/recipes-connectivity/neard/neard_0.9.bb +++ b/meta/recipes-connectivity/neard/neard_0.9.bb | |||
@@ -11,14 +11,24 @@ inherit autotools pkgconfig update-rc.d | |||
11 | INITSCRIPT_NAME = "neard" | 11 | INITSCRIPT_NAME = "neard" |
12 | INITSCRIPT_PARAMS = "defaults 64" | 12 | INITSCRIPT_PARAMS = "defaults 64" |
13 | 13 | ||
14 | do_install() { | ||
15 | oe_runmake DESTDIR=${D} libexecdir=${libexecdir} install | ||
16 | } | ||
17 | |||
14 | # This would copy neard start-stop shell and test scripts | 18 | # This would copy neard start-stop shell and test scripts |
15 | do_install_append() { | 19 | do_install_append() { |
16 | install -d ${D}${sysconfdir}/init.d/ | 20 | # start/stop |
17 | install -m 0755 ${WORKDIR}/neard ${D}${sysconfdir}/init.d/neard | 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 | ||
18 | 27 | ||
19 | install -d ${D}${libdir}/neard | 28 | #test files |
20 | install -m 0755 ${S}/test/* ${D}${libdir}/neard/ | 29 | install -d ${D}${libdir}/neard |
21 | install -m 0755 ${S}/tools/nfctool/nfctool ${D}${libdir}/neard/ | 30 | install -m 0755 ${S}/test/* ${D}${libdir}/${BPN}/ |
31 | install -m 0755 ${S}/tools/nfctool/nfctool ${D}${libdir}/${BPN}/ | ||
22 | } | 32 | } |
23 | 33 | ||
24 | RDEPENDS_${PN} = "dbus python python-dbus python-pygobject" | 34 | RDEPENDS_${PN} = "dbus python python-dbus python-pygobject" |
@@ -32,26 +42,24 @@ RRECOMMENDS_${PN} = "\ | |||
32 | #Additional | 42 | #Additional |
33 | PACKAGES =+ "${PN}-tests" | 43 | PACKAGES =+ "${PN}-tests" |
34 | 44 | ||
35 | FILES_${PN}-tests = "${libdir}/neard/*-test" | 45 | FILES_${PN}-tests = "${libdir}/${BPN}/*-test" |
36 | RDEPENDS_${PN}-tests = "python python-dbus python-pygobject" | 46 | FILES_${PN}-dbg += "${libdir}/${BPN}/*/.debug" |
37 | 47 | ||
38 | FILES_${PN}-dbg += "${bindir}/neard/*/.debug" | 48 | RDEPENDS_${PN}-tests = "python python-dbus python-pygobject" |
39 | 49 | ||
40 | ##============================= | ||
41 | # This is valid for 0.9+ | 50 | # This is valid for 0.9+ |
42 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | 51 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ |
43 | file://src/near.h;beginline=1;endline=20;md5=358e4deefef251a4761e1ffacc965d13 \ | 52 | file://src/near.h;beginline=1;endline=20;md5=358e4deefef251a4761e1ffacc965d13 \ |
44 | " | 53 | " |
45 | S = "${WORKDIR}/git" | 54 | S = "${WORKDIR}/git" |
46 | SRCREV = "7abdb13d106d496e1115fab49e6448a249dfb3c8" | 55 | SRCREV = "1e20e396cb837017b7e5ef822bfdab6ce060d2cf" |
47 | PV = "0.9-git${SRCPV}" | 56 | PV = "0.9-git${SRCPV}" |
48 | PR = "r1" | 57 | PR = "r1" |
49 | 58 | ||
50 | SRC_URI = "git://git.kernel.org/pub/scm/network/nfc/neard.git;protocol=git \ | 59 | SRC_URI = "git://git.kernel.org/pub/scm/network/nfc/neard.git;protocol=git \ |
51 | file://neard \ | 60 | file://neard.in \ |
52 | " | 61 | " |
53 | 62 | ||
54 | EXTRA_OECONF += "--enable-tools \ | 63 | EXTRA_OECONF += "--enable-tools \ |
55 | " | 64 | " |
56 | 65 | ||
57 | |||