summaryrefslogtreecommitdiffstats
path: root/extra/ntp
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ntp')
-rw-r--r--extra/ntp/.footprint44
-rw-r--r--extra/ntp/.md5sum2
-rw-r--r--extra/ntp/Pkgfile58
-rw-r--r--extra/ntp/ntp-4.2.4_p7-nano.patch20
4 files changed, 124 insertions, 0 deletions
diff --git a/extra/ntp/.footprint b/extra/ntp/.footprint
new file mode 100644
index 000000000..221429e5a
--- /dev/null
+++ b/extra/ntp/.footprint
@@ -0,0 +1,44 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/ntp.conf
+drwxr-xr-x root/root etc/rc.d/
+drwxr-xr-x root/root etc/rc.d/init.d/
+-rwxr-xr-- root/root etc/rc.d/init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rc0.d/
+lrwxrwxrwx root/root etc/rc.d/rc0.d/K46ntp -> ../init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rc1.d/
+lrwxrwxrwx root/root etc/rc.d/rc1.d/K46ntp -> ../init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rc2.d/
+lrwxrwxrwx root/root etc/rc.d/rc2.d/K46ntp -> ../init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rc3.d/
+lrwxrwxrwx root/root etc/rc.d/rc3.d/S26ntp -> ../init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rc4.d/
+lrwxrwxrwx root/root etc/rc.d/rc4.d/S26ntp -> ../init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rc5.d/
+lrwxrwxrwx root/root etc/rc.d/rc5.d/S26ntp -> ../init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rc6.d/
+lrwxrwxrwx root/root etc/rc.d/rc6.d/K46ntp -> ../init.d/ntp
+drwxr-xr-x root/root etc/rc.d/rcsysinit.d/
+drwxr-xr-x root/root etc/sysconfig/
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/ntp-keygen
+-rwxr-xr-x root/root usr/bin/ntp-wait
+-rwxr-xr-x root/root usr/bin/ntpq
+-rwxr-xr-x root/root usr/bin/ntptime
+-rwxr-xr-x root/root usr/bin/ntptrace
+-rwxr-xr-x root/root usr/bin/tickadj
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/ntpd
+-rwxr-xr-x root/root usr/sbin/ntpdate
+-rwxr-xr-x root/root usr/sbin/ntpdc
+-rwxr-xr-x root/root usr/sbin/sntp
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/ntp-keygen.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ntpd.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ntpdc.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ntpdsim.1.gz
+-rw-r--r-- root/root usr/share/man/man1/ntpq.1.gz
+-rw-r--r-- root/root usr/share/man/man1/sntp.1.gz
diff --git a/extra/ntp/.md5sum b/extra/ntp/.md5sum
new file mode 100644
index 000000000..eb4e8106e
--- /dev/null
+++ b/extra/ntp/.md5sum
@@ -0,0 +1,2 @@
+36c5711228cb0cf48966daa993e06f55 ntp-4.2.4_p7-nano.patch
+8c19ff62ed4f7d64f8e2aa59cb11f364 ntp-4.2.4p7.tar.gz
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
+}
diff --git a/extra/ntp/ntp-4.2.4_p7-nano.patch b/extra/ntp/ntp-4.2.4_p7-nano.patch
new file mode 100644
index 000000000..b31ea0adc
--- /dev/null
+++ b/extra/ntp/ntp-4.2.4_p7-nano.patch
@@ -0,0 +1,20 @@
+http://bugs.gentoo.org/270483
+
+ripped from fedora
+
+--- ntp-4.2.4p7/include/ntp_syscall.h
++++ ntp-4.2.4p7/include/ntp_syscall.h
+@@ -14,5 +14,13 @@
+ # include <sys/timex.h>
+ #endif
+
++#if defined(ADJ_NANO) && !defined(MOD_NANO)
++#define MOD_NANO ADJ_NANO
++#endif
++
++#if defined(ADJ_TAI) && !defined(MOD_TAI)
++#define MOD_TAI ADJ_TAI
++#endif
++
+ #ifndef NTP_SYSCALLS_LIBC
+ #ifdef NTP_SYSCALLS_STD