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 1/2] 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 0000000000..e69de29bb2 diff --git a/recipes-extra/gpsdate/gpsdate_git.bb b/recipes-extra/gpsdate/gpsdate_git.bb index 6a4b05d7d7..ced21846c8 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}" From 7b3ce0e6f739d31e42f8207f45b487d40401dc84 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 14 Feb 2015 16:02:08 +0100 Subject: [PATCH 2/2] gpsdate: Provide a default config for the ODU system The ODU has the GPSD for GNSS/GPS listening on a different port. In hindsight this was a stupid decision but one we can only fix once we move to generating the config of the system at boot time. Fixes: SYS#906 --- recipes-extra/gpsdate/files/sysmocom-odu/gpsdate.default | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 recipes-extra/gpsdate/files/sysmocom-odu/gpsdate.default diff --git a/recipes-extra/gpsdate/files/sysmocom-odu/gpsdate.default b/recipes-extra/gpsdate/files/sysmocom-odu/gpsdate.default new file mode 100644 index 0000000000..8e8d016d0f --- /dev/null +++ b/recipes-extra/gpsdate/files/sysmocom-odu/gpsdate.default @@ -0,0 +1,2 @@ +GPSDATE_HOST=127.0.0.1 +GPSDATE_PORT=50002