summaryrefslogtreecommitdiffstats
path: root/extra/ntp/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ntp/Pkgfile')
-rw-r--r--extra/ntp/Pkgfile58
1 files changed, 58 insertions, 0 deletions
diff --git a/extra/ntp/Pkgfile b/extra/ntp/Pkgfile
new file mode 100644
index 000000000..76140b046
--- /dev/null
+++ b/extra/ntp/Pkgfile
@@ -0,0 +1,58 @@
+# 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: openssl, libcap
+
+name=ntp
+version=4.2.4p7
+release=1
+source=( http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$name-4.2/$name-$version.tar.gz\
+ ntp-4.2.4_p7-nano.patch)
+
+
+build() {
+ source /etc/blfs-bootscripts
+ wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$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
+}