[oe-commits] Michael Lippautz : gpsd-device-config: Adds new recipe
git version control
git at git.openembedded.org
Fri Feb 26 22:53:42 UTC 2010
Module: openembedded.git
Branch: shr/unstable
Commit: 0da188d1ae9fa082c986178f299b7fdcf0223240
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=0da188d1ae9fa082c986178f299b7fdcf0223240
Author: Michael Lippautz <michael.lippautz at gmail.com>
Date: Fri Feb 26 07:44:02 2010 +0000
gpsd-device-config: Adds new recipe
* Reintegrates machine specific gps configuration using overrides
(formerly specified in the main gpsd recipe)
Signed-off-by: Koen Kooi <koen at openembedded.org>
---
recipes/gpsd/gpsd-device-config_0.bb | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/recipes/gpsd/gpsd-device-config_0.bb b/recipes/gpsd/gpsd-device-config_0.bb
new file mode 100644
index 0000000..1691c2e
--- /dev/null
+++ b/recipes/gpsd/gpsd-device-config_0.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Configuration for machine specific gps devices"
+SECTION = "console/network"
+PRIORITY = "optional"
+LICENSE = "GPL"
+RDEPENDS_${PN} = "gpsd"
+PR = "r0"
+
+SRC_URI_append_om-gta01 = " \
+ file://restart_gllin.sh \
+ file://gpsd-default \
+ file://gps-hardware \
+"
+
+do_install_append_om-gta01() {
+ install -d ${D}${sysconfdir}/apm/resume.d
+ install -m 755 ${WORKDIR}/om-gta01/restart_gllin.sh ${D}/${sysconfdir}/apm/resume.d
+ install -d ${D}${sysconfdir}/init.d
+ install -m 755 ${WORKDIR}/om-gta01/gps-hardware ${D}${sysconfdir}/init.d
+ install -d ${D}/${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/om-gta01/gpsd-default ${D}/${sysconfdir}/default/gpsd.default
+}
+
+pkg_postinst_append_om-gta01() {
+ update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 50
+}
+
+pkg_postrm_append_om-gta01() {
+ update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
More information about the Openembedded-commits
mailing list