diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-15 16:58:09 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-15 16:58:09 +0000 |
commit | 634cb784a969fe318c4ea6676b13a8849ec23005 (patch) | |
tree | e9b02142d08b64158ef966a3639f9bfe06acee08 /www/apache2/Makefile | |
parent | b8c2d0dd22bf06a58f74407959e43ae7fa27ee70 (diff) | |
download | FreeBSD-ports-634cb784a969fe318c4ea6676b13a8849ec23005.zip FreeBSD-ports-634cb784a969fe318c4ea6676b13a8849ec23005.tar.gz |
Install an apache.sh startup file in /usr/local/etc/rc.d/
Now that apache_httpd is gone from /etc/sysconfig, this is the canonical
way to make apache start automatically in a new system installation.
Diffstat (limited to 'www/apache2/Makefile')
-rw-r--r-- | www/apache2/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile index f527a3d..0804ca7b 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.10 1996/05/19 22:21:42 ache Exp $ +# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $ # DISTNAME= apache_1.0.5 @@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz 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 + .include <bsd.port.mk> |