summaryrefslogtreecommitdiffstats
path: root/openwrt/package/openntpd/ipkg
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/openntpd/ipkg')
-rwxr-xr-xopenwrt/package/openntpd/ipkg/etc/init.d/S55ntpd3
-rw-r--r--openwrt/package/openntpd/ipkg/etc/ntpd.conf3
-rw-r--r--openwrt/package/openntpd/ipkg/openntpd.control9
-rw-r--r--[-rwxr-xr-x]openwrt/package/openntpd/ipkg/openntpd.postinst (renamed from openwrt/package/openntpd/ipkg/CONTROL/postinst)4
4 files changed, 11 insertions, 8 deletions
diff --git a/openwrt/package/openntpd/ipkg/etc/init.d/S55ntpd b/openwrt/package/openntpd/ipkg/etc/init.d/S55ntpd
deleted file mode 100755
index e52874878..000000000
--- a/openwrt/package/openntpd/ipkg/etc/init.d/S55ntpd
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-mkdir -p `grep "^ntp:" /etc/passwd | cut -d: -f6`
-/usr/sbin/ntpd -s
diff --git a/openwrt/package/openntpd/ipkg/etc/ntpd.conf b/openwrt/package/openntpd/ipkg/etc/ntpd.conf
deleted file mode 100644
index 6993b8eba..000000000
--- a/openwrt/package/openntpd/ipkg/etc/ntpd.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-# use a random selection of 8 public stratum 2 servers
-# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
-servers pool.ntp.org
diff --git a/openwrt/package/openntpd/ipkg/openntpd.control b/openwrt/package/openntpd/ipkg/openntpd.control
new file mode 100644
index 000000000..8bc341f38
--- /dev/null
+++ b/openwrt/package/openntpd/ipkg/openntpd.control
@@ -0,0 +1,9 @@
+Package: openntpd
+Priority: optional
+Section: net
+Maintainer: Laurent Papier <papier[at]tuxfan.net>
+Source: buildroot internal
+Description: OpenNTPD is a FREE, easy to use implementation of NTP
+ (the Network Time Protocol). It provides the ability to sync the
+ local clock to remote NTP servers and can act as NTP server itself,
+ redistributing the local clock.
diff --git a/openwrt/package/openntpd/ipkg/CONTROL/postinst b/openwrt/package/openntpd/ipkg/openntpd.postinst
index daa0baf55..4b2ffe9df 100755..100644
--- a/openwrt/package/openntpd/ipkg/CONTROL/postinst
+++ b/openwrt/package/openntpd/ipkg/openntpd.postinst
@@ -11,11 +11,11 @@ if [ -z "${IPKG_INSTROOT}" ]; then
if [ "$rootfs" = "squashfs" ]; then
if [ -h /etc/group ]; then
rm /etc/group
- cp /rom/etc/group /etc/group
+ cp -p /rom/etc/group /etc/group
fi
if [ -h /etc/passwd ]; then
rm /etc/passwd
- cp /rom/etc/passwd /etc/passwd
+ cp -p /rom/etc/passwd /etc/passwd
fi
fi
fi