Merge branch 'master' of github.com:pisilinux/main
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>science.gis</Name>
|
||||
</PISI>
|
||||
@@ -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")
|
||||
@@ -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")
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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)
|
||||
|
||||
#
|
||||
@@ -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
|
||||
|
||||
@@ -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():
|
||||
@@ -0,0 +1,2 @@
|
||||
OPTIONS="-n"
|
||||
DEVICE="/dev/ttyUSB0"
|
||||
@@ -0,0 +1,145 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gpsd</Name>
|
||||
<Homepage>http://gpsd.berlios.de</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<Summary>GPS daemon and library to support serial/USB GPS devices</Summary>
|
||||
<Description>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.</Description>
|
||||
<Archive sha1sum="af1f575c8ec3a2db7a71c35f2296fd339a4a1ff3" type="targz">http://www.openadk.org/distfiles/gpsd-2.95.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>xmlto</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">gpsd-2.95-hotplugvars.patch</Patch>
|
||||
<Patch level="1">gpsd-2.95-silentmake.patch</Patch>
|
||||
<Patch level="1">fix-libusb-linking.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gpsd</Name>
|
||||
<IsA>service</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="executable">/lib/udev</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="config">/etc/conf.d</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="man">/usr/share/man/man3/libgps*</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/gpsd">gpsd.sysconfig</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gpsd-clients</Name>
|
||||
<Icon>gpsd-logo</Icon>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>app:gui</IsA>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gpsd</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Summary>Various text based and graphical clients for gpsd</Summary>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/cgps</Path>
|
||||
<Path fileType="executable">/usr/bin/gpscat</Path>
|
||||
<Path fileType="executable">/usr/bin/gpsdecode</Path>
|
||||
<Path fileType="executable">/usr/bin/gpspipe</Path>
|
||||
<Path fileType="executable">/usr/bin/gpxlogger</Path>
|
||||
<Path fileType="executable">/usr/bin/lcdgps</Path>
|
||||
<Path fileType="executable">/usr/bin/xgps</Path>
|
||||
<Path fileType="executable">/usr/bin/xgpsspeed</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gps.1*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/cgps*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gpscat*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gpsdecode*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gpspipe*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gpxlogger*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/cgpxlogger*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/lcdgps*</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/xgps*</Path>
|
||||
<Path fileType="data">/usr/share/applications</Path>
|
||||
<Path fileType="data">/usr/share/pixmaps</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/gpsd-logo.png">data/gpsd-logo.png</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/xgps.desktop">data/xgps.desktop</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/xgpsspeed.desktop">data/xgpsspeed.desktop</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gpsd-devel</Name>
|
||||
<Summary>Development files for gpsd</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gpsd</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/gpsfake</Path>
|
||||
<Path fileType="library">/usr/lib/python*/site-packages/gps/fake*</Path>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="man">/usr/share/man/man3</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gpsfake.1*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2014-09-13</Date>
|
||||
<Version>2.95</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-06-14</Date>
|
||||
<Version>2.95</Version>
|
||||
<Comment>Rebuild for gcc</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-02-27</Date>
|
||||
<Version>2.95</Version>
|
||||
<Comment>Rebuild Unused</Comment>
|
||||
<Name>Varol Maksutoğlu</Name>
|
||||
<Email>waroi@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-02-25</Date>
|
||||
<Version>2.95</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvarice@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-07-28</Date>
|
||||
<Version>2.95</Version>
|
||||
<Comment>Dep Fixed</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-05</Date>
|
||||
<Version>2.95</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Erdem Artan</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gpsd</Name>
|
||||
<Summary xml:lang="tr">Seri ve USB GPS aygıtlarını destekleyen GPS hizmeti ve kütüphanesi</Summary>
|
||||
<Description xml:lang="tr">gpsd, çalıştırıldığı makineye bağlı tüm GPS aygıtlarını dinleyen ve 2947. TCP port'undan sunan bir sistem hizmetidir.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gpsd-clients</Name>
|
||||
<Summary xml:lang="tr">Çeşitli metin tabanlı ve grafik arayüzlü GPS istemcileri</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gpsd-devel</Name>
|
||||
<Summary xml:lang="tr">gpsd için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user