summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb')
-rw-r--r--meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb17
1 files changed, 8 insertions, 9 deletions
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index 27a600f70..f8e6a2b13 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -19,8 +19,9 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
19SRC_URI[md5sum] = "68691b5de4c94f82ec4062b042b5eb63" 19SRC_URI[md5sum] = "68691b5de4c94f82ec4062b042b5eb63"
20SRC_URI[sha256sum] = "03579af13a4d3fe0c5b79fa44b5f75c9f3cac6749357f1d99ce5d38c09bc2029" 20SRC_URI[sha256sum] = "03579af13a4d3fe0c5b79fa44b5f75c9f3cac6749357f1d99ce5d38c09bc2029"
21 21
22inherit scons update-rc.d python-dir pythonnative systemd bluetooth 22inherit scons update-rc.d python-dir pythonnative systemd bluetooth update-alternatives
23 23
24INITSCRIPT_PACKAGES = "gpsd-conf"
24INITSCRIPT_NAME = "gpsd" 25INITSCRIPT_NAME = "gpsd"
25INITSCRIPT_PARAMS = "defaults 35" 26INITSCRIPT_PARAMS = "defaults 35"
26 27
@@ -86,14 +87,6 @@ do_install_append() {
86 install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_unitdir}/system/${BPN}.socket 87 install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_unitdir}/system/${BPN}.socket
87} 88}
88 89
89pkg_postinst_${PN}-conf() {
90 update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10
91}
92
93pkg_postrm_${PN}-conf() {
94 update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default
95}
96
97PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils" 90PACKAGES =+ "libgps libgpsd python-pygps-dbg python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"
98 91
99FILES_${PN}-dev += "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc \ 92FILES_${PN}-dev += "${libdir}/pkgconfdir/libgpsd.pc ${libdir}/pkgconfdir/libgps.pc \
@@ -133,3 +126,9 @@ RPROVIDES_${PN} += "${PN}-systemd"
133RREPLACES_${PN} += "${PN}-systemd" 126RREPLACES_${PN} += "${PN}-systemd"
134RCONFLICTS_${PN} += "${PN}-systemd" 127RCONFLICTS_${PN} += "${PN}-systemd"
135SYSTEMD_SERVICE_${PN} = "${PN}.socket" 128SYSTEMD_SERVICE_${PN} = "${PN}.socket"
129
130
131ALTERNATIVE_${PN} = "gpsd-defaults"
132ALTERNATIVE_PATH = "${sysconfdir}/default/gpsd.default"
133ALTERNATIVE_LINK = "${sysconfdir}/default/gpsd"
134ALTERNATIVE_TARGET = "${sysconfdir}/default/gpsd.default"