diff options
| author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-07-11 20:02:06 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-16 09:39:07 +0200 |
| commit | 87526c2f21b9ae911d74616e0f74b7eef43fa13a (patch) | |
| tree | 606454c07192ce7b4a01f1f869f78091f710b128 /meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb | |
| parent | fca1dffca771f1c6bdcb859ac4fe2d380ee5f404 (diff) | |
| download | meta-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.bb | 15 |
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" | |||
| 5 | DEPENDS = "dbus dbus-glib ncurses python libusb1" | 5 | DEPENDS = "dbus dbus-glib ncurses python libusb1" |
| 6 | PROVIDES = "virtual/gpsd" | 6 | PROVIDES = "virtual/gpsd" |
| 7 | 7 | ||
| 8 | PR = "r2" | 8 | PR = "r3" |
| 9 | 9 | ||
| 10 | DEFAULT_PREFERENCE = "-1" | 10 | DEFAULT_PREFERENCE = "-1" |
| 11 | SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ | 11 | SRC_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 | " |
| 23 | SRC_URI[md5sum] = "e96881798a0ab67aa3cd5f3249f0e536" | 22 | SRC_URI[md5sum] = "e96881798a0ab67aa3cd5f3249f0e536" |
| 24 | SRC_URI[sha256sum] = "5ebb0b00c49421eb8fbead81342e5ce63e82065e5ff27da586f10e342b999171" | 23 | SRC_URI[sha256sum] = "5ebb0b00c49421eb8fbead81342e5ce63e82065e5ff27da586f10e342b999171" |
| 25 | 24 | ||
| 26 | inherit scons update-rc.d python-dir systemd | 25 | inherit scons update-rc.d python-dir |
| 27 | 26 | ||
| 28 | INITSCRIPT_NAME = "gpsd" | 27 | INITSCRIPT_NAME = "gpsd" |
| 29 | INITSCRIPT_PARAMS = "defaults 35" | 28 | INITSCRIPT_PARAMS = "defaults 35" |
| 30 | 29 | ||
| 31 | SYSTEMD_PACKAGES = "${PN}-systemd" | 30 | SYSTEMD_OESCONS ??= "false" |
| 32 | SYSTEMD_SERVICE = "${PN}.socket" | ||
| 33 | 31 | ||
| 34 | export STAGING_INCDIR | 32 | export STAGING_INCDIR |
| 35 | export STAGING_LIBDIR | 33 | export 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 | ||
| 92 | pkg_postinst_${PN}-conf() { | 85 | pkg_postinst_${PN}-conf() { |
