wok diff apache/receipt @ rev 3941

zile: fix dependencies.
author Dominique Corbex <domcox@users.sourceforge.net>
date Sat Aug 22 12:57:45 2009 +0200 (2009-08-22)
parents 56777a448469
children 0588160a6878
line diff
     1.1 --- a/apache/receipt	Thu Apr 23 09:38:41 2009 +0200
     1.2 +++ b/apache/receipt	Sat Aug 22 12:57:45 2009 +0200
     1.3 @@ -39,7 +39,15 @@
     1.4  	cp -a $_pkg/etc $fs
     1.5  	rm -rf $fs/etc/apache/original
     1.6  	cp -a $_pkg/var $fs
     1.7 -	ln -s /usr/bin/apachectl $fs/etc/init.d/apache
     1.8 +	cat > $fs/etc/init.d/apache <<EOT
     1.9 +#!/bin/sh
    1.10 + 
    1.11 +. /etc/init.d/rc.functions
    1.12 +active_pidfile /var/run/apache/httpd.pid httpd
    1.13 + 
    1.14 +exec /usr/bin/apachectl "\$@"
    1.15 +EOT
    1.16 +	chmod +x $fs/etc/init.d/apache
    1.17  	sed -i  -e 's|User daemon|User www|' -e 's|Group daemon|Group www|' \
    1.18  		-e 's|ServerAdmin you@example.com|ServerAdmin root@localhost|' \
    1.19  		-e 's|#Include /etc/apache/extra/httpd-ssl.conf|Include /etc/apache/extra/httpd-ssl.conf|' \