diff --git a/science/gis/component.xml b/science/gis/component.xml new file mode 100644 index 0000000000..ab9385c5bf --- /dev/null +++ b/science/gis/component.xml @@ -0,0 +1,3 @@ + + science.gis + diff --git a/science/gis/gpsd/actions.py b/science/gis/gpsd/actions.py new file mode 100644 index 0000000000..c1c3a67ddb --- /dev/null +++ b/science/gis/gpsd/actions.py @@ -0,0 +1,40 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + shelltools.touch("%s/ChangeLog" % get.curDIR()) + autotools.autoreconf("-fi") + + autotools.configure("--disable-static \ + --disable-libQgpsmm \ + --enable-dbus") + + pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + + +def build(): + autotools.make() + +def install(): + autotools.install() + + # We're using conf.d instead of sysconfig + pisitools.dosed("gpsd.hotplug.wrapper", "sysconfig\/", "conf.d/") + + # Install UDEV files + pisitools.insinto("/lib/udev/rules.d", "gpsd.rules", "99-gpsd.rules") + pisitools.dobin("gpsd.hotplug", "/lib/udev") + pisitools.dobin("gpsd.hotplug.wrapper", "/lib/udev") + + # Fix permissions + shelltools.chmod("%s/usr/lib/%s/site-packages/gps/gps.py" % (get.installDIR(), get.curPYTHON())) + + pisitools.dodoc("README", "TODO", "AUTHORS", "COPYING") diff --git a/science/gis/gpsd/comar/service.py b/science/gis/gpsd/comar/service.py new file mode 100644 index 0000000000..5fd6715684 --- /dev/null +++ b/science/gis/gpsd/comar/service.py @@ -0,0 +1,23 @@ +from comar.service import * + +import os + +serviceType = "local" +serviceDesc = _({"en": "GPS Daemon", + "tr": "GPS Hizmeti"}) +serviceDefault = "off" + +@synchronized +def start(): + startService(command="/usr/sbin/gpsd", + args="-P /run/gpsd.pid -F /run/gpsd.sock %s %s" % + (config.get("OPTIONS", "-n"), config.get("DEVICE", "/dev/ttyUSB0"))) + +@synchronized +def stop(): + stopService(pidfile="/run/gpsd.pid", donotify=True) + if os.path.exists("/run/gpsd.pid"): + os.unlink("/run/gpsd.pid") + +def status(): + return isServiceRunning("/run/gpsd.pid") diff --git a/science/gis/gpsd/files/data/gpsd-logo.png b/science/gis/gpsd/files/data/gpsd-logo.png new file mode 100644 index 0000000000..83ca308013 Binary files /dev/null and b/science/gis/gpsd/files/data/gpsd-logo.png differ diff --git a/science/gis/gpsd/files/data/xgps.desktop b/science/gis/gpsd/files/data/xgps.desktop new file mode 100644 index 0000000000..d614d7a6e5 --- /dev/null +++ b/science/gis/gpsd/files/data/xgps.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=xgps +GenericName=GPS information +GenericName[tr]=GPS bilgi görüntüleyici +Comment=Display GPS information from a gpsd daemon +Comment[tr]=gpsd hizmetinden alınan bilgileri görüntüler +Exec=xgps +Icon=gpsd-logo +Terminal=false +Type=Application +Categories=Application;Graphics; diff --git a/science/gis/gpsd/files/data/xgpsspeed.desktop b/science/gis/gpsd/files/data/xgpsspeed.desktop new file mode 100644 index 0000000000..146d24bac7 --- /dev/null +++ b/science/gis/gpsd/files/data/xgpsspeed.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=xgpsspeed +GenericName=GPS speedometer +GenericName[tr]=GPS hızölçer +Comment=Display GPS speed from a gpsd daemon +Comment[tr]=gpsd hizmetinden alınan hız bilgilerini görüntüler +Exec=xgpsspeed +Icon=gpsd-logo +Terminal=false +Type=Application +Categories=Application;Graphics; diff --git a/science/gis/gpsd/files/fix-libusb-linking.patch b/science/gis/gpsd/files/fix-libusb-linking.patch new file mode 100644 index 0000000000..acbfc5d77b --- /dev/null +++ b/science/gis/gpsd/files/fix-libusb-linking.patch @@ -0,0 +1,97 @@ +Index: gpsd-2.95/Makefile.am +=================================================================== +--- gpsd-2.95.orig/Makefile.am ++++ gpsd-2.95/Makefile.am +@@ -94,12 +94,14 @@ gpxlogger_LDADD = $(DBUS_GLIB_LIBS) libg + # + gpsd_c_sources = gpsd_dbus.c gpsd.c + gpsd_SOURCES = $(gpsd_c_sources) gpsd_dbus.h ++gpsd_LDFLAGS = $(LDFLAGS) + gpsd_LDADD = $(DBUS_LIBS) $(LIBM) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS) + + # + # Build gpsctl + # + gpsctl_SOURCES = gpsctl.c ++gpsctl_LDFLAGS = $(LDFLAGS) + gpsctl_LDADD = $(LIBM) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS) + + # +@@ -120,12 +122,14 @@ lcdgps_LDADD = $(LIBM) libgps.la -lm + gpsmon_SOURCES = gpsmon.c monitor_nmea.c monitor_sirf.c \ + monitor_italk.c monitor_ubx.c monitor_superstar2.c \ + monitor_oncore.c monitor_tnt.c ++gpsmon_LDFLAGS = $(LDFLAGS) + gpsmon_LDADD = $(LIBM) $(NCURSES_LIBS) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS) + + # + # Build gpsdecode + # + gpsdecode_SOURCES = gpsdecode.c ++gpsdecode_LDFLAGS = $(LDFLAGS) + gpsdecode_LDADD = $(LIBM) libgpsd.la libgps.la -lm $(LIBPTHREAD) $(LIBUSB_LIBS) + + # +@@ -138,6 +142,7 @@ libgps_VERSION__REVISION = 0 + libgps_VERSION_AGE = 0 + libgps_VERSION_NUMBER = $(libgps_VERSION_AGE):$(libgps_VERSION__REVISION):$(libgps_VERSION_AGE) + libgps_la_LDFLAGS = -version-number $(libgps_VERSION_CURRENT):$(libgps_VERSION__REVISION):$(libgps_VERSION_AGE) ++libgps_la_LIBADD = $(LIBUSB_LIBS) + lib_LTLIBRARIES = libgps.la libgpsd.la + + libgps_SONAME = $(shell expr $(libgps_VERSION_CURRENT) - $(libgps_VERSION_AGE)) +@@ -249,18 +254,19 @@ libgps_la_SOURCES = $(libgps_c_sources) + + libgpsd_la_SOURCES = $(libgpsd_c_sources) $(libgpsd_h_sources) \ + driver_rtcm2.h packet_states.h ++#libgpsd_la_LIBADD = $(LIBUSB_LIBS) + + # Warning: This overrides autoconf's normal link-line generation process + if LIBGPSMM_ENABLE + libgps_la_SOURCES += libgpsmm.cpp +-libgps_la_LINK = /bin/sh ./libtool --tag=CXX --mode=link g++ $(libgps_la_LDFLAGS) -o $@ ++libgps_la_LINK = /bin/sh ./libtool --tag=CXX --mode=link $(CXX) $(LDFLAGS) $(libgps_la_LDFLAGS) -o $@ + else +-libgps_la_LINK = /bin/sh ./libtool --tag=CC --mode=link gcc $(libgps_la_LDFLAGS) -o $@ ++libgps_la_LINK = /bin/sh ./libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(libgps_la_LDFLAGS) -o $@ + endif + + nodist_libgpsd_la_SOURCES = packet_names.h ais_json.i + libgps_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD) +-libgpsd_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD) $(BLUEZ_LIBS) libgps.la ++libgpsd_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD) $(BLUEZ_LIBS) $(LIBUSB_LIBS) libgps.la + + noinst_SCRIPTS = + +@@ -401,6 +407,7 @@ if LIBGPSMM_ENABLE + # Build test_gpsmm + # + test_gpsmm_SOURCES = test_gpsmm.cpp ++test_gpsmm_LDFLAGS = $(LDFLAGS) + test_gpsmm_LDADD = $(LIBC) libgps.la -lm $(LIBUSB_LIBS) + endif + +@@ -409,7 +416,7 @@ if LIB_Q_GPSMM_ENABLE + # Build test_qgpsmm + # + test_qgpsmm_SOURCES = test_gpsmm.cpp +-test_qgpsmm_LDFLAGS = -Wl,-rpath,$(srcdir)/libQgpsmm/binaries ++test_qgpsmm_LDFLAGS = $(LDFLAGS) -Wl,-rpath,$(srcdir)/libQgpsmm/binaries + test_qgpsmm_LDADD = $(LIBC) $(LIBUSB) $(QtNetwork_LIBS) -LlibQgpsmm/binaries -lQgpsmm + test_qgpsmm_DEPENDENCIES = libQgpsmm/binaries/libQgpsmm.so + endif +@@ -418,12 +425,14 @@ endif + # Build test_bits tester + # + test_bits_SOURCES = test_bits.c ++test_bits_LDFLAGS = $(LDFLAGS) + test_bits_LDADD = $(LIBC) libgpsd.la libgps.la $(LIBUSB_LIBS) + + # + # Build packets tester + # + test_packet_SOURCES = test_packet.c ++test_packet_LDFLAGS = $(LDFLAGS) + test_packet_LDADD = $(LIBC) libgpsd.la libgps.la -lm $(LIBUSB_LIBS) + + # diff --git a/science/gis/gpsd/files/gpsd-2.95-hotplugvars.patch b/science/gis/gpsd/files/gpsd-2.95-hotplugvars.patch new file mode 100644 index 0000000000..410a882f43 --- /dev/null +++ b/science/gis/gpsd/files/gpsd-2.95-hotplugvars.patch @@ -0,0 +1,32 @@ +diff -up gpsd-2.95/gpsd.hotplug.wrapper.hotplugvars gpsd-2.95/gpsd.hotplug.wrapper +--- gpsd-2.95/gpsd.hotplug.wrapper.hotplugvars 2010-07-12 02:40:22.000000000 +0200 ++++ gpsd-2.95/gpsd.hotplug.wrapper 2010-07-15 16:48:08.000000000 +0200 +@@ -3,20 +3,25 @@ + # This file is Copyright (c) 2010 by the GPSD project + # BSD terms apply: see the file COPYING in the distribution root for details. + ++PATH=/usr/sbin:$PATH ++export PATH ++ + if [ -r /etc/default/gpsd ]; then + . /etc/default/gpsd + elif [ -r /etc/sysconfig/gpsd ]; then + . /etc/sysconfig/gpsd ++ GPSD_OPTIONS=$OPTIONS ++ GPSD_SOCKET=$CONTROL_SOCKET + fi + +-if [ -n $GPSD_OPTIONS ]; then ++if [ -n "$GPSD_OPTIONS" ]; then + export GPSD_OPTIONS + fi +-if [ -n $GPSD_SOCKET ]; then ++if [ -n "$GPSD_SOCKET" ]; then + export GPSD_SOCKET + fi + +-if [ -n $USBAUTO ]; then ++if [ -n "$USBAUTO" ]; then + [ "$USBAUTO" = "true" ] || exit 0 + fi + diff --git a/science/gis/gpsd/files/gpsd-2.95-silentmake.patch b/science/gis/gpsd/files/gpsd-2.95-silentmake.patch new file mode 100644 index 0000000000..e626398c88 --- /dev/null +++ b/science/gis/gpsd/files/gpsd-2.95-silentmake.patch @@ -0,0 +1,12 @@ +diff -up gpsd-2.95/setup.py.silentmake gpsd-2.95/setup.py +--- gpsd-2.95/setup.py.silentmake 2010-06-11 10:38:24.000000000 +0200 ++++ gpsd-2.95/setup.py 2010-07-14 17:23:12.000000000 +0200 +@@ -57,7 +57,7 @@ if not 'clean' in sys.argv: + gpspacket_sources = ["gpspacket.c", "packet.c", "isgps.c", + "driver_rtcm2.c", "strl.c", "hex.c", "crc24q.c"] + include_dirs = [ os.path.realpath(os.path.dirname(__file__)) ] +-version_out = os.popen(MAKE + " -s version") ++version_out = os.popen(MAKE + " --no-print-directory version") + version = version_out.read() + print(version) + if version_out.close(): diff --git a/science/gis/gpsd/files/gpsd.sysconfig b/science/gis/gpsd/files/gpsd.sysconfig new file mode 100644 index 0000000000..1f7b1f638a --- /dev/null +++ b/science/gis/gpsd/files/gpsd.sysconfig @@ -0,0 +1,2 @@ +OPTIONS="-n" +DEVICE="/dev/ttyUSB0" diff --git a/science/gis/gpsd/pspec.xml b/science/gis/gpsd/pspec.xml new file mode 100644 index 0000000000..1714860c32 --- /dev/null +++ b/science/gis/gpsd/pspec.xml @@ -0,0 +1,145 @@ + + + + + gpsd + http://gpsd.berlios.de + + PisiLinux Community + admins@pisilinux.org + + BSD + GPS daemon and library to support serial/USB GPS devices + gpsd is a service daemon that monitor one or more GPSes attached to a host computer through serial or USB ports, making all data of the sensors available to be queried on TCP port 2947 of the host computer. + http://www.openadk.org/distfiles/gpsd-2.95.tar.gz + + xmlto + + + gpsd-2.95-hotplugvars.patch + gpsd-2.95-silentmake.patch + fix-libusb-linking.patch + + + + + gpsd + service + library + + /usr/bin + /usr/sbin + /lib/udev + /usr/share/man + /usr/share/doc + /etc/conf.d + /lib/udev/rules.d + /usr/lib + /usr/share/man/man3/libgps* + + + gpsd.sysconfig + + + System.Service + + + + + gpsd-clients + gpsd-logo + app:console + app:gui + + gpsd + + Various text based and graphical clients for gpsd + + /usr/bin/cgps + /usr/bin/gpscat + /usr/bin/gpsdecode + /usr/bin/gpspipe + /usr/bin/gpxlogger + /usr/bin/lcdgps + /usr/bin/xgps + /usr/bin/xgpsspeed + /usr/share/man/man1/gps.1* + /usr/share/man/man1/cgps* + /usr/share/man/man1/gpscat* + /usr/share/man/man1/gpsdecode* + /usr/share/man/man1/gpspipe* + /usr/share/man/man1/gpxlogger* + /usr/share/man/man1/cgpxlogger* + /usr/share/man/man1/lcdgps* + /usr/share/man/man1/xgps* + /usr/share/applications + /usr/share/pixmaps + + + data/gpsd-logo.png + data/xgps.desktop + data/xgpsspeed.desktop + + + + + gpsd-devel + Development files for gpsd + + gpsd + + + /usr/bin/gpsfake + /usr/lib/python*/site-packages/gps/fake* + /usr/include + /usr/lib/pkgconfig + /usr/share/man/man3 + /usr/share/man/man1/gpsfake.1* + + + + + + 2014-09-13 + 2.95 + Rebuild. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-06-14 + 2.95 + Rebuild for gcc + PisiLinux Community + admins@pisilinux.org + + + 2014-02-27 + 2.95 + Rebuild Unused + Varol Maksutoğlu + waroi@pisilinux.org + + + 2014-02-25 + 2.95 + Rebuild + Kamil Atlı + suvarice@gmail.com + + + 2013-07-28 + 2.95 + Dep Fixed + PisiLinux Community + admins@pisilinux.org + + + 2012-10-05 + 2.95 + First release + Erdem Artan + admins@pisilinux.org + + + diff --git a/science/gis/gpsd/translations.xml b/science/gis/gpsd/translations.xml new file mode 100644 index 0000000000..14f5b5675b --- /dev/null +++ b/science/gis/gpsd/translations.xml @@ -0,0 +1,18 @@ + + + + gpsd + Seri ve USB GPS aygıtlarını destekleyen GPS hizmeti ve kütüphanesi + gpsd, çalıştırıldığı makineye bağlı tüm GPS aygıtlarını dinleyen ve 2947. TCP port'undan sunan bir sistem hizmetidir. + + + + gpsd-clients + Çeşitli metin tabanlı ve grafik arayüzlü GPS istemcileri + + + + gpsd-devel + gpsd için geliştirme dosyaları + +