gpsdate: Install the service and provide an empty default config

This commit is contained in:
Holger Hans Peter Freyther 2015-02-14 15:59:05 +01:00
parent 2d93f2256a
commit 8bff0cbee2
2 changed files with 14 additions and 2 deletions

View File

@ -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}"