summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2012-07-11 20:02:06 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2012-07-16 09:39:07 +0200
commit87526c2f21b9ae911d74616e0f74b7eef43fa13a (patch)
tree606454c07192ce7b4a01f1f869f78091f710b128 /meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
parentfca1dffca771f1c6bdcb859ac4fe2d380ee5f404 (diff)
downloadmeta-openembedded-87526c2f21b9ae911d74616e0f74b7eef43fa13a.tar.gz
gpsd: move systemd support to meta-systemd
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb')
-rw-r--r--meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb15
1 files changed, 4 insertions, 11 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
index 083163b6d3..3cac186e61 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800"
5DEPENDS = "dbus dbus-glib ncurses python libusb1" 5DEPENDS = "dbus dbus-glib ncurses python libusb1"
6PROVIDES = "virtual/gpsd" 6PROVIDES = "virtual/gpsd"
7 7
8PR = "r2" 8PR = "r3"
9 9
10DEFAULT_PREFERENCE = "-1" 10DEFAULT_PREFERENCE = "-1"
11SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ 11SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
@@ -16,20 +16,18 @@ SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
16 file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ 16 file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \
17 file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \ 17 file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \
18 file://gpsd-default \ 18 file://gpsd-default \
19 file://gpsd.service \
20 file://gpsd \ 19 file://gpsd \
21 file://60-gpsd.rules \ 20 file://60-gpsd.rules \
22" 21"
23SRC_URI[md5sum] = "e96881798a0ab67aa3cd5f3249f0e536" 22SRC_URI[md5sum] = "e96881798a0ab67aa3cd5f3249f0e536"
24SRC_URI[sha256sum] = "5ebb0b00c49421eb8fbead81342e5ce63e82065e5ff27da586f10e342b999171" 23SRC_URI[sha256sum] = "5ebb0b00c49421eb8fbead81342e5ce63e82065e5ff27da586f10e342b999171"
25 24
26inherit scons update-rc.d python-dir systemd 25inherit scons update-rc.d python-dir
27 26
28INITSCRIPT_NAME = "gpsd" 27INITSCRIPT_NAME = "gpsd"
29INITSCRIPT_PARAMS = "defaults 35" 28INITSCRIPT_PARAMS = "defaults 35"
30 29
31SYSTEMD_PACKAGES = "${PN}-systemd" 30SYSTEMD_OESCONS ??= "false"
32SYSTEMD_SERVICE = "${PN}.socket"
33 31
34export STAGING_INCDIR 32export STAGING_INCDIR
35export STAGING_LIBDIR 33export STAGING_LIBDIR
@@ -39,7 +37,7 @@ EXTRA_OESCONS = " \
39 libQgpsmm='false' \ 37 libQgpsmm='false' \
40 debug='true' \ 38 debug='true' \
41 strip='false' \ 39 strip='false' \
42 systemd='true' \ 40 systemd='${SYSTEMD_OESCONS}' \
43" 41"
44# this cannot be used, because then chrpath is not found and only static lib is built 42# this cannot be used, because then chrpath is not found and only static lib is built
45# target=${HOST_SYS} 43# target=${HOST_SYS}
@@ -82,11 +80,6 @@ do_install_append() {
82 #support for python 80 #support for python
83 install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps 81 install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
84 install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps 82 install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
85
86 #support for systemd
87 install -d ${D}${systemd_unitdir}/system/
88 install -m 0644 ${WORKDIR}/${PN}.service ${D}${systemd_unitdir}/system/${PN}.service
89 install -m 0644 ${S}/systemd/${PN}.socket ${D}${systemd_unitdir}/system/${PN}.socket
90} 83}
91 84
92pkg_postinst_${PN}-conf() { 85pkg_postinst_${PN}-conf() {