gpsd.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
|
||||
i = "/usr/bin/env python3 $(which scons)"
|
||||
|
||||
def setup():
|
||||
pass
|
||||
|
||||
def build():
|
||||
shelltools.system("%s target_python=python3 prefix=/usr sbindir=/usr/sbin udevdir=/lib/udev" % i)
|
||||
|
||||
def install():
|
||||
shelltools.system("DESTDIR=%s %s udev-install prefix=/usr" % (get.installDIR(), i))
|
||||
|
||||
# fix shebang
|
||||
shelltools.system("find %s/usr/bin -type f -exec sed -i 's|env\ python$|env python3|g' {} \;" % get.installDIR())
|
||||
|
||||
# Install UDEV files
|
||||
# pisitools.insinto("/lib/udev/rules.d", "gpsd.rules", "99-gpsd.rules")
|
||||
# pisitools.dobin("gpsd.hotplug", "/lib/udev")
|
||||
|
||||
@@ -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/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,2 @@
|
||||
OPTIONS="-n"
|
||||
DEVICE="/dev/ttyUSB0"
|
||||
@@ -0,0 +1,13 @@
|
||||
--- a/SConstruct 2020-08-04 18:40:06.000000000 +0000
|
||||
+++ b/SConstruct 2020-12-12 18:29:38.378386573 +0000
|
||||
@@ -1460,8 +1460,8 @@
|
||||
# follow FHS, put in /usr/local/libXX, not /usr/libXX
|
||||
# may be lib, lib32 or lib64
|
||||
python_libdir = polystr(python_libdir)
|
||||
- python_libdir = python_libdir.replace("/usr/lib",
|
||||
- "/usr/local/lib")
|
||||
+# python_libdir = python_libdir.replace("/usr/lib",
|
||||
+# "/usr/local/lib")
|
||||
python_module_dir = str(python_libdir) + os.sep
|
||||
# Many systems can have a problem with the Python path
|
||||
announce("Ensure your PYTHONPATH includes %s" % python_module_dir)
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/SConstruct 2020-08-04 18:40:06.000000000 +0000
|
||||
+++ b/SConstruct 2020-12-27 05:47:40.748197656 +0000
|
||||
@@ -516,6 +516,7 @@
|
||||
'CWRAPPERS_CONFIG_DIR', # pkgsrc
|
||||
# Variables used in testing
|
||||
'WRITE_PAD', # So we can test WRITE_PAD values on the fly.
|
||||
+ 'PYTHONDONTWRITEBYTECODE',
|
||||
)
|
||||
|
||||
envs = {}
|
||||
@@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gpsd</Name>
|
||||
<Homepage>https://gpsd.gitlab.io/gpsd/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>app</IsA>
|
||||
<IsA>library</IsA>
|
||||
<PartOf>science.gis</PartOf>
|
||||
<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="6d5d232b2a6580390268d27fe67b527df224a646" type="tarxz">
|
||||
http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-3.21.tar.xz
|
||||
</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>scons</Dependency>
|
||||
<Dependency>xmlto</Dependency>
|
||||
<Dependency>dbus-devel</Dependency>
|
||||
<Dependency>libusb-devel</Dependency>
|
||||
<Dependency>libxslt-devel</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>ncurses-devel</Dependency>
|
||||
<Dependency>bluez-libs-devel</Dependency>
|
||||
<Dependency>python3-pyserial</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">pylibdir_no_prefix_replace.patch</Patch>
|
||||
<Patch level="1">use_pythondontwritebytecode_environment_variable.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gpsd</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>dbus</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>libusb</Dependency>
|
||||
<Dependency>ncurses</Dependency>
|
||||
<Dependency>bluez-libs</Dependency>
|
||||
<Dependency>python3-pyserial</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc/conf.d</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="executable">/lib/udev/gpsd.hotplug</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/gpsd/doc</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>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gpsd</Dependency>
|
||||
<Dependency>dbus</Dependency>
|
||||
<Dependency>libusb</Dependency>
|
||||
<Dependency>ncurses</Dependency>
|
||||
<Dependency>bluez-libs</Dependency>
|
||||
<Dependency>python3-pyserial</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/gpsd/icons</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.py</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/man5</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/gpsfake.1</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2020-12-27</Date>
|
||||
<Version>3.21</Version>
|
||||
<Comment>First build.</Comment>
|
||||
<Name>fury</Name>
|
||||
<Email>wascheme@tuta.io</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
|
||||
Reference in New Issue
Block a user