diff options
Diffstat (limited to 'package/ntpclient')
-rw-r--r-- | package/ntpclient/Config.in | 10 | ||||
-rw-r--r-- | package/ntpclient/Makefile | 28 | ||||
-rw-r--r-- | package/ntpclient/ipkg/ntpclient.control | 4 | ||||
-rw-r--r-- | package/ntpclient/patches/patch-ntpclient_c | 21 |
4 files changed, 63 insertions, 0 deletions
diff --git a/package/ntpclient/Config.in b/package/ntpclient/Config.in new file mode 100644 index 000000000..daf0d46a3 --- /dev/null +++ b/package/ntpclient/Config.in @@ -0,0 +1,10 @@ +config ADK_PACKAGE_NTPCLIENT + prompt "ntpclient......................... NTP (Network Time Protocol) client" + tristate + default n + help + NTP client for setting system time from NTP servers. + It is recommended to use the rdate package instead. + + http://doolittle.faludi.com/ntpclient/ + diff --git a/package/ntpclient/Makefile b/package/ntpclient/Makefile new file mode 100644 index 000000000..2cde14053 --- /dev/null +++ b/package/ntpclient/Makefile @@ -0,0 +1,28 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= ntpclient +PKG_VERSION:= 2007_365 +PKG_RELEASE:= 1 +PKG_MD5SUM:= cb98711f11769cdd22fc592844cef414 +MASTER_SITES:= http://doolittle.icarus.com/ntpclient/ +DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz +WRKDIST= ${WRKDIR}/${PKG_NAME}-2007 + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,NTPCLIENT,ntpclient,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +BUILD_STYLE:= auto +MAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TCFLAGS}' +ALL_TARGET:= + +do-install: + ${INSTALL_DIR} ${IDIR_NTPCLIENT}/usr/sbin + ${INSTALL_BIN} ${WRKBUILD}/ntpclient ${IDIR_NTPCLIENT}/usr/sbin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/ntpclient/ipkg/ntpclient.control b/package/ntpclient/ipkg/ntpclient.control new file mode 100644 index 000000000..4194e617b --- /dev/null +++ b/package/ntpclient/ipkg/ntpclient.control @@ -0,0 +1,4 @@ +Package: ntpclient +Priority: optional +Section: net +Description: NTP client for setting system time from NTP servers. diff --git a/package/ntpclient/patches/patch-ntpclient_c b/package/ntpclient/patches/patch-ntpclient_c new file mode 100644 index 000000000..3c5251b4b --- /dev/null +++ b/package/ntpclient/patches/patch-ntpclient_c @@ -0,0 +1,21 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- ntpclient-2007.orig/ntpclient.c 2008-01-01 03:16:10.000000000 +0100 ++++ ntpclient-2007/ntpclient.c 2008-10-10 15:59:26.000000000 +0200 +@@ -146,7 +146,7 @@ static int get_current_freq(void) + #ifdef __linux__ + struct timex txc; + txc.modes=0; +- if (__adjtimex(&txc) < 0) { ++ if (adjtimex(&txc) < 0) { + perror("adjtimex"); exit(1); + } + return txc.freq; +@@ -163,7 +163,7 @@ static int set_freq(int new_freq) + struct timex txc; + txc.modes = ADJ_FREQUENCY; + txc.freq = new_freq; +- if (__adjtimex(&txc) < 0) { ++ if (adjtimex(&txc) < 0) { + perror("adjtimex"); exit(1); + } + return txc.freq; |