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