aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gpsd/gpsd.inc
diff options
context:
space:
mode:
authorMichael Lippautz <michael.lippautz@gmail.com>2010-02-23 06:34:14 +0000
committerKoen Kooi <koen@openembedded.org>2010-02-25 11:35:44 +0100
commit3d5268dde73267487a810017ed3c43c9523bf732 (patch)
treefd739ced7fd7b2bf9214123a3bb72728a62db161 /recipes/gpsd/gpsd.inc
parentb141cd6cf58156e8d4b410ab93702b3c53393e02 (diff)
downloadopenembedded-3d5268dde73267487a810017ed3c43c9523bf732.tar.gz
gpsd: Bump version to 2.90 and clean recipe
* Removed board related stuff from the main gpsd recipe * Add udev hotplugging support (seperate package 'gpsd-udev') * Modified configuration and initscript in a way that a gps device could either be added by /etc/default/gpsd OR via recipe using the local gpsd socket. * gpsd API changed! look at http://gpsd.berlios.de/#news Signed-off-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'recipes/gpsd/gpsd.inc')
-rw-r--r--recipes/gpsd/gpsd.inc62
1 files changed, 32 insertions, 30 deletions
diff --git a/recipes/gpsd/gpsd.inc b/recipes/gpsd/gpsd.inc
index a917fbea11..85bb36b962 100644
--- a/recipes/gpsd/gpsd.inc
+++ b/recipes/gpsd/gpsd.inc
@@ -4,20 +4,17 @@ PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus-glib ncurses python"
PROVIDES = "virtual/gpsd"
+INC_PR = "r4"
EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
--x-libraries=${STAGING_LIBDIR} \
--enable-dbus \
- --enable-python"
+"
-SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz \
+SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz;name=gpsd \
file://gpsd-default \
- file://gps-hardware \
- file://gpsd"
-
-SRC_URI_append_om-gta01 = " \
- file://restart_gllin.sh \
-"
+ file://gpsd \
+ file://60-gpsd.rules"
inherit autotools_stage update-rc.d
@@ -28,6 +25,8 @@ LDFLAGS += "-L${STAGING_LIBDIR} -lm"
export STAGING_INCDIR
export STAGING_LIBDIR
+TARGET_CC_ARCH += "${LDFLAGS}"
+
do_compile_prepend() {
export BUILD_SYS="${BUILD_SYS}"
export HOST_SYS="${HOST_SYS}"
@@ -40,44 +39,47 @@ do_install_prepend() {
}
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.default
-}
-
-do_install_append_om-gta01() {
- install -d ${D}/${sysconfdir}/apm/resume.d
- install -m 755 ${WORKDIR}/restart_gllin.sh ${D}/${sysconfdir}/apm/resume.d
+ install -d ${D}/${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/
+ install -d ${D}/${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default
+
+ #support for udev
+ install -d ${D}/${sysconfdir}/udev/rules.d
+ install -m 0644 ${WORKDIR}/60-gpsd.rules ${D}/${sysconfdir}/udev/rules.d
+ install -d ${D}${base_libdir}/udev/
+ install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/
+ install -m 0755 ${S}/gpsd.hotplug.wrapper ${D}${base_libdir}/udev/
}
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
+ update-alternatives --remove gpsd-defaults ${sysconfdir}/default/gpsd.default
}
-SRC_URI_OVERRIDES_PACKAGE_ARCH = "0"
-
-PACKAGES =+ "libgps python-pygps gpsd-conf gpsd-gpsctl gps-utils"
-
-PACKAGE_ARCH_gpsd-conf = "${MACHINE_ARCH}"
+PACKAGES =+ "libgps python-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"
RDEPENDS_${PN} = "gpsd-gpsctl"
-RRECOMMENDS_${PN} = "gpsd-conf"
+RRECOMMENDS_${PN} = "gpsd-conf gpsd-udev"
+
+DESCRIPTION_gpsd-udev = "udev relevant files to use gpsd hotplugging"
+FILES_gpsd-udev = "${base_libdir}/* ${sysconfdir}/udev/*"
+RDEPENDS_gpsd-udev += "udev gpsd-conf"
+DESCRIPTION_libgps = "C service library used for communicating with gpsd"
FILES_libgps = "${libdir}/*.so.*"
+
+DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts"
FILES_gpsd-conf = "${sysconfdir}"
+
+DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes"
FILES_gpsd-gpsctl = "${bindir}/gpsctl"
-FILES_gps-utils = "${bindir}/*"
-# might split them up even more fine granular
+DESCRIPTION_gps-utils = "Utils used for simulating, monitoring,... a GPS"
+FILES_gps-utils = "${bindir}/*"
RDEPENDS_gps-utils = "python-pygps"
DESCRIPTION_python-pygps = "Python bindings to gpsd"