From 9b2b7ba917c8248311dd10a4f1302b049995dc1d Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Tue, 2 Aug 2005 18:44:17 +0000 Subject: Use update-rc.d bbclass instead of manually doing update-rc.d --- packages/openntpd/openntpd_3.7p1.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/openntpd/openntpd_3.7p1.bb') 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 } -- cgit v1.2.3