forked from ports/contrib
ntp: include patch for 64-bit (thx nipuL)
This commit is contained in:
parent
1c395064a5
commit
5c03532053
@ -1,4 +1,5 @@
|
|||||||
8c19ff62ed4f7d64f8e2aa59cb11f364 ntp-4.2.4p7.tar.gz
|
8c19ff62ed4f7d64f8e2aa59cb11f364 ntp-4.2.4p7.tar.gz
|
||||||
|
0c5675c46a226de4504f5b855326b6b7 ntp-64bit.diff
|
||||||
de14b18b5f2be841a9c3434012c19f6c ntp.conf
|
de14b18b5f2be841a9c3434012c19f6c ntp.conf
|
||||||
2aaeeae50b860296490b03dc5fbe1736 ntpd
|
2aaeeae50b860296490b03dc5fbe1736 ntpd
|
||||||
512b61440eae365871a86c5415b12e86 ntpdate
|
3714dba66445d1b41d6c699447c7a65e ntpdate
|
||||||
|
@ -10,7 +10,8 @@ release=2
|
|||||||
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-$version.tar.gz
|
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-$version.tar.gz
|
||||||
ntpd
|
ntpd
|
||||||
ntpdate
|
ntpdate
|
||||||
ntp.conf)
|
ntp.conf
|
||||||
|
ntp-64bit.diff)
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
mkdir -p $PKG/etc/{rc.d,ntp} \
|
mkdir -p $PKG/etc/{rc.d,ntp} \
|
||||||
@ -21,6 +22,8 @@ build () {
|
|||||||
|
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
|
patch -p1 -i ../ntp-64bit.diff
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--with-sntp \
|
--with-sntp \
|
||||||
|
17
ntp/ntp-64bit.diff
Normal file
17
ntp/ntp-64bit.diff
Normal 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))
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start)
|
start)
|
||||||
/usr/bin/ntpdate pool.ntp.org 1>/dev/null
|
/usr/bin/ntpdate pool.ntp.org 1>/dev/null &
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user