1
0
forked from ports/contrib

ntp: include patch for 64-bit (thx nipuL)

This commit is contained in:
Thomas Penteker 2009-06-04 19:09:27 +02:00
parent 1c395064a5
commit 5c03532053
4 changed files with 24 additions and 3 deletions

View File

@ -1,4 +1,5 @@
8c19ff62ed4f7d64f8e2aa59cb11f364 ntp-4.2.4p7.tar.gz
0c5675c46a226de4504f5b855326b6b7 ntp-64bit.diff
de14b18b5f2be841a9c3434012c19f6c ntp.conf
2aaeeae50b860296490b03dc5fbe1736 ntpd
512b61440eae365871a86c5415b12e86 ntpdate
3714dba66445d1b41d6c699447c7a65e ntpdate

View File

@ -10,7 +10,8 @@ release=2
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-$version.tar.gz
ntpd
ntpdate
ntp.conf)
ntp.conf
ntp-64bit.diff)
build () {
mkdir -p $PKG/etc/{rc.d,ntp} \
@ -21,6 +22,8 @@ build () {
cd $name-$version
patch -p1 -i ../ntp-64bit.diff
./configure \
--prefix=/usr \
--with-sntp \

17
ntp/ntp-64bit.diff Normal file
View File

@ -0,0 +1,17 @@
--- a/include/ntp_syscall.h 2009-05-19 16:44:55.048156467 -0400
+++ b/include/ntp_syscall.h 2009-05-19 16:46:19.293323686 -0400
@@ -14,6 +14,14 @@
# include <sys/timex.h>
#endif
+#if defined(ADJ_NANO) && !defined(MOD_NANO)
+#define MOD_NANO ADJ_NANO
+#endif
+
+#if defined(ADJ_TAI) && !defined(MOD_TAI)
+#define MOD_TAI ADJ_TAI
+#endif
+
#ifndef NTP_SYSCALLS_LIBC
#ifdef NTP_SYSCALLS_STD
# define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t))

View File

@ -5,7 +5,7 @@
case $1 in
start)
/usr/bin/ntpdate pool.ntp.org 1>/dev/null
/usr/bin/ntpdate pool.ntp.org 1>/dev/null &
;;
stop)
;;