gpsdate: Install the service and provide an empty default config
This commit is contained in:
parent
2d93f2256a
commit
8bff0cbee2
|
@ -6,12 +6,13 @@ DEPENDS = "gpsd"
|
|||
RDEPENDS_${PN} = "libgps"
|
||||
|
||||
PE = "1"
|
||||
PR = "r9"
|
||||
PR = "r10"
|
||||
PV = "0.1+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://git.sysmocom.de/gpsdate.git;branch=master \
|
||||
file://gpsdate.default \
|
||||
"
|
||||
SRCREV = "019d2535b60d574c22513726024e1742e6dc4909"
|
||||
SRCREV = "2326eee7898f9a8484d92d31cb16fca14db4a874"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
INITSCRIPT_NAME = "gpsdate"
|
||||
|
@ -24,4 +25,15 @@ do_install() {
|
|||
install -m 0755 ${S}/gpsdate ${D}/${sbindir}/gpsdate
|
||||
install -d ${D}/${sysconfdir}/init.d
|
||||
install -m 0755 ${S}/gpsdate.init ${D}/${sysconfdir}/init.d/gpsdate
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
|
||||
install -m 0644 ${S}/gpsdate.service ${D}${systemd_unitdir}/system
|
||||
ln -sf ../gpsdate.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
|
||||
install -d ${D}/${sysconfdir}/default
|
||||
install -m 0644 ${WORKDIR}/gpsdate.default ${D}/${sysconfdir}/default/gpsdate
|
||||
}
|
||||
|
||||
FILES_${PN} += "${systemd_unitdir}"
|
||||
|
|
Loading…
Reference in New Issue