gpsd: update to 3.4

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Denis 'GNUtoo' Carikli
2012-03-09 00:07:47 +01:00
committed by Martin Jansa
parent 8f9b2e3a10
commit 38dac2ac3d
6 changed files with 27 additions and 22 deletions
@@ -2,27 +2,21 @@ DESCRIPTION = "A TCP/IP Daemon simplifying the communication with GPS devices"
SECTION = "console/network" SECTION = "console/network"
LICENSE = "BSD" LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800" LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800"
DEPENDS = "dbus-glib ncurses python libusb1" DEPENDS = "dbus dbus-glib ncurses python libusb1"
PROVIDES = "virtual/gpsd" PROVIDES = "virtual/gpsd"
PR = "r3" PR = "r0"
EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \ SRC_URI = "http://download.savannah.gnu.org/releases/gpsd/gpsd-${PV}.tar.gz;name=gpsd \
--x-libraries=${STAGING_LIBDIR} \
--enable-dbus \
--disable-libQgpsmm \
"
SRC_URI = "http://download.berlios.de/${PN}/${P}bis.tar.gz;name=gpsd \
file://gpsd-default \ file://gpsd-default \
file://gpsd \ file://gpsd \
file://gpsd.socket \ file://gpsd.socket \
file://gpsd.service \ file://gpsd.service \
file://60-gpsd.rules" file://60-gpsd.rules"
SRC_URI[gpsd.md5sum] = "52b00cab0fb34bbf1923ae35c7ced6c4" SRC_URI[gpsd.md5sum] = "c01353459faa68834309109d4e868460"
SRC_URI[gpsd.sha256sum] = "c6d72565bc06b802c749e69808eb7c6ee165962dc17383971c9001b5e1763690" SRC_URI[gpsd.sha256sum] = "79f7de9ead63c7f5d2c9a92e85b5f82e53323c4d451ef8e27ea265ac3ef9a70f"
inherit autotools update-rc.d python-dir systemd inherit scons update-rc.d python-dir systemd
INITSCRIPT_NAME = "gpsd" INITSCRIPT_NAME = "gpsd"
INITSCRIPT_PARAMS = "defaults 35" INITSCRIPT_PARAMS = "defaults 35"
@@ -35,22 +29,28 @@ LDFLAGS += "-L${STAGING_LIBDIR} -lm"
export STAGING_INCDIR export STAGING_INCDIR
export STAGING_LIBDIR export STAGING_LIBDIR
TARGET_CC_ARCH += "${LDFLAGS}" CC += "${LDFLAGS}"
do_configure_prepend() { EXTRA_OESCONS = " \
# skip first libQgpsmm='false' \
sed -i "s#for pylibpath in '/usr/lib'#for pylibpath in #g" ${S}/configure.ac debug='true' \
# disable xmlto, in case xsltproc doesn't work xmlto is used and fails strip='false' \
sed -i "s#AC_CHECK_PROG(WITH_XMLTO#AC_CHECK_PROG(WITH_XMLTO_DISABLED_IN_OE#g" ${S}/configure.ac systemd='true' \
} pkgconfig='${PKG_CONFIG_DIR}' \
"
do_compile_prepend() { do_compile_prepend() {
export LIBPATH="${STAGING_LIBDIR}"
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
export BUILD_SYS="${BUILD_SYS}" export BUILD_SYS="${BUILD_SYS}"
export HOST_SYS="${HOST_SYS}" export HOST_SYS="${HOST_SYS}"
find ${S} -name "*.so" -exec rm -f {} \;
} }
do_install_prepend() { do_install_prepend() {
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
export BUILD_SYS="${BUILD_SYS}" export BUILD_SYS="${BUILD_SYS}"
export HOST_SYS="${HOST_SYS}" export HOST_SYS="${HOST_SYS}"
} }
@@ -67,7 +67,12 @@ do_install_append() {
install -d ${D}${base_libdir}/udev/ install -d ${D}${base_libdir}/udev/
install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/ install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/
install -d ${D}${base_libdir}/udev/ install -d ${D}${base_libdir}/udev/
install -m 0755 ${S}/gpsd.hotplug.wrapper ${D}${base_libdir}/udev/
#support for python
install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
for f in ${S}/gps/* ;do
install $f ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
done
} }
pkg_postinst_${PN}-conf() { pkg_postinst_${PN}-conf() {
@@ -95,7 +100,7 @@ FILES_libgpsd = "${libdir}/libgpsd.so.*"
DESCRIPTION_libgps = "C service library used for communicating with gpsd" DESCRIPTION_libgps = "C service library used for communicating with gpsd"
FILES_libgps = "${libdir}/libgps.so.*" FILES_libgps = "${libdir}/libgps.so.*"
DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts" DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts"
FILES_gpsd-conf = "${sysconfdir}" FILES_gpsd-conf = "${sysconfdir}"
DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes" DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes"