aboutsummaryrefslogtreecommitdiffstats
path: root/www/suphp
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-06-29 18:40:08 +0800
committerclement <clement@FreeBSD.org>2004-06-29 18:40:08 +0800
commit26e96bccd42a645291439c403a0707c8c38e0425 (patch)
treee42db6d4dd03c0db201f6775d43f82d393aa7652 /www/suphp
parent4919dd0f998eedf45720258585c7212d42b912ea (diff)
downloadfreebsd-ports-gnome-26e96bccd42a645291439c403a0707c8c38e0425.tar.gz
freebsd-ports-gnome-26e96bccd42a645291439c403a0707c8c38e0425.tar.zst
freebsd-ports-gnome-26e96bccd42a645291439c403a0707c8c38e0425.zip
- Add WITH_LOGNAME and WITH_LOGPATH knobs.
I kept LOG_NAME to not break POLA (Will be removed for next release). Requested by: Dennis Koster <dennis@phlex.net>
Diffstat (limited to 'www/suphp')
-rw-r--r--www/suphp/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/www/suphp/Makefile b/www/suphp/Makefile
index 5f68c2564330..d8dc18caa65c 100644
--- a/www/suphp/Makefile
+++ b/www/suphp/Makefile
@@ -20,7 +20,8 @@ USE_GMAKE= yes
USE_APACHE= yes
CONFLICTS= mod_php4-4* php-4.*
-LOG_PATH?= /var/log
+LOG_PATH?= ${WITH_LOGPATH}
+WITH_LOGNAME?= suphp.log
PHP_PATH?= ${LOCALBASE}/bin/php
APACHE_USER?= ${WWWOWN}
MIN_UID?= 80
@@ -31,7 +32,7 @@ MYPORTDOCS= apache/CONFIG apache/INSTALL apache/README apache/LICENSE \
LANG= en de
CONFIGURE_ARGS+= --with-php=${PHP_PATH} \
- --with-logfile=${LOG_PATH}/suphp.log \
+ --with-logfile=${LOG_PATH}/${WITH_LOGNAME} \
--with-apache-user=${APACHE_USER} \
--with-min-gid=${MIN_UID} \
--with-min-uid=${MIN_GID} \
@@ -52,7 +53,9 @@ CONFIGURE_ARGS+= --disable-checkgid
.endif
## WITH_SETID_MODE: Mode to use for setting UID/GID.
CONFIGURE_ARGS+= --enable-setid-mode=${WITH_SETID_MODE}
-
+## WITH_LOGPATH (formerly known as LOG_PATH): logging directory
+## (default: /var/log)
+## WITH_LOGNAME: log file name (default suphp.log)
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/apache2/apr.h) || defined(WITH_APACHE2)