summaryrefslogtreecommitdiffstats
path: root/ntp/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /ntp/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'ntp/Pkgfile')
-rw-r--r--ntp/Pkgfile62
1 files changed, 62 insertions, 0 deletions
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
+}
+