Updated port to include ntpd and ntp.conf (thanks to Torsten Henschel)

This commit is contained in:
James Mills 2007-01-11 10:38:24 +10:00
parent b7a3e23213
commit a3f8da446c
3 changed files with 60 additions and 11 deletions

View File

@ -1,3 +1,8 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/ntp/
-rw-r--r-- root/root etc/ntp/ntp.conf
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/ntpd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/ntp-keygen
@ -13,3 +18,14 @@ drwxr-xr-x root/root usr/bin/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/sntp.1.gz
drwxr-xr-x root/root usr/man/man5/
drwxr-xr-x root/root usr/man/man8/
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwxr-xr-x root/root var/lib/ntp/
-rw-r--r-- root/root var/lib/ntp/ntp.drift
drwxr-xr-x root/root var/lib/ntp/stats/
drwxr-xr-x root/root var/log/
-rw-r--r-- root/root var/log/ntp.log (EMPTY)
drwxr-xr-x root/root var/run/
drwxr-xr-x root/root var/run/ntp/

View File

@ -1 +1,3 @@
916fe57525f8327f340b203f129088fa ntp-4.2.2p4.tar.gz
de14b18b5f2be841a9c3434012c19f6c ntp.conf
2aaeeae50b860296490b03dc5fbe1736 ntpd

View File

@ -1,19 +1,50 @@
# Description: Network Time Protocol - Client and Daemon
# URL: http://ntp.isc.org/
# Description: Network Time Protocol software
# URL: http://www.ntp.org
# Maintainer: James Mills prologic at shortcircuit dot net dot au
# Packager: James Mills prologic at shortcircuit dot net dot au
#
# Depends on:
# Depends on: openssl
name=ntp
version=4.2.2p4
release=1
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/$name-$version.tar.gz)
release=2
source=(http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-$version.tar.gz
ntpd
ntp.conf)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
chown -R root:root $PKG
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
}