Enable suexec for apache2 with these config changes:
- install the binary under ${TRUEPREFIX}/sbin/suexec2 - change suexec-caller to _apache2 - log to /var/log/suexec2_log similar to the suexec in base Inputs and OK sthen@, simon@
This commit is contained in:
parent
425e9774ac
commit
2783510601
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2009/04/09 18:36:00 bernd Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2009/05/15 15:46:58 claudio Exp $
|
||||
|
||||
COMMENT= apache HTTP server
|
||||
|
||||
V= 2.2.11
|
||||
PKGNAME= apache-httpd-${V}
|
||||
PKGNAME= apache-httpd-${V}p0
|
||||
DISTNAME= httpd-${V}
|
||||
|
||||
CATEGORIES= www net
|
||||
@ -60,6 +60,10 @@ CONFIGURE_ARGS+= --enable-layout=OpenBSD \
|
||||
--enable-disk-cache \
|
||||
--enable-proxy \
|
||||
--enable-mods-shared=all \
|
||||
--enable-suexec \
|
||||
--with-suexec-caller=_apache2 \
|
||||
--with-suexec-bin=${TRUEPREFIX}/sbin/suexec2 \
|
||||
--with-suexec-logfile=/var/log/suexec2_log \
|
||||
--with-pcre=${LOCALBASE}
|
||||
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
@ -71,7 +75,7 @@ FAKE_FLAGS+= rel_user=_apache2 rel_group=_apache2 \
|
||||
sysconfdir=${PREFIX}/share/examples/apache2/conf
|
||||
|
||||
A2SBIN= apachectl apxs dbmmanage htdigest htpasswd \
|
||||
logresolve rotatelogs
|
||||
logresolve rotatelogs suexec
|
||||
A2MAN1= dbmmanage htdigest htpasswd
|
||||
A2MAN8= apachectl apxs httpd logresolve rotatelogs suexec
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.14 2009/04/09 18:36:00 bernd Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.15 2009/05/15 15:46:58 claudio Exp $
|
||||
@newgroup _apache2:576
|
||||
@newuser _apache2:576:576:daemon:Apache HTTP Server:/var/empty:/sbin/nologin
|
||||
include/apache2/
|
||||
@ -104,6 +104,7 @@ lib/apache2/mod_speling.so
|
||||
lib/apache2/mod_ssl.so
|
||||
lib/apache2/mod_status.so
|
||||
lib/apache2/mod_substitute.so
|
||||
lib/apache2/mod_suexec.so
|
||||
lib/apache2/mod_unique_id.so
|
||||
lib/apache2/mod_userdir.so
|
||||
lib/apache2/mod_usertrack.so
|
||||
@ -136,6 +137,7 @@ sbin/envvars-std
|
||||
@bin sbin/httxt2dbm
|
||||
@bin sbin/logresolve2
|
||||
@bin sbin/rotatelogs2
|
||||
@bin sbin/suexec2
|
||||
share/apache2/
|
||||
share/apache2/build/
|
||||
share/apache2/build/config.nice
|
||||
|
Loading…
Reference in New Issue
Block a user