summaryrefslogtreecommitdiff
path: root/apache/apache_2.0.48.oe
diff options
context:
space:
mode:
Diffstat (limited to 'apache/apache_2.0.48.oe')
-rw-r--r--apache/apache_2.0.48.oe25
1 files changed, 25 insertions, 0 deletions
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
+}