diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2008-01-07 23:45:57 +0000 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2008-01-07 23:45:57 +0000 |
commit | 1bf5c3346ac395825d49f895922a61bcdbb238e5 (patch) | |
tree | ec4dc9efef3a2abccb92bdf4312ebd80c96a40b9 /packages/gpsd/gpsd.inc | |
parent | 22a6de3cdd938ecd144efec7e912cb7fa20debe6 (diff) | |
parent | bb3cd6d33b47a8aa00ad8dbef0411a7721720872 (diff) |
merge of '88e2766fe8aa4c69dc8688e0554e2e6d05bb9c67'
and 'f556521018478109967b108bb830f8109aefbb0e'
Diffstat (limited to 'packages/gpsd/gpsd.inc')
-rw-r--r-- | packages/gpsd/gpsd.inc | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/packages/gpsd/gpsd.inc b/packages/gpsd/gpsd.inc index be593e0744..237971c9c7 100644 --- a/packages/gpsd/gpsd.inc +++ b/packages/gpsd/gpsd.inc @@ -3,6 +3,7 @@ SECTION = "console/network" PRIORITY = "optional" LICENSE = "GPL" DEPENDS = "dbus-glib ncurses python" +RDEPENDS = "gpsd-conf" EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \ --x-libraries=${STAGING_LIBDIR} \ @@ -11,8 +12,13 @@ EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \ SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz \ file://gpsd-default \ + file://gps-hardware \ file://gpsd" +SRC_URI_append_fic-gta01 = " \ + file://restart_gllin.sh \ + " + inherit autotools update-rc.d INITSCRIPT_NAME = "gpsd" @@ -41,15 +47,34 @@ do_install_append() { install -d ${D}/${sysconfdir}/init.d install -d ${D}/dev install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/gps-hardware ${D}/${sysconfdir}/init.d/gps-hardware.default install -d ${D}/${sysconfdir}/default - install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd + install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default } -PACKAGES =+ "libgps python-pygps" +do_install_append_fic-gta01() { + install -d ${D}/${sysconfdir}/apm/resume.d + install -m 755 ${WORKDIR}/restart_gllin.sh ${D}/${sysconfdir}/apm/resume.d +} + +pkg_postinst_${PN}-conf() { + update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10 + update-alternatives --install ${sysconfdir}/init.d/gps-hardware gps-hardware ${sysconfdir}/init.d/gps-hardware.default 10 +} + +pkg_postrm_${PN}-conf() { + update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default + update-alternatives --remove gps-hardware ${sysconfdir}/init.d/gps-hardware.default +} + +SRC_URI_OVERRIDES_PACKAGE_ARCH = "0" + +PACKAGES =+ "libgps python-pygps gpsd-conf" + +PACKAGE_ARCH_gpsd-conf = "${MACHINE_ARCH}" -FILES_${PN} += "${sysconfdir}" FILES_libgps = "${libdir}/*.so.*" -CONFFILES_${PN} = "${sysconfdir}/default/gpsd" +FILES_gpsd-conf = "${sysconfdir}" DESCRIPTION_python-pygps = "Python bindings to gpsd" FILES_python-pygps = "${libdir}/*/site-packages/*" |