summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acpid/acpid-1.0.2/init0
-rw-r--r--acpid/acpid_1.0.2.oe17
-rw-r--r--apache/apache-2.0.47/init0
-rw-r--r--apache/apache-2.0.48/init0
-rw-r--r--apache/apache_2.0.47.oe25
-rw-r--r--apache/apache_2.0.48.oe25
6 files changed, 67 insertions, 0 deletions
diff --git a/acpid/acpid-1.0.2/init b/acpid/acpid-1.0.2/init
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/acpid/acpid-1.0.2/init
diff --git a/acpid/acpid_1.0.2.oe b/acpid/acpid_1.0.2.oe
index 9e1274b8ce..7b962dbed0 100644
--- a/acpid/acpid_1.0.2.oe
+++ b/acpid/acpid_1.0.2.oe
@@ -10,4 +10,21 @@ do_compile () {
do_install () {
oe_runmake 'INSTPREFIX=${D}' install
+ install -d ${D}/${sysconfdir}/init.d
+ cat ${FILESDIR}/init | sed -e's,/usr/sbin,${sbindir},g' > ${D}/${sysconfdir}/init.d/acpid
+ chmod 755 ${D}/${sysconfdir}/init.d/acpid
+}
+
+pkg_postinst () {
+ if test -n "$D"; then
+ D="-r $D"
+ fi
+ update-rc.d $D acpid defaults
+}
+
+pkg_prerm () {
+ if test -n "$D"; then
+ D="-r $D"
+ fi
+ update-rc.d $D acpid remove
}
diff --git a/apache/apache-2.0.47/init b/apache/apache-2.0.47/init
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/apache/apache-2.0.47/init
diff --git a/apache/apache-2.0.48/init b/apache/apache-2.0.48/init
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/apache/apache-2.0.48/init
diff --git a/apache/apache_2.0.47.oe b/apache/apache_2.0.47.oe
index 10658ee80e..34ddaa2a4e 100644
--- a/apache/apache_2.0.47.oe
+++ b/apache/apache_2.0.47.oe
@@ -27,3 +27,28 @@ do_compile () {
cd ..
oe_runmake
}
+
+do_install_append () {
+ install -d ${D}/${sysconfdir}/init.d
+ cat ${FILESDIR}/init | \
+ sed -e 's,/usr/sbin/,${sbindir},g; \
+ s,/usr/bin/,${bindir},g; \
+ s,/usr/lib,${libdir},g; \
+ s,/etc/,${sysconfdir},g; \
+ s,/usr/,${prefix},g;' > ${D}/${sysconfdir}/init.d/apache
+ chmod 755 ${D}/${sysconfdir}/init.d/apache
+}
+
+pkg_postinst () {
+ if test -n "$D"; then
+ D="-r $D"
+ fi
+ update-rc.d $D apache defaults 91 20
+}
+
+pkg_prerm () {
+ if test -n "$D"; then
+ D="-r $D"
+ fi
+ update-rc.d $D apache remove
+}
diff --git a/apache/apache_2.0.48.oe b/apache/apache_2.0.48.oe
index fecb3dbfd6..a328d78e11 100644
--- a/apache/apache_2.0.48.oe
+++ b/apache/apache_2.0.48.oe
@@ -29,3 +29,28 @@ do_compile () {
cd ..
oe_runmake
}
+
+do_install_append () {
+ install -d ${D}/${sysconfdir}/init.d
+ cat ${FILESDIR}/init | \
+ sed -e 's,/usr/sbin/,${sbindir},g; \
+ s,/usr/bin/,${bindir},g; \
+ s,/usr/lib,${libdir},g; \
+ s,/etc/,${sysconfdir},g; \
+ s,/usr/,${prefix},g;' > ${D}/${sysconfdir}/init.d/apache
+ chmod 755 ${D}/${sysconfdir}/init.d/apache
+}
+
+pkg_postinst () {
+ if test -n "$D"; then
+ D="-r $D"
+ fi
+ update-rc.d $D apache defaults 91 20
+}
+
+pkg_prerm () {
+ if test -n "$D"; then
+ D="-r $D"
+ fi
+ update-rc.d $D apache remove
+}