Make sure that the "suexec" module actually gets built and installed if the package gets build with "apache-shared-modules suexec ..." as the options. Bump package revision for the benefit of users which previously compiled the package these options and don't have the "suexec" module available. Problem pointed out by Filip Hajny in private e-mail.diff -r1.57 -r1.58 pkgsrc/www/apache22/Makefile
(tron)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.57 2010/04/30 16:30:09 tron Exp $ | 1 | # $NetBSD: Makefile,v 1.58 2010/05/03 20:10:33 tron Exp $ | |
2 | 2 | |||
3 | DISTNAME= httpd-2.2.15 | 3 | DISTNAME= httpd-2.2.15 | |
4 | PKGREVISION= 1 | 4 | PKGREVISION= 2 | |
5 | PKGNAME= ${DISTNAME:S/httpd/apache/} | 5 | PKGNAME= ${DISTNAME:S/httpd/apache/} | |
6 | CATEGORIES= www | 6 | CATEGORIES= www | |
7 | MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/} \ | 7 | MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/} \ | |
8 | http://archive.apache.org/dist/httpd/ \ | 8 | http://archive.apache.org/dist/httpd/ \ | |
9 | http://archive.eu.apache.org/dist/httpd/ | 9 | http://archive.eu.apache.org/dist/httpd/ | |
10 | EXTRACT_SUFX= .tar.bz2 | 10 | EXTRACT_SUFX= .tar.bz2 | |
11 | 11 | |||
12 | MAINTAINER= tron@NetBSD.org | 12 | MAINTAINER= tron@NetBSD.org | |
13 | HOMEPAGE= http://httpd.apache.org/ | 13 | HOMEPAGE= http://httpd.apache.org/ | |
14 | COMMENT= Apache HTTP (Web) server, version 2.2 | 14 | COMMENT= Apache HTTP (Web) server, version 2.2 | |
15 | LICENSE= apache-2.0 | 15 | LICENSE= apache-2.0 | |
16 | 16 | |||
17 | PKG_DESTDIR_SUPPORT= user-destdir | 17 | PKG_DESTDIR_SUPPORT= user-destdir |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.17 2010/04/30 16:30:09 tron Exp $ | 1 | @comment $NetBSD: PLIST,v 1.18 2010/05/03 20:10:33 tron Exp $ | |
2 | ${PLIST.suexec}sbin/suexec | 2 | ${PLIST.suexec}sbin/suexec | |
3 | include/httpd/ap_compat.h | 3 | include/httpd/ap_compat.h | |
4 | include/httpd/ap_config.h | 4 | include/httpd/ap_config.h | |
5 | include/httpd/ap_config_auto.h | 5 | include/httpd/ap_config_auto.h | |
6 | include/httpd/ap_config_layout.h | 6 | include/httpd/ap_config_layout.h | |
7 | include/httpd/ap_listen.h | 7 | include/httpd/ap_listen.h | |
8 | include/httpd/ap_mmn.h | 8 | include/httpd/ap_mmn.h | |
9 | include/httpd/ap_mpm.h | 9 | include/httpd/ap_mpm.h | |
10 | include/httpd/ap_provider.h | 10 | include/httpd/ap_provider.h | |
11 | include/httpd/ap_regex.h | 11 | include/httpd/ap_regex.h | |
12 | include/httpd/ap_regkey.h | 12 | include/httpd/ap_regkey.h | |
13 | include/httpd/ap_release.h | 13 | include/httpd/ap_release.h | |
14 | include/httpd/http_config.h | 14 | include/httpd/http_config.h | |
@@ -109,26 +109,27 @@ ${PLIST.all-shared}lib/httpd/mod_proxy.s | @@ -109,26 +109,27 @@ ${PLIST.all-shared}lib/httpd/mod_proxy.s | |||
109 | ${PLIST.all-shared}lib/httpd/mod_proxy_ajp.so | 109 | ${PLIST.all-shared}lib/httpd/mod_proxy_ajp.so | |
110 | ${PLIST.all-shared}lib/httpd/mod_proxy_balancer.so | 110 | ${PLIST.all-shared}lib/httpd/mod_proxy_balancer.so | |
111 | ${PLIST.all-shared}lib/httpd/mod_proxy_connect.so | 111 | ${PLIST.all-shared}lib/httpd/mod_proxy_connect.so | |
112 | ${PLIST.all-shared}lib/httpd/mod_proxy_ftp.so | 112 | ${PLIST.all-shared}lib/httpd/mod_proxy_ftp.so | |
113 | ${PLIST.all-shared}lib/httpd/mod_proxy_http.so | 113 | ${PLIST.all-shared}lib/httpd/mod_proxy_http.so | |
114 | ${PLIST.all-shared}lib/httpd/mod_proxy_scgi.so | 114 | ${PLIST.all-shared}lib/httpd/mod_proxy_scgi.so | |
115 | ${PLIST.all-shared}lib/httpd/mod_reqtimeout.so | 115 | ${PLIST.all-shared}lib/httpd/mod_reqtimeout.so | |
116 | ${PLIST.all-shared}lib/httpd/mod_rewrite.so | 116 | ${PLIST.all-shared}lib/httpd/mod_rewrite.so | |
117 | ${PLIST.all-shared}lib/httpd/mod_setenvif.so | 117 | ${PLIST.all-shared}lib/httpd/mod_setenvif.so | |
118 | ${PLIST.all-shared}lib/httpd/mod_speling.so | 118 | ${PLIST.all-shared}lib/httpd/mod_speling.so | |
119 | ${PLIST.all-shared}lib/httpd/mod_ssl.so | 119 | ${PLIST.all-shared}lib/httpd/mod_ssl.so | |
120 | ${PLIST.all-shared}lib/httpd/mod_status.so | 120 | ${PLIST.all-shared}lib/httpd/mod_status.so | |
121 | ${PLIST.all-shared}lib/httpd/mod_substitute.so | 121 | ${PLIST.all-shared}lib/httpd/mod_substitute.so | |
122 | ${PLIST.all-shared}${PLIST.suexec}lib/httpd/mod_suexec.so | |||
122 | ${PLIST.all-shared}lib/httpd/mod_unique_id.so | 123 | ${PLIST.all-shared}lib/httpd/mod_unique_id.so | |
123 | ${PLIST.all-shared}lib/httpd/mod_userdir.so | 124 | ${PLIST.all-shared}lib/httpd/mod_userdir.so | |
124 | ${PLIST.all-shared}lib/httpd/mod_usertrack.so | 125 | ${PLIST.all-shared}lib/httpd/mod_usertrack.so | |
125 | ${PLIST.all-shared}lib/httpd/mod_version.so | 126 | ${PLIST.all-shared}lib/httpd/mod_version.so | |
126 | ${PLIST.all-shared}lib/httpd/mod_vhost_alias.so | 127 | ${PLIST.all-shared}lib/httpd/mod_vhost_alias.so | |
127 | libexec/cgi-bin/printenv | 128 | libexec/cgi-bin/printenv | |
128 | libexec/cgi-bin/test-cgi | 129 | libexec/cgi-bin/test-cgi | |
129 | man/man1/dbmmanage.1 | 130 | man/man1/dbmmanage.1 | |
130 | man/man1/htdbm.1 | 131 | man/man1/htdbm.1 | |
131 | man/man1/htdigest.1 | 132 | man/man1/htdigest.1 | |
132 | man/man1/htpasswd.1 | 133 | man/man1/htpasswd.1 | |
133 | man/man8/ab.8 | 134 | man/man8/ab.8 | |
134 | man/man8/apachectl.8 | 135 | man/man8/apachectl.8 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.7 2010/04/30 16:30:09 tron Exp $ | 1 | # $NetBSD: options.mk,v 1.8 2010/05/03 20:10:33 tron Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.apache | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.apache | |
4 | PKG_OPTIONS_REQUIRED_GROUPS= mpm | 4 | PKG_OPTIONS_REQUIRED_GROUPS= mpm | |
5 | PKG_OPTIONS_GROUP.mpm= apache-mpm-event apache-mpm-prefork apache-mpm-worker | 5 | PKG_OPTIONS_GROUP.mpm= apache-mpm-event apache-mpm-prefork apache-mpm-worker | |
6 | PKG_SUPPORTED_OPTIONS= apache-shared-modules suexec | 6 | PKG_SUPPORTED_OPTIONS= apache-shared-modules suexec | |
7 | PKG_SUGGESTED_OPTIONS= apache-shared-modules apache-mpm-prefork | 7 | PKG_SUGGESTED_OPTIONS= apache-shared-modules apache-mpm-prefork | |
8 | 8 | |||
9 | .include "../../mk/bsd.options.mk" | 9 | .include "../../mk/bsd.options.mk" | |
10 | 10 | |||
11 | # Set the "Multi-Processing Model" used by Apache to handle requests. | 11 | # Set the "Multi-Processing Model" used by Apache to handle requests. | |
12 | # Valid values are: | 12 | # Valid values are: | |
13 | # event multi-threaded based in worker, designed | 13 | # event multi-threaded based in worker, designed | |
14 | # to allow more requests to be served | 14 | # to allow more requests to be served | |
@@ -46,20 +46,24 @@ PLIST_VARS+= suexec | @@ -46,20 +46,24 @@ PLIST_VARS+= suexec | |||
46 | BUILD_DEFS+= APACHE_SUEXEC_PATH | 46 | BUILD_DEFS+= APACHE_SUEXEC_PATH | |
47 | BUILD_DEFS+= APACHE_SUEXEC_DOCROOT APACHE_SUEXEC_LOGFILE | 47 | BUILD_DEFS+= APACHE_SUEXEC_DOCROOT APACHE_SUEXEC_LOGFILE | |
48 | 48 | |||
49 | APACHE_SUEXEC_DOCROOT?= ${PREFIX}/share/httpd/htdocs | 49 | APACHE_SUEXEC_DOCROOT?= ${PREFIX}/share/httpd/htdocs | |
50 | APACHE_SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin | 50 | APACHE_SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin | |
51 | APACHE_SUEXEC_LOGFILE?= ${VARBASE}/log/httpd/suexec.log | 51 | APACHE_SUEXEC_LOGFILE?= ${VARBASE}/log/httpd/suexec.log | |
52 | APACHE_SUEXEC_CONFIGURE_ARGS+= \ | 52 | APACHE_SUEXEC_CONFIGURE_ARGS+= \ | |
53 | --with-suexec-bin=${PREFIX}/sbin/suexec \ | 53 | --with-suexec-bin=${PREFIX}/sbin/suexec \ | |
54 | --with-suexec-caller=${APACHE_USER} \ | 54 | --with-suexec-caller=${APACHE_USER} \ | |
55 | --with-suexec-safepath='${APACHE_SUEXEC_PATH:Q}' \ | 55 | --with-suexec-safepath='${APACHE_SUEXEC_PATH:Q}' \ | |
56 | --with-suexec-docroot=${APACHE_SUEXEC_DOCROOT:Q} \ | 56 | --with-suexec-docroot=${APACHE_SUEXEC_DOCROOT:Q} \ | |
57 | --with-suexec-logfile=${APACHE_SUEXEC_LOGFILE:Q} | 57 | --with-suexec-logfile=${APACHE_SUEXEC_LOGFILE:Q} | |
58 | 58 | |||
59 | . if !empty(PKG_OPTIONS:Mapache-shared-modules) | |||
60 | CONFIGURE_ARGS+= --enable-modules="all suexec" | |||
61 | . else | |||
59 | APACHE_MODULES+= suexec | 62 | APACHE_MODULES+= suexec | |
63 | . endif | |||
60 | CONFIGURE_ARGS+= ${APACHE_SUEXEC_CONFIGURE_ARGS:M--with-suexec-*} | 64 | CONFIGURE_ARGS+= ${APACHE_SUEXEC_CONFIGURE_ARGS:M--with-suexec-*} | |
61 | BUILD_DEFS+= APACHE_SUEXEC_CONFIGURE_ARGS | 65 | BUILD_DEFS+= APACHE_SUEXEC_CONFIGURE_ARGS | |
62 | BUILD_TARGET= all suexec | 66 | BUILD_TARGET= all suexec | |
63 | PLIST.suexec= yes | 67 | PLIST.suexec= yes | |
64 | SPECIAL_PERMS+= sbin/suexec ${REAL_ROOT_USER} ${APACHE_GROUP} 4510 | 68 | SPECIAL_PERMS+= sbin/suexec ${REAL_ROOT_USER} ${APACHE_GROUP} 4510 | |
65 | .endif | 69 | .endif |