mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 17:19:23 +00:00
gpsd: use gpsd.service and gpsd.socket from source tree, drop local files
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=GPS (Global Positioning System) Daemon
|
||||
Requires=gpsd.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/gpsd -N
|
||||
|
||||
[Install]
|
||||
Also=gpsd.socket
|
||||
@@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=GPS (Global Positioning System) Daemon Sockets
|
||||
|
||||
[Socket]
|
||||
ListenStream=/var/run/gpsd.sock
|
||||
ListenStream=127.0.0.1:2947
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
@@ -11,8 +11,6 @@ SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
|
||||
file://0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch \
|
||||
file://gpsd-default \
|
||||
file://gpsd \
|
||||
file://gpsd.socket \
|
||||
file://gpsd.service \
|
||||
file://60-gpsd.rules \
|
||||
"
|
||||
SRC_URI[md5sum] = "c01353459faa68834309109d4e868460"
|
||||
@@ -72,6 +70,11 @@ do_install_append() {
|
||||
#support for python
|
||||
install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
|
||||
install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
|
||||
|
||||
#support for systemd
|
||||
install -d ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${S}/systemd/${PN}.service ${D}${systemd_unitdir}/system/${PN}.service
|
||||
install -m 0644 ${S}/systemd/${PN}.socket ${D}${systemd_unitdir}/system/${PN}.socket
|
||||
}
|
||||
|
||||
pkg_postinst_${PN}-conf() {
|
||||
|
||||
Reference in New Issue
Block a user