summaryrefslogtreecommitdiffstats
path: root/openwrt/package/openntpd/ipkg
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-18 15:14:13 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-18 15:14:13 +0000
commitb249e2425fc7392645ba4383bf0ba3079c4926f3 (patch)
treed7c07032e09c35f4d32b4f9dedb6e56cc4f2df15 /openwrt/package/openntpd/ipkg
parentda6454c5891d772f7bcc9b2552ff088a40451eb0 (diff)
Convert openntpd to new packaging style
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@937 3c298f89-4303-0410-b956-a3cf2f4a3e73
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