summaryrefslogtreecommitdiffstats
path: root/extra/ntp/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-09-15 10:57:47 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-09-15 10:57:47 +0200
commit73dfba7f231c37f8826e9a87572c9c637b01fda3 (patch)
treecd9b9e160afc3840fda325c67582e1de86681eea /extra/ntp/Pkgfile
parentbe2d160ee584cc23fc7350d8443a509cee82f83d (diff)
downloadnutyx-pakxe-73dfba7f231c37f8826e9a87572c9c637b01fda3.tar.gz
nutyx-pakxe-73dfba7f231c37f8826e9a87572c9c637b01fda3.tar.bz2
nutyx-pakxe-73dfba7f231c37f8826e9a87572c9c637b01fda3.tar.xz
nutyx-pakxe-73dfba7f231c37f8826e9a87572c9c637b01fda3.zip
Ajout de ntp#4.2.4p7-1
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
+}