Use update-rc.d bbclass instead of manually doing update-rc.d
authorOyvind Repvik <nail@nslu2-linux.org>
Tue, 2 Aug 2005 18:44:17 +0000 (18:44 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 2 Aug 2005 18:44:17 +0000 (18:44 +0000)
packages/cron/cron_3.0pl1.bb
packages/openntpd/openntpd_3.7p1.bb
packages/samba/samba_3.0.14a.bb
packages/thttpd/thttpd_2.25b.bb

index 31137d0..aec1957 100644 (file)
@@ -10,6 +10,10 @@ SRC_URI = "http://ibiblio.org/pub/Linux/system/daemons/cron/cron${PV}.tar.gz \
           file://init"
 S = "${WORKDIR}/cron${PV}"
 
+INITSCRIPT_NAME = "cron"
+INITSCRIPT_PARAMS = "defaults"
+
+
 CFLAGS_append = " -I${S} -DSYS_TIME_H=0"
 do_install () {
        install -d ${D}${sbindir} ${D}${bindir}
index 35f587c..8f10ab4 100644 (file)
@@ -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
 }
        
index 90bf05a..e814102 100644 (file)
@@ -43,14 +43,6 @@ do_install_append() {
        install -c -m 644 ../examples/smb.conf.default ${D}${sysconfdir}/samba/smb.conf
 }
 
-pkg_postinst() {
-       update-rc.d samba defaults 60
-}
-
-pkg_postrm() {
-       update-rc.d samba remove
-}
-
 PACKAGES =+ "swat"
 
 FILES_swat = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg"
index f33ff59..e6e1545 100644 (file)
@@ -9,6 +9,7 @@ SRC_URI = "http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz \
           file://acinclude.m4 \
           file://init"
 S = "${WORKDIR}/thttpd-${PV}"
+
 INITSCRIPT_NAME = "thttpd"
 INITSCRIPT_PARAMS = "defaults"
 
@@ -28,11 +29,3 @@ do_install_append () {
        install -c -m 755 ${WORKDIR}/thttpd ${D}${sysconfdir}/init.d/thttpd
 }
 
-pkg_postinst() {
-        update-rc.d thttpd defaults 67
-}
-
-pkg_postrm() {
-        update-rc.d thttpd remove
-}
-