summaryrefslogtreecommitdiff
path: root/apache/apache_2.0.47.oe
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2003-12-02 22:36:32 +0000
committerChris Larson <clarson@kergoth.com>2003-12-02 22:36:32 +0000
commit48caaff9da7af37cb769c1dbcfd5de4b9bc3d595 (patch)
tree39fa33841bf7c816068aa778bf4d4609f41bc88f /apache/apache_2.0.47.oe
parent70203063fb6f9f8932c56af62b7771d1aedb4b95 (diff)
Add acpid and apache startup scripts, and have them call update-rc.d.
BKrev: 3fcd13f0H57xM3oWJ1RKXNOcC77faA
Diffstat (limited to 'apache/apache_2.0.47.oe')
-rw-r--r--apache/apache_2.0.47.oe25
1 files changed, 25 insertions, 0 deletions
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
+}