From 920b27acba09d321cf8fdad61a1ce3d7d682a64e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 10 Apr 2013 14:11:41 +0200 Subject: [PATCH] add new gpsdate recipe --- recipes-extra/gpsdate/gpsdate_git.bb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes-extra/gpsdate/gpsdate_git.bb diff --git a/recipes-extra/gpsdate/gpsdate_git.bb b/recipes-extra/gpsdate/gpsdate_git.bb new file mode 100644 index 0000000..20f6fd5 --- /dev/null +++ b/recipes-extra/gpsdate/gpsdate_git.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "A utility to set system RTC to GPSD time" +SECTION = "console/network" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +DEPENDS = "gpsd" +RDEPENDS = "libgps" + +PR = "r3" + +SRC_URI = "git://git.sysmocom.de/gpsdate.git;branch=master \ +" +SRCREV = "4ad6c932c9ad85d555b3a4ba1de4f433e1f39757" +S = ${WORKDIR}/git + +INITSCRIPT_NAME = "gpsdate" +INITSCRIPT_PARAMS = "defaults 35" + +do_install() { + install -d ${D}/${sbindir} + 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 +}