2007-01-11 01:38:24 +01:00
|
|
|
# Description: Network Time Protocol software
|
|
|
|
# URL: http://www.ntp.org
|
2006-12-18 06:28:28 +01:00
|
|
|
# Maintainer: James Mills prologic at shortcircuit dot net dot au
|
|
|
|
# Packager: James Mills prologic at shortcircuit dot net dot au
|
|
|
|
#
|
2007-01-11 01:38:24 +01:00
|
|
|
# Depends on: openssl
|
2006-12-18 06:28:28 +01:00
|
|
|
|
|
|
|
name=ntp
|
|
|
|
version=4.2.2p4
|
2007-01-12 08:23:22 +01:00
|
|
|
release=3
|
2007-01-11 01:38:24 +01:00
|
|
|
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-$version.tar.gz
|
|
|
|
ntpd
|
|
|
|
ntp.conf)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
mkdir -p $PKG/etc/{rc.d,ntp} \
|
|
|
|
$PKG/var/log \
|
|
|
|
$PKG/var/run/ntp \
|
|
|
|
$PKG/var/lib/ntp/stats \
|
|
|
|
$PKG/usr/man/{man8,man5}
|
|
|
|
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-sntp \
|
|
|
|
--with-crypto \
|
|
|
|
--enable-debugging=no \
|
|
|
|
--enable-ntpdate-step \
|
|
|
|
--enable-parse-clocks \
|
|
|
|
--enable-all-clocks \
|
|
|
|
CFLAGS="$CFLAGS" \
|
|
|
|
LDFLAGS="$LDFLAGS"
|
|
|
|
|
|
|
|
# substitute the default configuration path
|
|
|
|
sed -i -e 's;\(CONFIG_FILE[^"]*"\)/etc/ntp.conf;\1/etc/ntp/ntp.conf;' \
|
|
|
|
include/ntp_config.h ntpdate/ntptime_config.c
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
touch $PKG/var/log/ntp.log
|
|
|
|
|
|
|
|
# install -m 644 $SRC/ntp-doc/*.8 $PKG/usr/man/man8
|
|
|
|
# install -m 644 $SRC/ntp-doc/*.5 $PKG/usr/man/man5
|
|
|
|
install -m 644 $SRC/ntp.conf $PKG/etc/ntp
|
|
|
|
install -m 755 $SRC/ntpd $PKG/etc/rc.d
|
|
|
|
|
|
|
|
# initialize ntp.drift file
|
|
|
|
echo "0.0" > $PKG/var/lib/ntp/ntp.drift
|
2006-12-18 06:28:28 +01:00
|
|
|
}
|