1 # Description: Network Time Protocol software
2 # URL: http://www.ntp.org
3 # Packager: James Mills, prologic at shortcircuit dot net dot au
4 # Maintainer: Thomas Penteker, tek at serverop dot de
5 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
11 source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-${version%.*}/$name-$version.tar.gz \
12 ntpd ntpdate ntp.conf ntp-64bit.diff)
15 mkdir -p $PKG/etc/{rc.d,ntp} \
18 $PKG/var/lib/ntp/stats \
19 $PKG/usr/man/{man8,man5}
22 patch -p1 < $SRC/ntp-64bit.diff
23 ./configure --build=$CHOST \
29 --enable-debugging=no \
30 --enable-ntpdate-step \
31 --enable-parse-clocks \
36 # substitute the default configuration path
37 sed -i -e 's;\(CONFIG_FILE[^"]*"\)/etc/ntp.conf;\1/etc/ntp/ntp.conf;' \
38 include/ntp_config.h ntpdate/ntptime_config.c
41 make DESTDIR=$PKG install
43 touch $PKG/var/log/ntp.log
45 install -m 644 $SRC/ntp.conf $PKG/etc/ntp
46 install -m 755 $SRC/ntpd $PKG/etc/rc.d
47 install -m 755 $SRC/ntpdate $PKG/etc/rc.d
49 # initialize ntp.drift file
50 echo "0.0" > $PKG/var/lib/ntp/ntp.drift