aboutsummaryrefslogtreecommitdiff
path: root/www/apache13
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2004-05-27 03:31:41 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2004-05-27 03:31:41 +0000
commita6fe35d61e39b3a0be3340a204378d0a4e4af836 (patch)
treeac0088cbf217b9a8a77fbdbfc772d364a10912f5 /www/apache13
parent24f6cde1c8512c7c0d471d18b1f881d3951520f5 (diff)
downloadports-a6fe35d61e39b3a0be3340a204378d0a4e4af836.tar.gz
ports-a6fe35d61e39b3a0be3340a204378d0a4e4af836.zip
Notes
Diffstat (limited to 'www/apache13')
-rw-r--r--www/apache13/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/www/apache13/Makefile b/www/apache13/Makefile
index 3e42fa5e824e..0719908a3c19 100644
--- a/www/apache13/Makefile
+++ b/www/apache13/Makefile
@@ -28,8 +28,21 @@ CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.*
USE_PERL5= yes
USE_RC_SUBR= yes
+.if defined(APACHE_DATADIR)
+DATADIR=${APACHE_DATADIR}
+.else
DATADIR=${PREFIX}/www
+.endif
+.if defined(APACHE_DOCUMENT_ROOT)
+DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
+.else
DOCUMENT_ROOT=${DATADIR}/data
+.endif
+.if defined(APACHE_CGIBIN_ROOT)
+CGIBIN_ROOT=${APACHE_CGIBIN_ROOT}
+.else
+CGIBIN_ROOT=${DATADIR}/cgi-bin
+.endif
DEFAULT_PATH=/bin:/usr/bin:${PREFIX}/bin
RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
@@ -85,6 +98,9 @@ CONFIGURE_ARGS+= \
--server-gid=www \
--with-perl=${PERL} \
--with-layout=FreeBSD \
+ --datadir=${DATADIR} \
+ --htdocsdir=${DOCUMENT_ROOT} \
+ --cgidir=${CGIBIN_ROOT} \
--without-confadjust \
--enable-module=most \
--enable-module=auth_db \
@@ -137,8 +153,8 @@ pre-install:
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh
- @${TOUCH} ${PREFIX}/www/data-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
- @${TOUCH} ${PREFIX}/www/cgi-bin-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
+ @${TOUCH} ${DOCUMENT_ROOT}-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
+ @${TOUCH} ${CGIBIN_ROOT}-dist/EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>