summaryrefslogtreecommitdiff
path: root/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
commitd82287294e030025b9fd8a74cfae7e88e98f6d30 (patch)
treea707e4379f9517a7813337953aef818a45d0937b /package/openntpd/ipkg
parent8f4b79da58ea9faa336db9111a50ca484f1ed76f (diff)
Convert openntpd to new packaging style
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@937 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openntpd/ipkg')
-rwxr-xr-xpackage/openntpd/ipkg/etc/init.d/S55ntpd3
-rw-r--r--package/openntpd/ipkg/etc/ntpd.conf3
-rw-r--r--package/openntpd/ipkg/openntpd.control9
-rw-r--r--[-rwxr-xr-x]package/openntpd/ipkg/openntpd.postinst (renamed from package/openntpd/ipkg/CONTROL/postinst)4
4 files changed, 11 insertions, 8 deletions
diff --git a/package/openntpd/ipkg/etc/init.d/S55ntpd b/package/openntpd/ipkg/etc/init.d/S55ntpd
deleted file mode 100755
index e528748780..0000000000
--- a/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/package/openntpd/ipkg/etc/ntpd.conf b/package/openntpd/ipkg/etc/ntpd.conf
deleted file mode 100644
index 6993b8eba2..0000000000
--- a/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/package/openntpd/ipkg/openntpd.control b/package/openntpd/ipkg/openntpd.control
new file mode 100644
index 0000000000..8bc341f38e
--- /dev/null
+++ b/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/package/openntpd/ipkg/CONTROL/postinst b/package/openntpd/ipkg/openntpd.postinst
index daa0baf55d..4b2ffe9df6 100755..100644
--- a/package/openntpd/ipkg/CONTROL/postinst
+++ b/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