# HG changeset patch # User Pascal Bellard # Date 1226152079 0 # Node ID ea5bbe74dfcdaf3c254bd24f69e0008f56695a06 # Parent 112426c8ff9df84940e2b435cb5b300245e0b686 Apache: may update /etc/hosts diff -r 112426c8ff9d -r ea5bbe74dfcd apache/receipt --- a/apache/receipt Sat Nov 08 13:47:07 2008 +0000 +++ b/apache/receipt Sat Nov 08 13:47:59 2008 +0000 @@ -22,7 +22,7 @@ grep -q Slitaz config.layout || \ cat ../stuff/slitaz.layout >> config.layout ./configure --mandir=/usr/share/man --enable-mods-shared=all \ - --enable-layout=Slitaz $CONFIGURE_ARGS && \ + --enable-layout=Slitaz $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install } @@ -62,6 +62,8 @@ echo "Processing post-install commands..." # Just in case. chown www.www $1/var/log/$PACKAGE + ping -c 2 $(hostname) > /dev/null 2>&1 || + sed -i "s/localhost/$(hostname) localhost/" /etc/hosts /etc/init.d/$PACKAGE start }