From 8bff0cbee213991dd5f6eda920cf592b43417a32 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 14 Feb 2015 15:59:05 +0100 Subject: [PATCH] gpsdate: Install the service and provide an empty default config --- recipes-extra/gpsdate/files/gpsdate.default | 0 recipes-extra/gpsdate/gpsdate_git.bb | 16 ++++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 recipes-extra/gpsdate/files/gpsdate.default diff --git a/recipes-extra/gpsdate/files/gpsdate.default b/recipes-extra/gpsdate/files/gpsdate.default new file mode 100644 index 0000000..e69de29 diff --git a/recipes-extra/gpsdate/gpsdate_git.bb b/recipes-extra/gpsdate/gpsdate_git.bb index 6a4b05d..ced2184 100644 --- a/recipes-extra/gpsdate/gpsdate_git.bb +++ b/recipes-extra/gpsdate/gpsdate_git.bb @@ -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}"