summaryrefslogtreecommitdiff
path: root/packages/openntpd
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-08-02 18:44:17 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-02 18:44:17 +0000
commit9b2b7ba917c8248311dd10a4f1302b049995dc1d (patch)
tree34ed83c0826c175d43c8041bda00b5a22fa9ab46 /packages/openntpd
parent7b925c390ee5a13f47eea22f91dc193e3993ba70 (diff)
Use update-rc.d bbclass instead of manually doing update-rc.d
Diffstat (limited to 'packages/openntpd')
-rw-r--r--packages/openntpd/openntpd_3.7p1.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/openntpd/openntpd_3.7p1.bb b/packages/openntpd/openntpd_3.7p1.bb
index 35f587c74a..8f10ab4d0e 100644
--- a/packages/openntpd/openntpd_3.7p1.bb
+++ b/packages/openntpd/openntpd_3.7p1.bb
@@ -15,6 +15,10 @@ SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz
file://init"
S = "${WORKDIR}/openntpd-${PV}"
+INITSCRIPT_NAME = "openntpd"
+INITSCRIPT_PARAMS = "defaults"
+
+
inherit autotools
EXTRA_OECONF += "CFLAGS=-DUSE_ADJTIMEX --disable-strip --prefix=/usr \
@@ -31,12 +35,10 @@ do_install_append() {
pkg_postrm () {
grep ntpd /etc/passwd && deluser ntpd
- update-rc.d openntpd remove
}
pkg_postinst () {
grep ntpd /etc/passwd || adduser --disabled-password --home=/var/shared/empty --ingroup nogroup ntpd
chown root:root /var/shared/empty
- update-rc.d openntpd defaults 66
}