| @@ -1,263 +1,262 @@ | | | @@ -1,263 +1,262 @@ |
1 | # $NetBSD: Makefile,v 1.59 2010/06/12 10:40:26 tron Exp $ | | 1 | # $NetBSD: Makefile,v 1.59.2.1 2010/07/27 17:25:35 spz Exp $ |
2 | | | 2 | |
3 | DISTNAME= httpd-2.2.15 | | 3 | DISTNAME= httpd-2.2.16 |
4 | PKGREVISION= 3 | | | |
5 | PKGNAME= ${DISTNAME:S/httpd/apache/} | | 4 | PKGNAME= ${DISTNAME:S/httpd/apache/} |
6 | CATEGORIES= www | | 5 | CATEGORIES= www |
7 | MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/} \ | | 6 | MASTER_SITES= ${MASTER_SITE_APACHE:=httpd/} \ |
8 | http://archive.apache.org/dist/httpd/ \ | | 7 | http://archive.apache.org/dist/httpd/ \ |
9 | http://archive.eu.apache.org/dist/httpd/ | | 8 | http://archive.eu.apache.org/dist/httpd/ |
10 | EXTRACT_SUFX= .tar.bz2 | | 9 | EXTRACT_SUFX= .tar.bz2 |
11 | | | 10 | |
12 | MAINTAINER= tron@NetBSD.org | | 11 | MAINTAINER= tron@NetBSD.org |
13 | HOMEPAGE= http://httpd.apache.org/ | | 12 | HOMEPAGE= http://httpd.apache.org/ |
14 | COMMENT= Apache HTTP (Web) server, version 2.2 | | 13 | COMMENT= Apache HTTP (Web) server, version 2.2 |
15 | LICENSE= apache-2.0 | | 14 | LICENSE= apache-2.0 |
16 | | | 15 | |
17 | PKG_DESTDIR_SUPPORT= user-destdir | | 16 | PKG_DESTDIR_SUPPORT= user-destdir |
18 | | | 17 | |
19 | BUILD_DEFS+= IPV6_READY | | 18 | BUILD_DEFS+= IPV6_READY |
20 | BUILD_DEFS+= VARBASE | | 19 | BUILD_DEFS+= VARBASE |
21 | | | 20 | |
22 | USE_TOOLS+= pax perl perl:run pkg-config | | 21 | USE_TOOLS+= pax perl perl:run pkg-config |
23 | USE_LIBTOOL= yes | | 22 | USE_LIBTOOL= yes |
24 | GNU_CONFIGURE= yes | | 23 | GNU_CONFIGURE= yes |
25 | CONFIGURE_ARGS+= --enable-layout=NetBSD | | 24 | CONFIGURE_ARGS+= --enable-layout=NetBSD |
26 | CONFIGURE_ARGS+= --with-port=80 | | 25 | CONFIGURE_ARGS+= --with-port=80 |
27 | CONFIGURE_ARGS+= --enable-so | | 26 | CONFIGURE_ARGS+= --enable-so |
28 | CONFIGURE_ENV+= perlbin=${PERL5:Q} | | 27 | CONFIGURE_ENV+= perlbin=${PERL5:Q} |
29 | CONFIGURE_ENV+= ac_cv_path_RSYNC=/nonexistent | | 28 | CONFIGURE_ENV+= ac_cv_path_RSYNC=/nonexistent |
30 | CONFIGURE_ARGS+= CFLAGS=${APACHE_CUSTOM_CFLAGS:Q} | | 29 | CONFIGURE_ARGS+= CFLAGS=${APACHE_CUSTOM_CFLAGS:Q} |
31 | | | 30 | |
32 | BUILD_DEFS+= APACHE_CUSTOM_CFLAGS | | 31 | BUILD_DEFS+= APACHE_CUSTOM_CFLAGS |
33 | | | 32 | |
34 | # Apache Portable Runtime library configure options | | 33 | # Apache Portable Runtime library configure options |
35 | CONFIGURE_ARGS+= --with-apr=${BUILDLINK_PREFIX.apr} | | 34 | CONFIGURE_ARGS+= --with-apr=${BUILDLINK_PREFIX.apr} |
36 | CONFIGURE_ARGS+= --with-apr-util=${BUILDLINK_PREFIX.apr-util} | | 35 | CONFIGURE_ARGS+= --with-apr-util=${BUILDLINK_PREFIX.apr-util} |
37 | | | 36 | |
38 | CHECK_INTERPRETER_SKIP+= lib/httpd/httpd.exp | | 37 | CHECK_INTERPRETER_SKIP+= lib/httpd/httpd.exp |
39 | CHECK_PORTABILITY_SKIP+= srclib/pcre/* \ | | 38 | CHECK_PORTABILITY_SKIP+= srclib/pcre/* \ |
40 | srclib/apr-util/* \ | | 39 | srclib/apr-util/* \ |
41 | srclib/apr/* | | 40 | srclib/apr/* |
42 | | | 41 | |
43 | # the following must be set before bsd.prefs.mk in order to make += work | | 42 | # the following must be set before bsd.prefs.mk in order to make += work |
44 | # in mk.conf; however, it isn't expanded until referenced, so we can | | 43 | # in mk.conf; however, it isn't expanded until referenced, so we can |
45 | # define DFLT_APACHE_MODULES later | | 44 | # define DFLT_APACHE_MODULES later |
46 | # | | 45 | # |
47 | APACHE_MODULES?= ${DFLT_APACHE_MODULES} | | 46 | APACHE_MODULES?= ${DFLT_APACHE_MODULES} |
48 | | | 47 | |
49 | .include "../../mk/bsd.prefs.mk" | | 48 | .include "../../mk/bsd.prefs.mk" |
50 | .include "../../devel/apr/buildlink3.mk" | | 49 | .include "../../devel/apr/buildlink3.mk" |
51 | .include "../../devel/apr-util/buildlink3.mk" | | 50 | .include "../../devel/apr-util/buildlink3.mk" |
52 | .include "../../textproc/expat/buildlink3.mk" | | 51 | .include "../../textproc/expat/buildlink3.mk" |
53 | .include "../../mk/dlopen.buildlink3.mk" | | 52 | .include "../../mk/dlopen.buildlink3.mk" |
54 | | | 53 | |
55 | CONFIGURE_ARGS+= --disable-include | | 54 | CONFIGURE_ARGS+= --disable-include |
56 | CONFIGURE_ARGS+= --disable-log-config | | 55 | CONFIGURE_ARGS+= --disable-log-config |
57 | CONFIGURE_ARGS+= --disable-env | | 56 | CONFIGURE_ARGS+= --disable-env |
58 | CONFIGURE_ARGS+= --disable-mime | | 57 | CONFIGURE_ARGS+= --disable-mime |
59 | CONFIGURE_ARGS+= --disable-setenvif | | 58 | CONFIGURE_ARGS+= --disable-setenvif |
60 | CONFIGURE_ARGS+= --disable-status | | 59 | CONFIGURE_ARGS+= --disable-status |
61 | CONFIGURE_ARGS+= --disable-autoindex | | 60 | CONFIGURE_ARGS+= --disable-autoindex |
62 | CONFIGURE_ARGS+= --disable-asis | | 61 | CONFIGURE_ARGS+= --disable-asis |
63 | CONFIGURE_ARGS+= --disable-cgi | | 62 | CONFIGURE_ARGS+= --disable-cgi |
64 | CONFIGURE_ARGS+= --disable-negotiation | | 63 | CONFIGURE_ARGS+= --disable-negotiation |
65 | CONFIGURE_ARGS+= --disable-dir | | 64 | CONFIGURE_ARGS+= --disable-dir |
66 | CONFIGURE_ARGS+= --disable-actions | | 65 | CONFIGURE_ARGS+= --disable-actions |
67 | CONFIGURE_ARGS+= --disable-userdir | | 66 | CONFIGURE_ARGS+= --disable-userdir |
68 | CONFIGURE_ARGS+= --disable-alias | | 67 | CONFIGURE_ARGS+= --disable-alias |
69 | | | 68 | |
70 | DFLT_APACHE_MODULES= all | | 69 | DFLT_APACHE_MODULES= all |
71 | DFLT_APACHE_MODULES+= proxy proxy_connect proxy_ftp proxy_http | | 70 | DFLT_APACHE_MODULES+= proxy proxy_connect proxy_ftp proxy_http |
72 | DFLT_APACHE_MODULES+= ssl deflate access auth authn_alias | | 71 | DFLT_APACHE_MODULES+= ssl deflate access auth authn_alias |
73 | DFLT_APACHE_MODULES+= include log_config env mime setenvif | | 72 | DFLT_APACHE_MODULES+= include log_config env mime setenvif |
74 | DFLT_APACHE_MODULES+= status autoindex asis cgi negotiation dir imap | | 73 | DFLT_APACHE_MODULES+= status autoindex asis cgi negotiation dir imap |
75 | DFLT_APACHE_MODULES+= actions userdir alias isapi file_cache | | 74 | DFLT_APACHE_MODULES+= actions userdir alias isapi file_cache |
76 | DFLT_APACHE_MODULES+= cache disk_cache mem_cache bucketeer echo | | 75 | DFLT_APACHE_MODULES+= cache disk_cache mem_cache bucketeer echo |
77 | DFLT_APACHE_MODULES+= example case_filter case_filter_in | | 76 | DFLT_APACHE_MODULES+= example case_filter case_filter_in |
78 | DFLT_APACHE_MODULES+= charset_lite | | 77 | DFLT_APACHE_MODULES+= charset_lite |
79 | DFLT_APACHE_MODULES+= cgid dav_lock proxy_ajp proxy_balancer | | 78 | DFLT_APACHE_MODULES+= cgid dav_lock proxy_ajp proxy_balancer |
80 | | | 79 | |
81 | PLIST_SRC+= ${PKGDIR}/PLIST | | 80 | PLIST_SRC+= ${PKGDIR}/PLIST |
82 | | | 81 | |
83 | .include "options.mk" | | 82 | .include "options.mk" |
84 | | | 83 | |
85 | # LDAP support | | 84 | # LDAP support |
86 | PLIST_VARS+= ldap | | 85 | PLIST_VARS+= ldap |
87 | .if !empty(PKG_BUILD_OPTIONS.apr-util:Mldap) | | 86 | .if !empty(PKG_BUILD_OPTIONS.apr-util:Mldap) |
88 | DFLT_APACHE_MODULES+= ldap authnz_ldap | | 87 | DFLT_APACHE_MODULES+= ldap authnz_ldap |
89 | . if !empty(PKG_OPTIONS:Mapache-shared-modules) | | 88 | . if !empty(PKG_OPTIONS:Mapache-shared-modules) |
90 | PLIST.ldap= yes | | 89 | PLIST.ldap= yes |
91 | . endif | | 90 | . endif |
92 | .endif | | 91 | .endif |
93 | | | 92 | |
94 | APACHE_USER?= www | | 93 | APACHE_USER?= www |
95 | APACHE_GROUP?= www | | 94 | APACHE_GROUP?= www |
96 | PKG_GROUPS= ${APACHE_GROUP} | | 95 | PKG_GROUPS= ${APACHE_GROUP} |
97 | PKG_USERS= ${APACHE_USER}:${APACHE_GROUP} | | 96 | PKG_USERS= ${APACHE_USER}:${APACHE_GROUP} |
98 | PKG_GROUPS_VARS+= APACHE_GROUP | | 97 | PKG_GROUPS_VARS+= APACHE_GROUP |
99 | PKG_USERS_VARS+= APACHE_USER | | 98 | PKG_USERS_VARS+= APACHE_USER |
100 | | | 99 | |
101 | PKG_SYSCONFVAR= apache | | 100 | PKG_SYSCONFVAR= apache |
102 | PKG_SYSCONFSUBDIR?= httpd | | 101 | PKG_SYSCONFSUBDIR?= httpd |
103 | EGDIR= ${PREFIX}/share/examples/httpd | | 102 | EGDIR= ${PREFIX}/share/examples/httpd |
104 | SBINDIR= ${PREFIX}/sbin | | 103 | SBINDIR= ${PREFIX}/sbin |
105 | CONF_FILES+= ${EGDIR}/httpd.conf ${PKG_SYSCONFDIR}/httpd.conf | | 104 | CONF_FILES+= ${EGDIR}/httpd.conf ${PKG_SYSCONFDIR}/httpd.conf |
106 | .for f in autoindex dav default info languages manual mpm \ | | 105 | .for f in autoindex dav default info languages manual mpm \ |
107 | multilang-errordoc ssl userdir vhosts | | 106 | multilang-errordoc ssl userdir vhosts |
108 | CONF_FILES+= ${EGDIR}/extra/httpd-${f}.conf \ | | 107 | CONF_FILES+= ${EGDIR}/extra/httpd-${f}.conf \ |
109 | ${PKG_SYSCONFDIR}/httpd-${f}.conf | | 108 | ${PKG_SYSCONFDIR}/httpd-${f}.conf |
110 | .endfor | | 109 | .endfor |
111 | CONF_FILES+= ${EGDIR}/magic ${PKG_SYSCONFDIR}/magic | | 110 | CONF_FILES+= ${EGDIR}/magic ${PKG_SYSCONFDIR}/magic |
112 | CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types | | 111 | CONF_FILES+= ${EGDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types |
113 | RCD_SCRIPTS= apache | | 112 | RCD_SCRIPTS= apache |
114 | | | 113 | |
115 | REQD_DIRS= ${PREFIX}/share/httpd | | 114 | REQD_DIRS= ${PREFIX}/share/httpd |
116 | REQD_DIRS+= ${PREFIX}/share/httpd/htdocs | | 115 | REQD_DIRS+= ${PREFIX}/share/httpd/htdocs |
117 | OWN_DIRS= ${VARBASE}/log/httpd | | 116 | OWN_DIRS= ${VARBASE}/log/httpd |
118 | OWN_DIRS+= ${VARBASE}/db/httpd | | 117 | OWN_DIRS+= ${VARBASE}/db/httpd |
119 | OWN_DIRS_PERMS+= ${VARBASE}/db/httpd/proxy ${APACHE_USER} ${APACHE_GROUP} 0755 | | 118 | OWN_DIRS_PERMS+= ${VARBASE}/db/httpd/proxy ${APACHE_USER} ${APACHE_GROUP} 0755 |
120 | FIX_PERMS= apachectl apxs dbmmanage envvars-std mkcert | | 119 | FIX_PERMS= apachectl apxs dbmmanage envvars-std mkcert |
121 | FIX_MAN_PERMS= man1/htdbm.1 man1/htpasswd.1 man1/htdigest.1 | | 120 | FIX_MAN_PERMS= man1/htdbm.1 man1/htpasswd.1 man1/htdigest.1 |
122 | FIX_MAN_PERMS+= man1/dbmmanage.1 man8/httpd.8 man8/suexec.8 | | 121 | FIX_MAN_PERMS+= man1/dbmmanage.1 man8/httpd.8 man8/suexec.8 |
123 | FIX_MAN_PERMS+= man8/rotatelogs.8 man8/logresolve.8 man8/apxs.8 | | 122 | FIX_MAN_PERMS+= man8/rotatelogs.8 man8/logresolve.8 man8/apxs.8 |
124 | FIX_MAN_PERMS+= man8/apachectl.8 man8/ab.8 | | 123 | FIX_MAN_PERMS+= man8/apachectl.8 man8/ab.8 |
125 | | | 124 | |
126 | # Fix paths in the apache manpages. | | 125 | # Fix paths in the apache manpages. |
127 | SUBST_CLASSES+= man | | 126 | SUBST_CLASSES+= man |
128 | SUBST_STAGE.man= post-patch | | 127 | SUBST_STAGE.man= post-patch |
129 | SUBST_FILES.man= docs/man/*.1 docs/man/*.8 | | 128 | SUBST_FILES.man= docs/man/*.1 docs/man/*.8 |
130 | SUBST_SED.man= -e 's,/usr/local/etc/apache,${PKG_SYSCONFDIR},' | | 129 | SUBST_SED.man= -e 's,/usr/local/etc/apache,${PKG_SYSCONFDIR},' |
131 | SUBST_SED.man+= -e 's,/path/to/apache/etc,${PKG_SYSCONFDIR},' | | 130 | SUBST_SED.man+= -e 's,/path/to/apache/etc,${PKG_SYSCONFDIR},' |
132 | SUBST_SED.man+= -e 's,/usr/local/apache2,${PREFIX}/share/httpd/htdocs,' | | 131 | SUBST_SED.man+= -e 's,/usr/local/apache2,${PREFIX}/share/httpd/htdocs,' |
133 | SUBST_SED.man+= -e 's,/usr/web,${PREFIX}/share/httpd/htdocs,' | | 132 | SUBST_SED.man+= -e 's,/usr/web,${PREFIX}/share/httpd/htdocs,' |
134 | | | 133 | |
135 | SUBST_CLASSES+= paths | | 134 | SUBST_CLASSES+= paths |
136 | SUBST_STAGE.paths= pre-configure | | 135 | SUBST_STAGE.paths= pre-configure |
137 | SUBST_FILES.paths= config.layout Makefile.in support/apxs.in | | 136 | SUBST_FILES.paths= config.layout Makefile.in support/apxs.in |
138 | SUBST_SED.paths= -e "s|@PREFIX@|${PREFIX}|g" | | 137 | SUBST_SED.paths= -e "s|@PREFIX@|${PREFIX}|g" |
139 | SUBST_SED.paths+= -e "s|@VARBASE@|${VARBASE}|g" | | 138 | SUBST_SED.paths+= -e "s|@VARBASE@|${VARBASE}|g" |
140 | SUBST_SED.paths+= -e "s|@SYSCONFDIR@|${PKG_SYSCONFDIR}|g" | | 139 | SUBST_SED.paths+= -e "s|@SYSCONFDIR@|${PKG_SYSCONFDIR}|g" |
141 | SUBST_SED.paths+= -e "s|@PAX@|${PAX}|g" | | 140 | SUBST_SED.paths+= -e "s|@PAX@|${PAX}|g" |
142 | SUBST_SED.paths+= -e "s|@LOCALBASE@|${LOCALBASE}|g" | | 141 | SUBST_SED.paths+= -e "s|@LOCALBASE@|${LOCALBASE}|g" |
143 | SUBST_MESSAGE.paths= Fixing paths. | | 142 | SUBST_MESSAGE.paths= Fixing paths. |
144 | | | 143 | |
145 | SUBST_CLASSES+= apr-lt | | 144 | SUBST_CLASSES+= apr-lt |
146 | SUBST_STAGE.apr-lt= post-configure | | 145 | SUBST_STAGE.apr-lt= post-configure |
147 | SUBST_FILES.apr-lt= build/config_vars.mk | | 146 | SUBST_FILES.apr-lt= build/config_vars.mk |
148 | SUBST_SED.apr-lt= -e 's|^\(LIBTOOL =\) [^ ]*|\1 $$(SHELL) $$(top_builddir)/build/libtool|g' | | 147 | SUBST_SED.apr-lt= -e 's|^\(LIBTOOL =\) [^ ]*|\1 $$(SHELL) $$(top_builddir)/build/libtool|g' |
149 | SUBST_MESSAGE.apr-lt= Fixing libtool references. | | 148 | SUBST_MESSAGE.apr-lt= Fixing libtool references. |
150 | | | 149 | |
151 | SUBST_CLASSES+= confs | | 150 | SUBST_CLASSES+= confs |
152 | SUBST_STAGE.confs= post-configure | | 151 | SUBST_STAGE.confs= post-configure |
153 | SUBST_MESSAGE.confs= Fixing configuration files. | | 152 | SUBST_MESSAGE.confs= Fixing configuration files. |
154 | SUBST_FILES.confs= docs/conf/httpd.conf | | 153 | SUBST_FILES.confs= docs/conf/httpd.conf |
155 | SUBST_FILES.confs+= docs/conf/extra/httpd-ssl.conf | | 154 | SUBST_FILES.confs+= docs/conf/extra/httpd-ssl.conf |
156 | SUBST_SED.confs= -e "s|${EGDIR}|${PKG_SYSCONFDIR}|g" | | 155 | SUBST_SED.confs= -e "s|${EGDIR}|${PKG_SYSCONFDIR}|g" |
157 | SUBST_SED.confs+= -e "s|${PREFIX}/htdocs|${PREFIX}/share/httpd/htdocs|g" | | 156 | SUBST_SED.confs+= -e "s|${PREFIX}/htdocs|${PREFIX}/share/httpd/htdocs|g" |
158 | SUBST_SED.confs+= -e "s|${PREFIX}/conf|${PKG_SYSCONFDIR}|g" | | 157 | SUBST_SED.confs+= -e "s|${PREFIX}/conf|${PKG_SYSCONFDIR}|g" |
159 | SUBST_SED.confs+= -e "s|logs/|${VARBASE}/log/httpd/|g" | | 158 | SUBST_SED.confs+= -e "s|logs/|${VARBASE}/log/httpd/|g" |
160 | SUBST_SED.confs+= -e 's|/var/log/httpd/foo\.log|logs/foo.log/|g' | | 159 | SUBST_SED.confs+= -e 's|/var/log/httpd/foo\.log|logs/foo.log/|g' |
161 | SUBST_SED.confs+= -e 's|^\(User[ ]\).*|\1${APACHE_USER}|g' | | 160 | SUBST_SED.confs+= -e 's|^\(User[ ]\).*|\1${APACHE_USER}|g' |
162 | SUBST_SED.confs+= -e 's|^\(Group[ ]\).*|\1${APACHE_GROUP}|g' | | 161 | SUBST_SED.confs+= -e 's|^\(Group[ ]\).*|\1${APACHE_GROUP}|g' |
163 | | | 162 | |
164 | # abs_srcdir in config_vars.mk is used during install so needs to reference | | 163 | # abs_srcdir in config_vars.mk is used during install so needs to reference |
165 | # the work dir path, and by other packages such as ap2-fastcgi after install, | | 164 | # the work dir path, and by other packages such as ap2-fastcgi after install, |
166 | # so we fix after install to reference the installed path | | 165 | # so we fix after install to reference the installed path |
167 | SUBST_CLASSES+= abs_srcdir | | 166 | SUBST_CLASSES+= abs_srcdir |
168 | SUBST_STAGE.abs_srcdir= post-install | | 167 | SUBST_STAGE.abs_srcdir= post-install |
169 | SUBST_FILES.abs_srcdir= ${DESTDIR}${PREFIX}/share/httpd/build/config_vars.mk | | 168 | SUBST_FILES.abs_srcdir= ${DESTDIR}${PREFIX}/share/httpd/build/config_vars.mk |
170 | SUBST_SED.abs_srcdir= -e 's|^\(abs_srcdir =\) .*|\1 ${PREFIX}/share/httpd|' | | 169 | SUBST_SED.abs_srcdir= -e 's|^\(abs_srcdir =\) .*|\1 ${PREFIX}/share/httpd|' |
171 | SUBST_MESSAGE.abs_srcdir= Fixing abs_srcdir | | 170 | SUBST_MESSAGE.abs_srcdir= Fixing abs_srcdir |
172 | | | 171 | |
173 | REPLACE_PERL= docs/cgi-examples/printenv | | 172 | REPLACE_PERL= docs/cgi-examples/printenv |
174 | | | 173 | |
175 | # Add dependencies for the modules that will be built. For each module | | 174 | # Add dependencies for the modules that will be built. For each module |
176 | # ap_mod listed in ${APACHE_MODULES}, _AP_DEPENDS.ap_mod is a whitespace | | 175 | # ap_mod listed in ${APACHE_MODULES}, _AP_DEPENDS.ap_mod is a whitespace |
177 | # separated list of dependencies or buildlink3.mk files needed to build | | 176 | # separated list of dependencies or buildlink3.mk files needed to build |
178 | # ap_mod, and _AP_CFG_ARGS.ap_mod is a whitespace separated list of | | 177 | # ap_mod, and _AP_CFG_ARGS.ap_mod is a whitespace separated list of |
179 | # configure script options for ap_mod. | | 178 | # configure script options for ap_mod. |
180 | # | | 179 | # |
181 | AP_DEPENDS.ssl= ../../security/openssl/buildlink3.mk | | 180 | AP_DEPENDS.ssl= ../../security/openssl/buildlink3.mk |
182 | AP_DEPENDS.deflate= ../../devel/zlib/buildlink3.mk | | 181 | AP_DEPENDS.deflate= ../../devel/zlib/buildlink3.mk |
183 | | | 182 | |
184 | AP_CFG_ARGS.ssl= --with-ssl=${BUILDLINK_PREFIX.openssl} | | 183 | AP_CFG_ARGS.ssl= --with-ssl=${BUILDLINK_PREFIX.openssl} |
185 | AP_CFG_ARGS.deflate= --with-z=${BUILDLINK_PREFIX.zlib} | | 184 | AP_CFG_ARGS.deflate= --with-z=${BUILDLINK_PREFIX.zlib} |
186 | | | 185 | |
187 | #.if ${APACHE_MODULES} == "all-shared" | | 186 | #.if ${APACHE_MODULES} == "all-shared" |
188 | .if !empty(PKG_OPTIONS:Mapache-shared-modules) | | 187 | .if !empty(PKG_OPTIONS:Mapache-shared-modules) |
189 | .include "${AP_DEPENDS.ssl}" | | 188 | .include "${AP_DEPENDS.ssl}" |
190 | .include "${AP_DEPENDS.deflate}" | | 189 | .include "${AP_DEPENDS.deflate}" |
191 | CONFIGURE_ARGS+= ${AP_CFG_ARGS.ssl} ${AP_CFG_ARGS.deflate} | | 190 | CONFIGURE_ARGS+= ${AP_CFG_ARGS.ssl} ${AP_CFG_ARGS.deflate} |
192 | .else | | 191 | .else |
193 | .for ap_mod in ${APACHE_MODULES} | | 192 | .for ap_mod in ${APACHE_MODULES} |
194 | . if defined(AP_DEPENDS.${ap_mod}) && !empty(AP_DEPENDS.${ap_mod}) | | 193 | . if defined(AP_DEPENDS.${ap_mod}) && !empty(AP_DEPENDS.${ap_mod}) |
195 | . for ap_depend in ${AP_DEPENDS.${ap_mod}} | | 194 | . for ap_depend in ${AP_DEPENDS.${ap_mod}} |
196 | . if exists(${ap_depend}) | | 195 | . if exists(${ap_depend}) |
197 | . include "${ap_depend}" | | 196 | . include "${ap_depend}" |
198 | . else | | 197 | . else |
199 | DEPENDS+= ${ap_depend} | | 198 | DEPENDS+= ${ap_depend} |
200 | . endif | | 199 | . endif |
201 | . endfor | | 200 | . endfor |
202 | . endif | | 201 | . endif |
203 | . if defined(AP_CFG_ARGS.${ap_mod}) && !empty(AP_CFG_ARGS.${ap_mod}) | | 202 | . if defined(AP_CFG_ARGS.${ap_mod}) && !empty(AP_CFG_ARGS.${ap_mod}) |
204 | CONFIGURE_ARGS+= ${AP_CFG_ARGS.${ap_mod}} | | 203 | CONFIGURE_ARGS+= ${AP_CFG_ARGS.${ap_mod}} |
205 | . endif | | 204 | . endif |
206 | .endfor | | 205 | .endfor |
207 | .endif | | 206 | .endif |
208 | | | 207 | |
209 | post-extract: | | 208 | post-extract: |
210 | ${TOUCH} ${WRKSRC}/build/libtool | | 209 | ${TOUCH} ${WRKSRC}/build/libtool |
211 | ${ECHO} "" >> ${WRKSRC}/docs/conf/extra/httpd-languages.conf.in | | 210 | ${ECHO} "" >> ${WRKSRC}/docs/conf/extra/httpd-languages.conf.in |
212 | | | 211 | |
213 | post-build: | | 212 | post-build: |
214 | ${SED} "s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g" \ | | 213 | ${SED} "s#@PKG_SYSCONFDIR@#${PKG_SYSCONFDIR}#g" \ |
215 | < ${FILESDIR}/mkcert.sh > ${WRKDIR}/mkcert | | 214 | < ${FILESDIR}/mkcert.sh > ${WRKDIR}/mkcert |
216 | | | 215 | |
217 | INSTALL_TARGET= install-conf install | | 216 | INSTALL_TARGET= install-conf install |
218 | INSTALL_MAKE_FLAGS+= sysconfdir="${EGDIR}" | | 217 | INSTALL_MAKE_FLAGS+= sysconfdir="${EGDIR}" |
219 | | | 218 | |
220 | post-install: | | 219 | post-install: |
221 | ${LN} -sf ${LOCALBASE}/libexec/apr/libtool ${DESTDIR}${PREFIX}/share/httpd/build | | 220 | ${LN} -sf ${LOCALBASE}/libexec/apr/libtool ${DESTDIR}${PREFIX}/share/httpd/build |
222 | cd ${DESTDIR}${EGDIR} && \ | | 221 | cd ${DESTDIR}${EGDIR} && \ |
223 | for file in \ | | 222 | for file in \ |
224 | httpd.conf \ | | 223 | httpd.conf \ |
225 | extra/httpd-ssl.conf; \ | | 224 | extra/httpd-ssl.conf; \ |
226 | do \ | | 225 | do \ |
227 | ${AWK} ' \ | | 226 | ${AWK} ' \ |
228 | /^Listen[ ]*80/ { \ | | 227 | /^Listen[ ]*80/ { \ |
229 | printf "%s", "Listen 0.0.0.0:80\n"; \ | | 228 | printf "%s", "Listen 0.0.0.0:80\n"; \ |
230 | next; \ | | 229 | next; \ |
231 | } \ | | 230 | } \ |
232 | /^Listen[ ]*443/ { \ | | 231 | /^Listen[ ]*443/ { \ |
233 | printf "%s", "Listen 0.0.0.0:443\n"; \ | | 232 | printf "%s", "Listen 0.0.0.0:443\n"; \ |
234 | next; \ | | 233 | next; \ |
235 | } \ | | 234 | } \ |
236 | { print; } \ | | 235 | { print; } \ |
237 | ' < "$${file}" >> $${file}.new; \ | | 236 | ' < "$${file}" >> $${file}.new; \ |
238 | ${MV} -f $${file}.new $${file}; \ | | 237 | ${MV} -f $${file}.new $${file}; \ |
239 | done | | 238 | done |
240 | | | 239 | |
241 | ${LN} -sf ${SBINDIR}/envvars-std ${DESTDIR}${SBINDIR}/envvars | | 240 | ${LN} -sf ${SBINDIR}/envvars-std ${DESTDIR}${SBINDIR}/envvars |
242 | | | 241 | |
243 | ${INSTALL_SCRIPT} ${WRKDIR}/mkcert ${DESTDIR}${PREFIX}/sbin | | 242 | ${INSTALL_SCRIPT} ${WRKDIR}/mkcert ${DESTDIR}${PREFIX}/sbin |
244 | | | 243 | |
245 | for file in ${FIX_PERMS}; do \ | | 244 | for file in ${FIX_PERMS}; do \ |
246 | ${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/sbin/$$file && \ | | 245 | ${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/sbin/$$file && \ |
247 | ${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/sbin/$$file; \ | | 246 | ${CHMOD} ${BINMODE} ${DESTDIR}${PREFIX}/sbin/$$file; \ |
248 | done | | 247 | done |
249 | | | 248 | |
250 | ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/share/httpd | | 249 | ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/share/httpd |
251 | ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/include/httpd | | 250 | ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/include/httpd |
252 | ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/lib/httpd | | 251 | ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/lib/httpd |
253 | ${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/libexec/cgi-bin/test-cgi | | 252 | ${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/libexec/cgi-bin/test-cgi |
254 | ${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/libexec/cgi-bin/printenv | | 253 | ${CHOWN} ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/libexec/cgi-bin/printenv |
255 | | | 254 | |
256 | for file in ${FIX_MAN_PERMS}; do \ | | 255 | for file in ${FIX_MAN_PERMS}; do \ |
257 | ${CHOWN} ${MANOWN}:${MANGRP} ${DESTDIR}${PREFIX}/${PKGMANDIR}/$$file; \ | | 256 | ${CHOWN} ${MANOWN}:${MANGRP} ${DESTDIR}${PREFIX}/${PKGMANDIR}/$$file; \ |
258 | done | | 257 | done |
259 | | | 258 | |
260 | ${CHMOD} -x ${DESTDIR}${PREFIX}/sbin/envvars-std | | 259 | ${CHMOD} -x ${DESTDIR}${PREFIX}/sbin/envvars-std |
261 | ${TEST} ! -f ${DESTDIR}${PREFIX}/sbin/suexec || ${CHMOD} -w ${DESTDIR}${PREFIX}/sbin/suexec | | 260 | ${TEST} ! -f ${DESTDIR}${PREFIX}/sbin/suexec || ${CHMOD} -w ${DESTDIR}${PREFIX}/sbin/suexec |
262 | | | 261 | |
263 | .include "../../mk/bsd.pkg.mk" | | 262 | .include "../../mk/bsd.pkg.mk" |