diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-15 17:51:08 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-15 17:51:08 +0000 |
commit | 49ad7462c6e16cea004a1123bbebc89ba656fce0 (patch) | |
tree | 60d1661e4fca135f899cddc95f401faebe0b7b72 /www/mod_php4 | |
parent | a1e93258038e2fc3a0bd373eccbd5a7fcd5c36e8 (diff) | |
download | FreeBSD-ports-49ad7462c6e16cea004a1123bbebc89ba656fce0.zip FreeBSD-ports-49ad7462c6e16cea004a1123bbebc89ba656fce0.tar.gz |
Slight revision: If startup file already there, leave it alone.
Diffstat (limited to 'www/mod_php4')
-rw-r--r-- | www/mod_php4/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile index 0804ca7b..81575c1 100644 --- a/www/mod_php4/Makefile +++ b/www/mod_php4/Makefile @@ -3,7 +3,7 @@ # Date created: Fri Aug 25 16:42:36 CDT 1995 # Whom: erich@rrnet.com # -# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $ +# $Id: Makefile,v 1.12 1996/06/15 16:58:06 jkh Exp $ # DISTNAME= apache_1.0.5 @@ -21,9 +21,11 @@ post-extract: cp ${DISTDIR}/mod_env.c ${WRKSRC}/src post-install: - @echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file." - @echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh - @echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh - @chmod 751 ${PREFIX}/etc/rc.d/apache.sh + @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \ + echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \ + echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \ + echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh; \ + chmod 751 ${PREFIX}/etc/rc.d/apache.sh; \ + fi .include <bsd.port.mk> |