parent
9fd3aad4c9
commit
38cd265fbc
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=GPS Service Daemon
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/gpsd
|
||||
ExecStart=/usr/sbin/gpsd -N -F $GPSD_SOCKET $GPSD_OPTIONS $GPS_DEVICES
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -6,7 +6,7 @@ DEPENDS = "ncurses python"
|
|||
#DEPENDS = "ncurses libusb1 python"
|
||||
PROVIDES = "virtual/gpsd"
|
||||
|
||||
PR = "r3.18"
|
||||
PR = "r3.19"
|
||||
|
||||
SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
|
||||
file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \
|
||||
|
@ -19,6 +19,9 @@ SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
|
|||
file://gpsd \
|
||||
file://60-gpsd.rules \
|
||||
"
|
||||
|
||||
SRC_URI_append_sysmocom-idu = " file://gpsd.service "
|
||||
|
||||
SRC_URI[md5sum] = "fc5b03aae38b9b5b6880b31924d0ace3"
|
||||
SRC_URI[sha256sum] = "706fc2c1cf3dfbf87c941f543381bccc9c4dc9f8240eec407dcbf2f70b854320"
|
||||
|
||||
|
@ -105,6 +108,13 @@ do_install_append() {
|
|||
#install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
|
||||
}
|
||||
|
||||
do_install_append_sysmocom-idu() {
|
||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
|
||||
install -m 0644 ${WORKDIR}/gpsd.service ${D}${systemd_unitdir}/system/
|
||||
ln -sf ../gpsd.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
}
|
||||
|
||||
pkg_postinst_${PN}-conf() {
|
||||
update-alternatives --install ${sysconfdir}/default/gpsd gpsd-defaults ${sysconfdir}/default/gpsd.default 10
|
||||
}
|
||||
|
@ -134,6 +144,7 @@ FILES_libgps = "${libdir}/libgps.so.*"
|
|||
|
||||
DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts"
|
||||
FILES_gpsd-conf = "${sysconfdir}"
|
||||
FILES_gpsd-conf_append_sysmocom-idu = " ${systemd_unitdir}/system/ "
|
||||
CONFFILES_gpsd-conf = "${sysconfdir}/default/gpsd.default"
|
||||
|
||||
DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes"
|
||||
|
|
Loading…
Reference in New Issue