diff options
author | Chris Larson <clarson@kergoth.com> | 2003-12-02 22:36:32 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2003-12-02 22:36:32 +0000 |
commit | 48caaff9da7af37cb769c1dbcfd5de4b9bc3d595 (patch) | |
tree | 39fa33841bf7c816068aa778bf4d4609f41bc88f /apache | |
parent | 70203063fb6f9f8932c56af62b7771d1aedb4b95 (diff) |
Add acpid and apache startup scripts, and have them call update-rc.d.
BKrev: 3fcd13f0H57xM3oWJ1RKXNOcC77faA
Diffstat (limited to 'apache')
-rw-r--r-- | apache/apache-2.0.47/init | 0 | ||||
-rw-r--r-- | apache/apache-2.0.48/init | 0 | ||||
-rw-r--r-- | apache/apache_2.0.47.oe | 25 | ||||
-rw-r--r-- | apache/apache_2.0.48.oe | 25 |
4 files changed, 50 insertions, 0 deletions
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 +} |