All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] netkit-base-0.17: use update-alternatives
@ 2011-02-11 12:49 Andreas Oberritter
  2011-02-11 12:49 ` [PATCH 2/2] busybox: create busybox-inetd package Andreas Oberritter
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Oberritter @ 2011-02-11 12:49 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Eric Bénard

* Give netkit-inetd a priority of 70.
* Add inetd.conf to CONFFILES_${PN}.
* RPROVIDE inetd.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
CC: Eric Bénard <eric@eukrea.com>
---
 recipes/netkit-base/netkit-base_0.17.bb |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/recipes/netkit-base/netkit-base_0.17.bb b/recipes/netkit-base/netkit-base_0.17.bb
index 8ab8935..19fdaee 100644
--- a/recipes/netkit-base/netkit-base_0.17.bb
+++ b/recipes/netkit-base/netkit-base_0.17.bb
@@ -1,7 +1,8 @@
 SECTION = "base"
 DESCRIPTION = "netkit-base includes the inetd daemon."
 LICENSE = "BSD"
-PR = "r2"
+RPROVIDES_${PN} = "inetd"
+PR = "r3"
 
 SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-base-${PV}.tar.gz \
            file://configure.patch \
@@ -28,10 +29,18 @@ do_compile () {
 do_install () {
 	install -d ${D}${sysconfdir}/init.d ${D}${sbindir}
 	install -m 0755 inetd/inetd ${D}${sbindir}/inetd
-	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/inetd
+	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/inetd.${PN}
 	install -m 0644 ${WORKDIR}/inetd.conf ${D}${sysconfdir}
 }
 
+pkg_prerm_${PN} () {
+        update-alternatives --remove inetd-init inetd.${PN}
+}
+pkg_postinst_${PN} () {
+        update-alternatives --install ${sysconfdir}/init.d/inetd inetd-init inetd.${PN} 70
+}
+
+CONFFILES_${PN} = "${sysconfdir}/inetd.conf"
 
 SRC_URI[md5sum] = "1f0193358e92559ec0f598b09ccbc0ec"
 SRC_URI[sha256sum] = "16dd81625ebfc8f5dcb0dfd2e6bac223aad325a9405d66a556fe349446b3c332"
-- 
1.7.2.3




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-11 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11 12:49 [PATCH 1/2] netkit-base-0.17: use update-alternatives Andreas Oberritter
2011-02-11 12:49 ` [PATCH 2/2] busybox: create busybox-inetd package Andreas Oberritter
2011-02-11 14:36   ` Otavio Salvador
2011-02-11 15:16   ` Eric Bénard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.