add initscript for portmap
authorPhil Blundell <philb@gnu.org>
Sat, 18 Sep 2004 11:52:29 +0000 (11:52 +0000)
committerPhil Blundell <philb@gnu.org>
Sat, 18 Sep 2004 11:52:29 +0000 (11:52 +0000)
BKrev: 414c217dSqCLvG-dP1O49qz_RhDbqw

portmap/portmap.init [new file with mode: 0644]
portmap/portmap_5-4.oe

diff --git a/portmap/portmap.init b/portmap/portmap.init
new file mode 100644 (file)
index 0000000..e69de29
index 98ed8be..3b4bf27 100644 (file)
@@ -1,9 +1,17 @@
+PR = "r1"
+
 SRC_URI = "http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_5.orig.tar.gz \
        http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_5-4.diff.gz;patch=1 \
        file://no-libwrap.patch;patch=1;pnum=0 \
+       file://portmap.init \
        file://make.patch;patch=1"
 S = "${WORKDIR}/portmap_5beta"
 
+INITSCRIPT_NAME = "portmap"
+INITSCRIPT_PARAMS = "43 S . start 32 0 6 . start 18 2 3 4 5 . stop 81 1 ."
+
+inherit update-rc.d
+
 sbindir = "/sbin"
 
 do_compile() {
@@ -11,6 +19,8 @@ do_compile() {
 }
 
 do_install() {
+       install -d ${D}/etc/init.d
+       install -m 0644 ${WORKDIR}/portmap.init ${D}/etc/init.d/
        oe_runmake 'docdir=${datadir}/doc/portmap' \
                   'DESTDIR=${D}' install
 }