1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

- 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>
This commit is contained in:
Clement Laforet 2004-06-29 10:40:08 +00:00
parent f83bfb08cc
commit 82a666fe43
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=112541

View File

@ -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)