834e87969d
where they would like the suexec logfile to go. Ok'ed tron@ - Bump pkgrevision
25 lines
910 B
Makefile
25 lines
910 B
Makefile
# $NetBSD: options.mk,v 1.3 2005/05/18 19:10:01 adrianp Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.apache
|
|
PKG_SUPPORTED_OPTIONS= suexec
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Msuexec)
|
|
APACHE_SUEXEC_DOCROOT?= ${PREFIX}/share/httpd/htdocs
|
|
APACHE_SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin
|
|
APACHE_SUEXEC_LOGFILE?= ${VARBASE}/log/httpd/suexec.log
|
|
APACHE_SUEXEC_CONFIGURE_ARGS+= \
|
|
--with-suexec-bin=${PREFIX}/sbin/suexec \
|
|
--with-suexec-caller=${APACHE_USER} \
|
|
--with-suexec-safepath='${APACHE_SUEXEC_PATH}' \
|
|
--with-suexec-docroot=${APACHE_SUEXEC_DOCROOT} \
|
|
--with-suexec-logfile=${APACHE_SUEXEC_LOGFILE}
|
|
|
|
APACHE_MODULES+= suexec
|
|
CONFIGURE_ARGS+= ${APACHE_SUEXEC_CONFIGURE_ARGS:M--with-suexec-*}
|
|
BUILD_DEFS+= APACHE_SUEXEC_CONFIGURE_ARGS
|
|
PLIST_SUBST+= SUEXEC_COMMENT=
|
|
.else
|
|
PLIST_SUBST+= SUEXEC_COMMENT="@comment "
|
|
.endif
|