diff options
author | tron <tron@pkgsrc.org> | 1999-05-11 18:32:23 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-05-11 18:32:23 +0000 |
commit | 40c91b2f8d62355ea9ad41cfc5e942f47e288b58 (patch) | |
tree | 75bafef150ad55c1e120ae51d6cb96ce02d257f1 /www/apache | |
parent | 27c8369fe8ea9cb839b335f6adef068045fd11f7 (diff) | |
download | pkgsrc-40c91b2f8d62355ea9ad41cfc5e942f47e288b58.tar.gz |
Add a standard start script for Apache.
Diffstat (limited to 'www/apache')
-rw-r--r-- | www/apache/Makefile | 9 | ||||
-rw-r--r-- | www/apache/files/apache.sh | 10 | ||||
-rw-r--r-- | www/apache/pkg/PLIST | 3 |
3 files changed, 19 insertions, 3 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile index 7bc472e90b0..48314c4ea85 100644 --- a/www/apache/Makefile +++ b/www/apache/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 1999/05/11 16:04:03 tron Exp $ +# $NetBSD: Makefile,v 1.33 1999/05/11 18:32:23 tron Exp $ # # The fourth number in the PKGNAME version indicates a NetBSD pkg revision # (to indicate changes in the shipped third party patches such as the mod_ssl @@ -77,13 +77,18 @@ pre-patch: post-patch: @find ${WRKSRC}/htdocs -name '*.orig' | xargs ${RM} +post-build: + ${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/apache.sh \ + >${WRKDIR}/apache.sh + post-install: - @${CP} ${PKGDIR}/PLIST ${PLIST_SRC} ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif \ ${PREFIX}/share/httpd/htdocs + ${INSTALL_SCRIPT} ${WRKDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh @${MV} ${PREFIX}/lib/httpd/libproxy.so \ ${PREFIX}/lib/httpd/mod_proxy.so 2>/dev/null || \ ${MKDIR} ${PREFIX}/lib/httpd + @${CP} ${PKGDIR}/PLIST ${PLIST_SRC} .for FILE in lib/httpd/mod_proxy.so man/man8/suexec.8 sbin/suexec @${TEST} -e ${PREFIX}/${FILE} && ${ECHO} ${FILE} >>${PLIST_SRC} .endfor diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh new file mode 100644 index 00000000000..bd86c1711ce --- /dev/null +++ b/www/apache/files/apache.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# $NetBSD: apache.sh,v 1.1 1999/05/11 18:32:24 tron Exp $ +# +if [ -x @PREFIX@/sbin/httpd -a -f @PREFIX@/etc/httpd/httpd.conf ] +then + @PREFIX@/sbin/apachectl start + echo -n ' apache' +fi +exit 0 diff --git a/www/apache/pkg/PLIST b/www/apache/pkg/PLIST index 8ef4b2687fd..ef62069243c 100644 --- a/www/apache/pkg/PLIST +++ b/www/apache/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.9 1999/05/11 16:04:03 tron Exp $ +@comment $NetBSD: PLIST,v 1.10 1999/05/11 18:32:24 tron Exp $ bin/dbmmanage bin/htdigest bin/htpasswd @@ -8,6 +8,7 @@ etc/httpd/magic.default @exec if [ ! -f %D/etc/httpd/magic ]; then cp -p %D/etc/httpd/magic.default %D/etc/httpd/magic; fi etc/httpd/mime.types.default @exec if [ ! -f %D/etc/httpd/mime.types ]; then cp -p %D/etc/httpd/mime.types.default %D/etc/httpd/mime.types; fi +etc/rc.d/apache.sh include/httpd/alloc.h include/httpd/ap.h include/httpd/ap_compat.h |