summaryrefslogtreecommitdiff
path: root/package/miredo/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
commitba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch)
tree10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/miredo/files
parentbbd610f15a71b27c955175cb98392b114717fd47 (diff)
optimize ipkg package management
- generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig
Diffstat (limited to 'package/miredo/files')
-rw-r--r--package/miredo/files/miredo-server.init4
-rw-r--r--package/miredo/files/miredo-server.postinst3
-rw-r--r--package/miredo/files/miredo.conffiles1
-rw-r--r--package/miredo/files/miredo.init4
-rw-r--r--package/miredo/files/miredo.postinst3
5 files changed, 13 insertions, 2 deletions
diff --git a/package/miredo/files/miredo-server.init b/package/miredo/files/miredo-server.init
index d8282e316..6231573a4 100644
--- a/package/miredo/files/miredo-server.init
+++ b/package/miredo/files/miredo-server.init
@@ -1,5 +1,7 @@
#!/bin/sh
-#FWINIT 60
+#PKG miredo-server
+#INIT 60
+
. /etc/rc.conf
case $1 in
diff --git a/package/miredo/files/miredo-server.postinst b/package/miredo/files/miredo-server.postinst
new file mode 100644
index 000000000..00c88c459
--- /dev/null
+++ b/package/miredo/files/miredo-server.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf miredo-server miredo-server NO
diff --git a/package/miredo/files/miredo.conffiles b/package/miredo/files/miredo.conffiles
new file mode 100644
index 000000000..f4d3b04af
--- /dev/null
+++ b/package/miredo/files/miredo.conffiles
@@ -0,0 +1 @@
+/etc/miredo/miredo.conf
diff --git a/package/miredo/files/miredo.init b/package/miredo/files/miredo.init
index bb4b3fdcd..d1e846ad7 100644
--- a/package/miredo/files/miredo.init
+++ b/package/miredo/files/miredo.init
@@ -1,5 +1,7 @@
#!/bin/sh
-#FWINIT 60
+#PKG miredo
+#INIT 60
+
. /etc/rc.conf
case $1 in
diff --git a/package/miredo/files/miredo.postinst b/package/miredo/files/miredo.postinst
new file mode 100644
index 000000000..37667f8da
--- /dev/null
+++ b/package/miredo/files/miredo.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf miredo miredo NO