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 | |
parent | fca1dffca771f1c6bdcb859ac4fe2d380ee5f404 (diff) | |
download | meta-openembedded-87526c2f21b9ae911d74616e0f74b7eef43fa13a.tar.gz |
gpsd: move systemd support to meta-systemd
Diffstat (limited to 'meta-oe/recipes-navigation')
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service | 10 | ||||
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb | 15 | ||||
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb | 15 | ||||
-rw-r--r-- | meta-oe/recipes-navigation/gpsd/gpsd_git.bb | 14 |
4 files changed, 12 insertions, 42 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service b/meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service deleted file mode 100644 index 7131a589d..000000000 --- a/meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=GPS (Global Positioning System) Daemon | ||
3 | Requires=gpsd.socket | ||
4 | |||
5 | [Service] | ||
6 | EnvironmentFile=/etc/default/gpsd | ||
7 | ExecStart=/usr/sbin/gpsd -N $GPS_DEVICES | ||
8 | |||
9 | [Install] | ||
10 | Also=gpsd.socket | ||
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb index ebc4af6d6..4f3d2d712 100644 --- a/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb +++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.4.bb | |||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800" | |||
5 | DEPENDS = "dbus dbus-glib ncurses python libusb1 chrpath-native" | 5 | DEPENDS = "dbus dbus-glib ncurses python libusb1 chrpath-native" |
6 | PROVIDES = "virtual/gpsd" | 6 | PROVIDES = "virtual/gpsd" |
7 | 7 | ||
8 | PR = "r2" | 8 | PR = "r3" |
9 | 9 | ||
10 | SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ | 10 | SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ |
11 | file://0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch \ | 11 | file://0001-SConstruct-fix-DSO-build-for-ntpshm-garmin_monitor.patch \ |
@@ -15,20 +15,18 @@ SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \ | |||
15 | file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ | 15 | file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ |
16 | file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \ | 16 | file://0001-SConstruct-disable-html-and-man-docs-building-becaus.patch \ |
17 | file://gpsd-default \ | 17 | file://gpsd-default \ |
18 | file://gpsd.service \ | ||
19 | file://gpsd \ | 18 | file://gpsd \ |
20 | file://60-gpsd.rules \ | 19 | file://60-gpsd.rules \ |
21 | " | 20 | " |
22 | SRC_URI[md5sum] = "c01353459faa68834309109d4e868460" | 21 | SRC_URI[md5sum] = "c01353459faa68834309109d4e868460" |
23 | SRC_URI[sha256sum] = "79f7de9ead63c7f5d2c9a92e85b5f82e53323c4d451ef8e27ea265ac3ef9a70f" | 22 | SRC_URI[sha256sum] = "79f7de9ead63c7f5d2c9a92e85b5f82e53323c4d451ef8e27ea265ac3ef9a70f" |
24 | 23 | ||
25 | inherit scons update-rc.d python-dir systemd | 24 | inherit scons update-rc.d python-dir |
26 | 25 | ||
27 | INITSCRIPT_NAME = "gpsd" | 26 | INITSCRIPT_NAME = "gpsd" |
28 | INITSCRIPT_PARAMS = "defaults 35" | 27 | INITSCRIPT_PARAMS = "defaults 35" |
29 | 28 | ||
30 | SYSTEMD_PACKAGES = "${PN}-systemd" | 29 | SYSTEMD_OESCONS ??= "false" |
31 | SYSTEMD_SERVICE = "${PN}.socket" | ||
32 | 30 | ||
33 | export STAGING_INCDIR | 31 | export STAGING_INCDIR |
34 | export STAGING_LIBDIR | 32 | export STAGING_LIBDIR |
@@ -38,7 +36,7 @@ EXTRA_OESCONS = " \ | |||
38 | libQgpsmm='false' \ | 36 | libQgpsmm='false' \ |
39 | debug='true' \ | 37 | debug='true' \ |
40 | strip='false' \ | 38 | strip='false' \ |
41 | systemd='true' \ | 39 | systemd='${SYSTEMD_OESCONS}' \ |
42 | " | 40 | " |
43 | # this cannot be used, because then chrpath is not found and only static lib is built | 41 | # this cannot be used, because then chrpath is not found and only static lib is built |
44 | # target=${HOST_SYS} | 42 | # target=${HOST_SYS} |
@@ -81,11 +79,6 @@ do_install_append() { | |||
81 | #support for python | 79 | #support for python |
82 | install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps | 80 | install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps |
83 | install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps | 81 | install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps |
84 | |||
85 | #support for systemd | ||
86 | install -d ${D}${systemd_unitdir}/system/ | ||
87 | install -m 0644 ${WORKDIR}/${PN}.service ${D}${systemd_unitdir}/system/${PN}.service | ||
88 | install -m 0644 ${S}/systemd/${PN}.socket ${D}${systemd_unitdir}/system/${PN}.socket | ||
89 | } | 82 | } |
90 | 83 | ||
91 | pkg_postinst_${PN}-conf() { | 84 | pkg_postinst_${PN}-conf() { |
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.5.bb index 083163b6d..3cac186e6 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() { |
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_git.bb b/meta-oe/recipes-navigation/gpsd/gpsd_git.bb index 0cf068546..1c7d76fa0 100644 --- a/meta-oe/recipes-navigation/gpsd/gpsd_git.bb +++ b/meta-oe/recipes-navigation/gpsd/gpsd_git.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 = "r1" | 8 | PR = "r2" |
9 | 9 | ||
10 | SRCREV = "f8744f4af8cef211de698df5d8e6caddfe33f29d" | 10 | SRCREV = "f8744f4af8cef211de698df5d8e6caddfe33f29d" |
11 | 11 | ||
@@ -25,13 +25,12 @@ SRC_URI = "git://git.sv.gnu.org/gpsd.git;protocol=git;branch=master \ | |||
25 | " | 25 | " |
26 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |
27 | 27 | ||
28 | inherit scons update-rc.d python-dir systemd | 28 | inherit scons update-rc.d python-dir |
29 | 29 | ||
30 | INITSCRIPT_NAME = "gpsd" | 30 | INITSCRIPT_NAME = "gpsd" |
31 | INITSCRIPT_PARAMS = "defaults 35" | 31 | INITSCRIPT_PARAMS = "defaults 35" |
32 | 32 | ||
33 | SYSTEMD_PACKAGES = "${PN}-systemd" | 33 | SYSTEMD_OESCONS ??= "false" |
34 | SYSTEMD_SERVICE = "${PN}.socket" | ||
35 | 34 | ||
36 | export STAGING_INCDIR | 35 | export STAGING_INCDIR |
37 | export STAGING_LIBDIR | 36 | export STAGING_LIBDIR |
@@ -41,7 +40,7 @@ EXTRA_OESCONS = " \ | |||
41 | libQgpsmm='false' \ | 40 | libQgpsmm='false' \ |
42 | debug='true' \ | 41 | debug='true' \ |
43 | strip='false' \ | 42 | strip='false' \ |
44 | systemd='true' \ | 43 | systemd='${SYSTEMD_OESCONS}' \ |
45 | " | 44 | " |
46 | # this cannot be used, because then chrpath is not found and only static lib is built | 45 | # this cannot be used, because then chrpath is not found and only static lib is built |
47 | # target=${HOST_SYS} | 46 | # target=${HOST_SYS} |
@@ -84,11 +83,6 @@ do_install_append() { | |||
84 | #support for python | 83 | #support for python |
85 | install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps | 84 | install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps |
86 | install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps | 85 | install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps |
87 | |||
88 | #support for systemd | ||
89 | install -d ${D}${systemd_unitdir}/system/ | ||
90 | install -m 0644 ${S}/systemd/${PN}.service ${D}${systemd_unitdir}/system/${PN}.service | ||
91 | install -m 0644 ${S}/systemd/${PN}.socket ${D}${systemd_unitdir}/system/${PN}.socket | ||
92 | } | 86 | } |
93 | 87 | ||
94 | pkg_postinst_${PN}-conf() { | 88 | pkg_postinst_${PN}-conf() { |