[oe-commits] Frans Meulenbroeks : ntpclient: updated to 2010_365 version
git at git.openembedded.org
git at git.openembedded.org
Wed Mar 14 11:13:43 UTC 2012
Module: openembedded.git
Branch: sledz/pull2
Commit: 89cb863234616620d172984ff173f1d84ce4caa9
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=89cb863234616620d172984ff173f1d84ce4caa9
Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date: Thu Jan 12 08:21:12 2012 +0100
ntpclient: updated to 2010_365 version
Changes since ntpclient_2007_365:
-- fixed type of sa_xmit_len, thanks vapier
-- dropped underscores in spelling of adjtimex(2), might make uClibc happier
-- include netdb.h and always define _BSD_SOURCE to get prototype for herror
-- minor formatting to align with Nilsson's fork
-- add -fno-strict-aliasing as needed by traditional network coding style
The 2nd -- also implies our local patch is not needed any more
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
---
recipes/ntpclient/ntpclient_2010_365.bb | 45 +++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/recipes/ntpclient/ntpclient_2010_365.bb b/recipes/ntpclient/ntpclient_2010_365.bb
new file mode 100644
index 0000000..379348d
--- /dev/null
+++ b/recipes/ntpclient/ntpclient_2010_365.bb
@@ -0,0 +1,45 @@
+DESCRIPTION = "NTP (RFC-1305) client for unix-alike computers"
+HOMEPAGE = "http://doolittle.icarus.com/ntpclient"
+AUTHOR = "Larry Doolittle <larry at doolittle.boa.org>"
+RDEPENDS_${PN} = "busybox"
+SECTION = "admin"
+LICENSE = "GPLv2"
+PR = "r0"
+# The ntpclient package uses version numbers that include an underscore :(
+PV = "2010_365"
+# ntpclient unpacks into a directory that doesn't include version info :(
+S = "${WORKDIR}/${PN}-2010"
+
+SRC_URI = "http://doolittle.icarus.com/ntpclient/ntpclient_${PV}.tar.gz \
+ file://init \
+ "
+
+INITSCRIPT_NAME = "ntpclient"
+INITSCRIPT_PARAMS = "defaults 65"
+inherit update-rc.d
+
+LDFLAGS += " -lrt "
+
+do_compile() {
+ oe_runmake ntpclient
+ oe_runmake adjtimex
+}
+
+do_install () {
+ # Install the binary and tools
+ install -D -m 0755 ${S}/ntpclient ${D}${base_sbindir}/ntpclient
+ install -D -m 0755 ${S}/adjtimex ${D}${base_sbindir}/adjtimex.${PN}
+ install -D -m 0755 ${S}/rate.awk ${D}${sbindir}/ntpclient-drift-rate.awk
+ install -D -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ntpclient
+}
+
+pkg_postinst_${PN} () {
+ update-alternatives --install ${base_sbindir}/adjtimex adjtimex adjtimex.${PN} 100
+}
+
+pkg_prerm_${PN} () {
+ update-alternatives --remove adjtimex adjtimex.${PN}
+}
+
+SRC_URI[md5sum] = "a64689398f2df8933ee0d8da246e9eaa"
+SRC_URI[sha256sum] = "9ad9b028385082fb804167f464e2db0a0b3d33780acd399327e64898b8fcfddd"
More information about the Openembedded-commits
mailing list