From 3f57a7f93b3e7550cbd73036f6a56654e17d1d5c Mon Sep 17 00:00:00 2001 From: tnut Date: Sun, 8 Jan 2012 12:15:45 +0100 Subject: split de git pakxe et NuTyX-extra --- ntp/Pkgfile | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 ntp/Pkgfile (limited to 'ntp/Pkgfile') diff --git a/ntp/Pkgfile b/ntp/Pkgfile new file mode 100644 index 000000000..9d0c9de82 --- /dev/null +++ b/ntp/Pkgfile @@ -0,0 +1,62 @@ +# Description: Serveur de synchronisation pour l'horloge système +# URL: http://www.ntp.org/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: libcap +# Run on: libcap + +name=ntp +version=4.2.6 +release=4 +source=( http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-4.2/$name-$version.tar.gz\ + http://nutyx.meticul.eu/files/patchs/$name/ntp-4.2.4_p7-nano.patch) + + +build() { + source /etc/blfs-bootscripts +# wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + cd $name-$version + patch -Np1 -i ../ntp-4.2.4_p7-nano.patch + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-binsubdir=sbin \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-debug + make + make DESTDIR=$PKG install + mkdir -p $PKG/etc +cat > $PKG/etc/ntp.conf << "EOF" + +# Europe +server 0.fr.pool.ntp.org +server 1.fr.pool.ntp.org +server 2.fr.pool.ntp.org +server 3.fr.pool.ntp.org +server 0.europe.pool.ntp.org + + +# Africa +server tock.nml.csir.co.za + +# Asia +server 0.asia.pool.ntp.org + +# Australia +server 0.oceania.pool.ntp.org + +# North America +server 0.north-america.pool.ntp.org + +# South America +server 2.south-america.pool.ntp.org + +driftfile /var/cache/ntp.drift +EOF + cd ../$scripts-$scriptsversion + make DESTDIR=$PKG install-$name + sed -i "s/ gx/ -gx/" $PKG/etc/rc.d/init.d/ntp +} + -- cgit v1.2.3-54-g00ecf