From 49ad7462c6e16cea004a1123bbebc89ba656fce0 Mon Sep 17 00:00:00 2001 From: jkh Date: Sat, 15 Jun 1996 17:51:08 +0000 Subject: Slight revision: If startup file already there, leave it alone. --- www/apache13-ssl/Makefile | 12 +++++++----- www/apache13/Makefile | 12 +++++++----- www/apache2/Makefile | 12 +++++++----- www/apache20/Makefile | 12 +++++++----- www/apache21/Makefile | 12 +++++++----- www/apache22/Makefile | 12 +++++++----- www/mod_php3/Makefile | 12 +++++++----- www/mod_php4/Makefile | 12 +++++++----- www/mod_php5/Makefile | 12 +++++++----- 9 files changed, 63 insertions(+), 45 deletions(-) (limited to 'www') diff --git a/www/apache13-ssl/Makefile b/www/apache13-ssl/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/apache13-ssl/Makefile +++ b/www/apache13-ssl/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 diff --git a/www/apache13/Makefile b/www/apache13/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/apache13/Makefile +++ b/www/apache13/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 diff --git a/www/apache2/Makefile b/www/apache2/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/apache2/Makefile +++ b/www/apache2/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 diff --git a/www/apache20/Makefile b/www/apache20/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/apache20/Makefile +++ b/www/apache20/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 diff --git a/www/apache21/Makefile b/www/apache21/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/apache21/Makefile +++ b/www/apache21/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 diff --git a/www/apache22/Makefile b/www/apache22/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/apache22/Makefile +++ b/www/apache22/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 diff --git a/www/mod_php3/Makefile b/www/mod_php3/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/mod_php3/Makefile +++ b/www/mod_php3/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 diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile index 0804ca7b31f2..81575c1b2c22 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 diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile index 0804ca7b31f2..81575c1b2c22 100644 --- a/www/mod_php5/Makefile +++ b/www/mod_php5/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 -- cgit