aboutsummaryrefslogtreecommitdiffstats
path: root/www/suphp
diff options
context:
space:
mode:
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)