* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2007-06-25 18:27 aldot at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: aldot at uclibc.org @ 2007-06-25 18:27 UTC (permalink / raw)
To: buildroot
Author: aldot
Date: 2007-06-25 11:27:58 -0700 (Mon, 25 Jun 2007)
New Revision: 18934
Log:
- Add a system-V init script to ntpd. Closes #518
Added:
trunk/buildroot/package/ntp/ntp.sysvinit
Modified:
trunk/buildroot/package/ntp/ntp.mk
Changeset:
Modified: trunk/buildroot/package/ntp/ntp.mk
===================================================================
--- trunk/buildroot/package/ntp/ntp.mk 2007-06-25 16:56:11 UTC (rev 18933)
+++ trunk/buildroot/package/ntp/ntp.mk 2007-06-25 18:27:58 UTC (rev 18934)
@@ -57,6 +57,7 @@
$(TARGET_DIR)/$(NTP_TARGET_BINARY): $(NTP_DIR)/$(NTP_BINARY)
install -m 755 $(NTP_DIR)/ntpd/ntpd $(TARGET_DIR)/usr/sbin/ntpd
install -m 755 $(NTP_DIR)/$(NTP_BINARY) $(TARGET_DIR)/$(NTP_TARGET_BINARY)
+ install -m 755 package/ntp/ntp.sysvinit $(TARGET_DIR)/etc/init.d/S49ntp
ntp: uclibc $(TARGET_DIR)/$(NTP_TARGET_BINARY)
Added: trunk/buildroot/package/ntp/ntp.sysvinit
===================================================================
--- trunk/buildroot/package/ntp/ntp.sysvinit (rev 0)
+++ trunk/buildroot/package/ntp/ntp.sysvinit 2007-06-25 18:27:58 UTC (rev 18934)
@@ -0,0 +1,46 @@
+#! /bin/sh
+#
+# System-V init script for the openntp daemon
+#
+
+set -e
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DESC="network time protocol daemon"
+NAME=ntpd
+DAEMON=/usr/sbin/$NAME
+
+# Gracefully exit if the package has been removed.
+test -x $DAEMON || exit 0
+
+# Read config file if it is present.
+if [ -r /etc/default/$NAME ]
+then
+ . /etc/default/$NAME
+fi
+
+case "$1" in
+ start) echo -n "Starting $DESC: $NAME"
+ start-stop-daemon -S -q -x $DAEMON
+ echo "."
+ ;;
+ stop) echo -n "Stopping $DESC: $NAME"
+ start-stop-daemon -K -q -n $NAME
+ echo "."
+ ;;
+ reload|force-reload) echo -n "Reloading $DESC configuration..."
+ start-stop-daemon -K -q -n $NAME -s 1
+ echo "done."
+ ;;
+ restart) echo -n "Restarting $DESC: $NAME"
+ start-stop-daemon -K -q -n $NAME
+ sleep 1
+ start-stop-daemon -S -q -x $DAEMON
+ echo "."
+ ;;
+ *) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Property changes on: trunk/buildroot/package/ntp/ntp.sysvinit
___________________________________________________________________
Name: svn:executable
+ *
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2007-06-26 15:41 aldot at uclibc.org
2007-06-27 6:26 ` Julien Letessier
0 siblings, 1 reply; 11+ messages in thread
From: aldot at uclibc.org @ 2007-06-26 15:41 UTC (permalink / raw)
To: buildroot
Author: aldot
Date: 2007-06-26 08:41:01 -0700 (Tue, 26 Jun 2007)
New Revision: 18940
Log:
- bump version, make it compile. tickadjust has to be disabled. Closes #1029
Provide means for installing sntp
Modified:
trunk/buildroot/package/ntp/Config.in
trunk/buildroot/package/ntp/ntp.mk
Changeset:
Modified: trunk/buildroot/package/ntp/Config.in
===================================================================
--- trunk/buildroot/package/ntp/Config.in 2007-06-26 14:32:10 UTC (rev 18939)
+++ trunk/buildroot/package/ntp/Config.in 2007-06-26 15:41:01 UTC (rev 18940)
@@ -6,3 +6,10 @@
Provides things like ntpd, ntpdate, ntpq, etc...
http://www.ntp.org/
+
+config BR2_PACKAGE_NTP_SNTP
+ bool "sntp"
+ default n
+ depends BR2_PACKAGE_NTP
+ help
+ Simple network time protocol program
Modified: trunk/buildroot/package/ntp/ntp.mk
===================================================================
--- trunk/buildroot/package/ntp/ntp.mk 2007-06-26 14:32:10 UTC (rev 18939)
+++ trunk/buildroot/package/ntp/ntp.mk 2007-06-26 15:41:01 UTC (rev 18940)
@@ -3,7 +3,7 @@
# ntp
#
#############################################################
-NTP_VERSION:=4.2.0
+NTP_VERSION:=4.2.4
NTP_SOURCE:=ntp-$(NTP_VERSION).tar.gz
NTP_SITE:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
NTP_DIR:=$(BUILD_DIR)/ntp-$(NTP_VERSION)
@@ -16,18 +16,19 @@
ntp-source: $(DL_DIR)/$(NTP_SOURCE)
-$(NTP_DIR)/.unpacked: $(DL_DIR)/$(NTP_SOURCE)
+$(NTP_DIR)/.patched: $(DL_DIR)/$(NTP_SOURCE)
$(NTP_CAT) $(DL_DIR)/$(NTP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(NTP_DIR) package/ntp/ ntp\*.patch
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," \
$(NTP_DIR)/ntpd/refclock_pcf.c;
- touch $(NTP_DIR)/.unpacked
+ $(SED) '/[[:space:](]index[[:space:]]*(/s/[[:space:]]*index[[:space:]]*(/ strchr(/g' $(NTP_DIR)/libisc/*.c $(NTP_DIR)/arlib/sample.c
+ $(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(NTP_DIR)/ntpd/*.c
+ #$(SED) 's/\(^#[[:space:]]*include[[:space:]]*<sys\/var.h>\)/\/\/ \1/' $(NTP_DIR)/util/tickadj.c
+ touch $@
-$(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
+$(NTP_DIR)/.configured: $(NTP_DIR)/.patched
(cd $(NTP_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
ac_cv_lib_md5_MD5Init=no \
./configure \
--target=$(GNU_TARGET_NAME) \
@@ -45,11 +46,13 @@
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
+ $(DISABLE_IPV6) \
--with-shared \
--program-transform-name=s,,, \
--without-crypto \
+ --enable-tickadj=no \
);
- touch $(NTP_DIR)/.configured
+ touch $@
$(NTP_DIR)/$(NTP_BINARY): $(NTP_DIR)/.configured
$(MAKE) -C $(NTP_DIR)
@@ -57,14 +60,18 @@
$(TARGET_DIR)/$(NTP_TARGET_BINARY): $(NTP_DIR)/$(NTP_BINARY)
install -m 755 $(NTP_DIR)/ntpd/ntpd $(TARGET_DIR)/usr/sbin/ntpd
install -m 755 $(NTP_DIR)/$(NTP_BINARY) $(TARGET_DIR)/$(NTP_TARGET_BINARY)
+ifeq ($(BR2_PACKAGE_NTP_SNTP),y)
+ install -m 755 $(NTP_DIR)/sntp/sntp $(TARGET_DIR)/usr/bin/sntp
+endif
install -m 755 package/ntp/ntp.sysvinit $(TARGET_DIR)/etc/init.d/S49ntp
ntp: uclibc $(TARGET_DIR)/$(NTP_TARGET_BINARY)
ntp-clean:
- rm -f $(TARGET_DIR)/usr/sbin/ntpd
- rm -f $(TARGET_DIR)/$(NTP_TARGET_BINARY)
- -$(MAKE) -C $(NTP_DIR) clean
+ rm -f $(TARGET_DIR)/usr/sbin/ntpd $(TARGET_DIR)/usr/bin/sntp \
+ $(TARGET_DIR)/etc/init.d/S49ntp \
+ $(TARGET_DIR)/$(NTP_TARGET_BINARY)
+ -$(MAKE) -C $(NTP_DIR) clean
ntp-dirclean:
rm -rf $(NTP_DIR)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
2007-06-26 15:41 aldot at uclibc.org
@ 2007-06-27 6:26 ` Julien Letessier
2007-06-27 9:17 ` Bernhard Fischer
0 siblings, 1 reply; 11+ messages in thread
From: Julien Letessier @ 2007-06-27 6:26 UTC (permalink / raw)
To: buildroot
Update:
- the actual current version of NTP is 4.2p2
- fixed the configure flag
2007/6/26, aldot at uclibc.org <aldot@uclibc.org>:
>
> Author: aldot
> Date: 2007-06-26 08:41:01 -0700 (Tue, 26 Jun 2007)
> New Revision: 18940
>
> Log:
> - bump version, make it compile. tickadjust has to be disabled. Closes
> #1029
> Provide means for installing sntp
>
>
> Modified:
> trunk/buildroot/package/ntp/Config.in
> trunk/buildroot/package/ntp/ntp.mk
>
>
> Changeset:
> Modified: trunk/buildroot/package/ntp/Config.in
> ===================================================================
> --- trunk/buildroot/package/ntp/Config.in 2007-06-26 14:32:10 UTC
> (rev 18939)
> +++ trunk/buildroot/package/ntp/Config.in 2007-06-26 15:41:01 UTC
> (rev 18940)
> @@ -6,3 +6,10 @@
> Provides things like ntpd, ntpdate, ntpq, etc...
>
> http://www.ntp.org/
> +
> +config BR2_PACKAGE_NTP_SNTP
> + bool "sntp"
> + default n
> + depends BR2_PACKAGE_NTP
> + help
> + Simple network time protocol program
>
> Modified: trunk/buildroot/package/ntp/ntp.mk
> ===================================================================
> --- trunk/buildroot/package/ntp/ntp.mk 2007-06-26 14:32:10 UTC (rev
> 18939)
> +++ trunk/buildroot/package/ntp/ntp.mk 2007-06-26 15:41:01 UTC (rev
> 18940)
> @@ -3,7 +3,7 @@
> # ntp
> #
> #############################################################
> -NTP_VERSION:=4.2.0
> +NTP_VERSION:=4.2.4
> NTP_SOURCE:=ntp-$(NTP_VERSION).tar.gz
> NTP_SITE:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
> NTP_DIR:=$(BUILD_DIR)/ntp-$(NTP_VERSION)
> @@ -16,18 +16,19 @@
>
> ntp-source: $(DL_DIR)/$(NTP_SOURCE)
>
> -$(NTP_DIR)/.unpacked: $(DL_DIR)/$(NTP_SOURCE)
> +$(NTP_DIR)/.patched: $(DL_DIR)/$(NTP_SOURCE)
> $(NTP_CAT) $(DL_DIR)/$(NTP_SOURCE) | tar -C $(BUILD_DIR)
> $(TAR_OPTIONS) -
> toolchain/patch-kernel.sh $(NTP_DIR) package/ntp/ ntp\*.patch
> $(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," \
> $(NTP_DIR)/ntpd/refclock_pcf.c;
> - touch $(NTP_DIR)/.unpacked
> + $(SED)
> '/[[:space:](]index[[:space:]]*(/s/[[:space:]]*index[[:space:]]*(/
> strchr(/g' $(NTP_DIR)/libisc/*.c $(NTP_DIR)/arlib/sample.c
> + $(SED)
> '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/
> strrchr(/g' $(NTP_DIR)/ntpd/*.c
> + #$(SED) 's/\(^#[[:space:]]*include[[:space:]]*<sys\/var.h>\)/\/\/
> \1/' $(NTP_DIR)/util/tickadj.c
> + touch $@
>
> -$(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
> +$(NTP_DIR)/.configured: $(NTP_DIR)/.patched
> (cd $(NTP_DIR); rm -rf config.cache; \
> $(TARGET_CONFIGURE_OPTS) \
> - CFLAGS="$(TARGET_CFLAGS)" \
> - LDFLAGS="$(TARGET_LDFLAGS)" \
> ac_cv_lib_md5_MD5Init=no \
> ./configure \
> --target=$(GNU_TARGET_NAME) \
> @@ -45,11 +46,13 @@
> --mandir=/usr/man \
> --infodir=/usr/info \
> $(DISABLE_NLS) \
> + $(DISABLE_IPV6) \
> --with-shared \
> --program-transform-name=s,,, \
> --without-crypto \
> + --enable-tickadj=no \
> );
> - touch $(NTP_DIR)/.configured
> + touch $@
>
> $(NTP_DIR)/$(NTP_BINARY): $(NTP_DIR)/.configured
> $(MAKE) -C $(NTP_DIR)
> @@ -57,14 +60,18 @@
> $(TARGET_DIR)/$(NTP_TARGET_BINARY): $(NTP_DIR)/$(NTP_BINARY)
> install -m 755 $(NTP_DIR)/ntpd/ntpd $(TARGET_DIR)/usr/sbin/ntpd
> install -m 755 $(NTP_DIR)/$(NTP_BINARY)
> $(TARGET_DIR)/$(NTP_TARGET_BINARY)
> +ifeq ($(BR2_PACKAGE_NTP_SNTP),y)
> + install -m 755 $(NTP_DIR)/sntp/sntp $(TARGET_DIR)/usr/bin/sntp
> +endif
> install -m 755 package/ntp/ntp.sysvinit
> $(TARGET_DIR)/etc/init.d/S49ntp
>
> ntp: uclibc $(TARGET_DIR)/$(NTP_TARGET_BINARY)
>
> ntp-clean:
> - rm -f $(TARGET_DIR)/usr/sbin/ntpd
> - rm -f $(TARGET_DIR)/$(NTP_TARGET_BINARY)
> - -$(MAKE) -C $(NTP_DIR) clean
> + rm -f $(TARGET_DIR)/usr/sbin/ntpd $(TARGET_DIR)/usr/bin/sntp \
> + $(TARGET_DIR)/etc/init.d/S49ntp \
> + $(TARGET_DIR)/$(NTP_TARGET_BINARY)
> + -$(MAKE) -C $(NTP_DIR) clean
>
> ntp-dirclean:
> rm -rf $(NTP_DIR)
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
--
Julien Letessier
<julien.letessier@technosens.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070627/0d226fae/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot_ntp.patch
Type: application/octet-stream
Size: 608 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070627/0d226fae/attachment.obj
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
2007-06-27 6:26 ` Julien Letessier
@ 2007-06-27 9:17 ` Bernhard Fischer
0 siblings, 0 replies; 11+ messages in thread
From: Bernhard Fischer @ 2007-06-27 9:17 UTC (permalink / raw)
To: buildroot
On Wed, Jun 27, 2007 at 08:26:38AM +0200, Julien Letessier wrote:
>Update:
>- the actual current version of NTP is 4.2p2
>- fixed the configure flag
Merged. Thanks!
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2007-06-27 9:19 aldot at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: aldot at uclibc.org @ 2007-06-27 9:19 UTC (permalink / raw)
To: buildroot
Author: aldot
Date: 2007-06-27 02:18:58 -0700 (Wed, 27 Jun 2007)
New Revision: 18949
Log:
- the actual current version of NTP is 4.2p2 (Julien Letessier)
- fixed the configure flag (Julien Letessier)
Modified:
trunk/buildroot/package/ntp/ntp.mk
Changeset:
Modified: trunk/buildroot/package/ntp/ntp.mk
===================================================================
--- trunk/buildroot/package/ntp/ntp.mk 2007-06-27 00:20:38 UTC (rev 18948)
+++ trunk/buildroot/package/ntp/ntp.mk 2007-06-27 09:18:58 UTC (rev 18949)
@@ -3,7 +3,7 @@
# ntp
#
#############################################################
-NTP_VERSION:=4.2.4
+NTP_VERSION:=4.2.4p2
NTP_SOURCE:=ntp-$(NTP_VERSION).tar.gz
NTP_SITE:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
NTP_DIR:=$(BUILD_DIR)/ntp-$(NTP_VERSION)
@@ -50,7 +50,7 @@
--with-shared \
--program-transform-name=s,,, \
--without-crypto \
- --enable-tickadj=no \
+ --disable-tickadj \
);
touch $@
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2007-07-28 16:41 ulf at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: ulf at uclibc.org @ 2007-07-28 16:41 UTC (permalink / raw)
To: buildroot
Author: ulf
Date: 2007-07-28 09:41:44 -0700 (Sat, 28 Jul 2007)
New Revision: 19297
Log:
Update config's of ntp
Modified:
trunk/buildroot/package/ntp/ntp.mk
Changeset:
Modified: trunk/buildroot/package/ntp/ntp.mk
===================================================================
--- trunk/buildroot/package/ntp/ntp.mk 2007-07-28 16:39:06 UTC (rev 19296)
+++ trunk/buildroot/package/ntp/ntp.mk 2007-07-28 16:41:44 UTC (rev 19297)
@@ -24,6 +24,8 @@
$(SED) '/[[:space:](]index[[:space:]]*(/s/[[:space:]]*index[[:space:]]*(/ strchr(/g' $(NTP_DIR)/libisc/*.c $(NTP_DIR)/arlib/sample.c
$(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(NTP_DIR)/ntpd/*.c
#$(SED) 's/\(^#[[:space:]]*include[[:space:]]*<sys\/var.h>\)/\/\/ \1/' $(NTP_DIR)/util/tickadj.c
+ $(CONFIG_UPDATE) $(NTP_DIR)
+ $(CONFIG_UPDATE) $(NTP_DIR)/sntp
touch $@
$(NTP_DIR)/.configured: $(NTP_DIR)/.patched
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2007-08-13 19:33 ulf at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: ulf at uclibc.org @ 2007-08-13 19:33 UTC (permalink / raw)
To: buildroot
Author: ulf
Date: 2007-08-13 12:33:36 -0700 (Mon, 13 Aug 2007)
New Revision: 19489
Log:
Remove ntp patch which fails to apply, add TODO for later fixing
Added:
trunk/buildroot/package/ntp/TODO
Removed:
trunk/buildroot/package/ntp/ntp-cross-compile.patch
Changeset:
Added: trunk/buildroot/package/ntp/TODO
===================================================================
--- trunk/buildroot/package/ntp/TODO (rev 0)
+++ trunk/buildroot/package/ntp/TODO 2007-08-13 19:33:36 UTC (rev 19489)
@@ -0,0 +1,33 @@
+The obsolete patch tries to clear "BUILT_SOURCE"
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+***************
+*** 157,163 ****
+ bin_PROGRAMS = ntpdc
+ EXTRA_PROGRAMS = ntpdc-layout
+ EXTRA_DATA = check-layout
+- BUILT_SOURCES = maybe-layout
+ INCLUDES = -I$(top_srcdir)/include
+ # LDADD might need RESLIB and ADJLIB
+ ntpdc_LDADD = version.o ../libntp/libntp.a @READLINE_LIBS@
+--- 157,163 ----
+ bin_PROGRAMS = ntpdc
+ EXTRA_PROGRAMS = ntpdc-layout
+ EXTRA_DATA = check-layout
++ BUILT_SOURCES =
+ INCLUDES = -I$(top_srcdir)/include
+ # LDADD might need RESLIB and ADJLIB
+ ntpdc_LDADD = version.o ../libntp/libntp.a @READLINE_LIBS@
+------------------------------------------------------------
+The current tarball contains a lot more:
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+AUTOMAKE_OPTIONS = ../util/ansi2knr
+EXTRA_DATA = check-layout
+BUILT_SOURCES = @MAKE_CHECK_LAYOUT@ ntpdc-opts.c ntpdc-opts.h ntpdc.1 \
+ ntpdc-opts.texi ntpdc-opts.menu
+AM_CPPFLAGS = -I$(top_srcdir)/include $(LIBOPTS_CFLAGS)
+# LDADD might need RESLIB and ADJLIB
+------------------------------------------------------------
+
+Do we need to remove "@MAKE_CHECK_LAYOUT@" in a new patch?
Deleted: trunk/buildroot/package/ntp/ntp-cross-compile.patch
===================================================================
--- trunk/buildroot/package/ntp/ntp-cross-compile.patch 2007-08-13 14:10:24 UTC (rev 19488)
+++ trunk/buildroot/package/ntp/ntp-cross-compile.patch 2007-08-13 19:33:36 UTC (rev 19489)
@@ -1,11 +0,0 @@
---- ntp/ntpdc/Makefile.in
-+++ ntp/ntpdc/Makefile.in
-@@ -157,7 +157,7 @@
- bin_PROGRAMS = ntpdc
- EXTRA_PROGRAMS = ntpdc-layout
- EXTRA_DATA = check-layout
--BUILT_SOURCES = maybe-layout
-+BUILT_SOURCES =
- INCLUDES = -I$(top_srcdir)/include
- # LDADD might need RESLIB and ADJLIB
- ntpdc_LDADD = version.o ../libntp/libntp.a @READLINE_LIBS@
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2008-10-31 1:44 antab at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: antab at uclibc.org @ 2008-10-31 1:44 UTC (permalink / raw)
To: buildroot
Author: antab
Date: 2008-10-30 18:44:32 -0700 (Thu, 30 Oct 2008)
New Revision: 23870
Log:
Bump ntp version
Modified:
trunk/buildroot/package/ntp/ntp.mk
Changeset:
Modified: trunk/buildroot/package/ntp/ntp.mk
===================================================================
--- trunk/buildroot/package/ntp/ntp.mk 2008-10-31 01:41:31 UTC (rev 23869)
+++ trunk/buildroot/package/ntp/ntp.mk 2008-10-31 01:44:32 UTC (rev 23870)
@@ -3,7 +3,7 @@
# ntp
#
#############################################################
-NTP_VERSION:=4.2.4p2
+NTP_VERSION:=4.2.4p5
NTP_SOURCE:=ntp-$(NTP_VERSION).tar.gz
NTP_SITE:=http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
NTP_DIR:=$(BUILD_DIR)/ntp-$(NTP_VERSION)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2008-11-06 21:11 wberrier at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: wberrier at uclibc.org @ 2008-11-06 21:11 UTC (permalink / raw)
To: buildroot
Author: wberrier
Date: 2008-11-06 13:11:54 -0800 (Thu, 06 Nov 2008)
New Revision: 23945
Log:
ntp: add /etc/default/ntpd to control whether to start
ntpd and/or ntpdate. Also specify options and servers.
Added:
trunk/buildroot/package/ntp/ntpd.etc.default
Modified:
trunk/buildroot/package/ntp/ntp.mk
trunk/buildroot/package/ntp/ntp.sysvinit
Changeset:
Modified: trunk/buildroot/package/ntp/ntp.mk
===================================================================
--- trunk/buildroot/package/ntp/ntp.mk 2008-11-06 15:13:33 UTC (rev 23944)
+++ trunk/buildroot/package/ntp/ntp.mk 2008-11-06 21:11:54 UTC (rev 23945)
@@ -67,6 +67,10 @@
install -m 755 $(NTP_DIR)/sntp/sntp $(TARGET_DIR)/usr/bin/sntp
endif
install -m 755 package/ntp/ntp.sysvinit $(TARGET_DIR)/etc/init.d/S49ntp
+ @if [ ! -f $(TARGET_DIR)/etc/default/ntpd ]; then \
+ install -m 755 -d $(TARGET_DIR)/etc/default ; \
+ install -m 644 package/ntp/ntpd.etc.default $(TARGET_DIR)/etc/default/ntpd ; \
+ fi
ntp: uclibc $(TARGET_DIR)/$(NTP_TARGET_BINARY)
Modified: trunk/buildroot/package/ntp/ntp.sysvinit
===================================================================
--- trunk/buildroot/package/ntp/ntp.sysvinit 2008-11-06 15:13:33 UTC (rev 23944)
+++ trunk/buildroot/package/ntp/ntp.sysvinit 2008-11-06 21:11:54 UTC (rev 23945)
@@ -9,6 +9,7 @@
DESC="network time protocol daemon"
NAME=ntpd
DAEMON=/usr/sbin/$NAME
+NTPDATE_BIN=/usr/bin/ntpdate
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
@@ -20,9 +21,17 @@
fi
case "$1" in
- start) echo -n "Starting $DESC: $NAME"
- start-stop-daemon -S -q -x $DAEMON
- echo "."
+ start)
+ if test x$NTPDATE = xyes ; then
+ echo -n "Getting initial time via ntp"
+ $NTPDATE_BIN $NTPDATE_OPTS $NTPSERVERS > /dev/null 2>&1
+ echo "."
+ fi
+ if test x$NTPD = xyes ; then
+ echo -n "Starting $DESC: $NAME"
+ start-stop-daemon -S -q -x $DAEMON
+ echo "."
+ fi
;;
stop) echo -n "Stopping $DESC: $NAME"
start-stop-daemon -K -q -n $NAME
Added: trunk/buildroot/package/ntp/ntpd.etc.default
===================================================================
--- trunk/buildroot/package/ntp/ntpd.etc.default (rev 0)
+++ trunk/buildroot/package/ntp/ntpd.etc.default 2008-11-06 21:11:54 UTC (rev 23945)
@@ -0,0 +1,9 @@
+# NTP Servers to use for ntpdate
+NTPSERVERS="pool.ntp.org"
+
+# Get initial time via ntpdate?
+NTPDATE=no
+NTPDATE_OPTS="-t 5"
+
+# Start the ntp daemon?
+NTPD=yes
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2008-11-14 22:52 wberrier at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: wberrier at uclibc.org @ 2008-11-14 22:52 UTC (permalink / raw)
To: buildroot
Author: wberrier
Date: 2008-11-14 14:52:48 -0800 (Fri, 14 Nov 2008)
New Revision: 24048
Log:
ntp.sysvinit: fix 'restart' (don't exit on failed commands with set -e)
Modified:
trunk/buildroot/package/ntp/ntp.sysvinit
Changeset:
Modified: trunk/buildroot/package/ntp/ntp.sysvinit
===================================================================
--- trunk/buildroot/package/ntp/ntp.sysvinit 2008-11-14 22:14:12 UTC (rev 24047)
+++ trunk/buildroot/package/ntp/ntp.sysvinit 2008-11-14 22:52:48 UTC (rev 24048)
@@ -3,8 +3,6 @@
# System-V init script for the openntp daemon
#
-set -e
-
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="network time protocol daemon"
NAME=ntpd
@@ -41,11 +39,10 @@
start-stop-daemon -K -q -n $NAME -s 1
echo "done."
;;
- restart) echo -n "Restarting $DESC: $NAME"
- start-stop-daemon -K -q -n $NAME
+ restart) echo "Restarting $DESC: $NAME"
+ $0 stop
sleep 1
- start-stop-daemon -S -q -x $DAEMON
- echo "."
+ $0 start
;;
*) echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
exit 1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ntp
@ 2009-01-31 18:39 jacmet at uclibc.org
0 siblings, 0 replies; 11+ messages in thread
From: jacmet at uclibc.org @ 2009-01-31 18:39 UTC (permalink / raw)
To: buildroot
Author: jacmet
Date: 2009-01-31 18:39:49 +0000 (Sat, 31 Jan 2009)
New Revision: 25180
Log:
ntp: fix time sync issue
Fix for https://support.ntp.org/bugs/show_bug.cgi?id=769 - Patch from gentoo.
Added:
trunk/buildroot/package/ntp/ntp-4.2.4_p5-adjtimex.patch
Changeset:
Added: trunk/buildroot/package/ntp/ntp-4.2.4_p5-adjtimex.patch
===================================================================
--- trunk/buildroot/package/ntp/ntp-4.2.4_p5-adjtimex.patch (rev 0)
+++ trunk/buildroot/package/ntp/ntp-4.2.4_p5-adjtimex.patch 2009-01-31 18:39:49 UTC (rev 25180)
@@ -0,0 +1,33 @@
+https://support.ntp.org/bugs/show_bug.cgi?id=769
+http://bugs.gentoo.org/254030
+
+--- ntp/util/tickadj.c
++++ ntp/util/tickadj.c
+@@ -21,7 +21,8 @@
+ # include <unistd.h>
+ #endif /* HAVE_UNISTD_H */
+
+-#ifdef HAVE___ADJTIMEX /* Linux */
++/* proper handling here has been moved to upstream ntp bugzilla */
++#ifdef linux
+
+ #include <sys/timex.h>
+ struct timex txc;
+@@ -91,7 +92,7 @@
+ }
+
+ if (!errflg) {
+- if (__adjtimex(&txc) < 0)
++ if (adjtimex(&txc) < 0)
+ perror("adjtimex");
+ else if (!quiet)
+ printf("tick = %ld\ntick_adj = %d\n",
+@@ -146,7 +147,7 @@
+ #endif
+ }
+
+- if (__adjtimex(&txc) < 0)
++ if (adjtimex(&txc) < 0)
+ {
+ perror("adjtimex");
+ }
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-01-31 18:39 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-13 19:33 [Buildroot] svn commit: trunk/buildroot/package/ntp ulf at uclibc.org
-- strict thread matches above, loose matches on Subject: below --
2009-01-31 18:39 jacmet at uclibc.org
2008-11-14 22:52 wberrier at uclibc.org
2008-11-06 21:11 wberrier at uclibc.org
2008-10-31 1:44 antab at uclibc.org
2007-07-28 16:41 ulf at uclibc.org
2007-06-27 9:19 aldot at uclibc.org
2007-06-26 15:41 aldot at uclibc.org
2007-06-27 6:26 ` Julien Letessier
2007-06-27 9:17 ` Bernhard Fischer
2007-06-25 18:27 aldot at uclibc.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox