Lines 12-57
Link Here
|
12 |
# |
12 |
# |
13 |
# Variables definition |
13 |
# Variables definition |
14 |
# USE_APACHE: Call this script. Values can be: |
14 |
# USE_APACHE: Call this script. Values can be: |
15 |
# <version>: 1.3/13/2.0/20/2.1/2.2/1.3+/2.0+/2.1+/2.2+ |
15 |
# <version>: 1.3/13/2.0/20/2.2/1.3+/2.0+/2.2+ |
16 |
# common*: common13, common20, common21 and common22 |
16 |
# common*: common13, common20, and common22 |
17 |
# |
|
|
18 |
# Note: Setting USE_APACHE to "yes" is deprecated. It will set |
19 |
# APACHE_PORT to www/apache13 and if WITH_APACHE2 (deprecated too) |
20 |
# is defined, APACHE_PORT will be set to www/apache20 |
21 |
# |
22 |
|
17 |
|
23 |
.if !defined(Apache_Pre_Include) || defined(PORT_IS_MODULE) |
18 |
.if !defined(Apache_Pre_Include) || defined(PORT_IS_MODULE) |
24 |
|
19 |
|
25 |
Apache_Pre_Include= bsd.apache.mk |
20 |
Apache_Pre_Include= bsd.apache.mk |
26 |
|
21 |
|
27 |
.if defined(APACHE_COMPAT) |
|
|
28 |
USE_APACHE=yes |
29 |
.endif |
30 |
|
31 |
# Print warnings |
22 |
# Print warnings |
32 |
_ERROR_MSG= : Error from bsd.apache.mk. |
23 |
_ERROR_MSG= : Error from bsd.apache.mk. |
33 |
APACHE_SUPPORTED_VERSION= 13 20 21 22 |
24 |
APACHE_SUPPORTED_VERSION= 13 20 22 |
34 |
.if ${USE_APACHE:Mcommon*} != "" |
25 |
.if ${USE_APACHE:Mcommon*} != "" |
35 |
AP_PORT_IS_SERVER= YES |
26 |
AP_PORT_IS_SERVER= YES |
36 |
.elif ${USE_APACHE:L} == apr |
27 |
.elif ${USE_APACHE:C/\.//:C/\+//:M[12][320]} != "" |
37 |
APR_DEPS= YES |
|
|
38 |
.elif ${USE_APACHE:C/\.//:C/\+//:M[12][3210]} != "" |
39 |
AP_PORT_IS_MODULE= YES |
28 |
AP_PORT_IS_MODULE= YES |
40 |
|
|
|
41 |
#### for backward compatibility |
42 |
.elif ${USE_APACHE:L} == yes |
43 |
. if defined(WITH_APACHE2) |
44 |
APACHE_PORT?= www/apache20 |
45 |
. else |
46 |
APACHE_PORT?= www/apache13 |
47 |
. endif |
48 |
APXS?= ${LOCALBASE}/sbin/apxs |
49 |
.if !defined(APACHE_COMPAT) |
50 |
BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} |
51 |
RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} |
52 |
.endif |
53 |
#### End of backward compatibility |
54 |
|
55 |
.else |
29 |
.else |
56 |
IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE |
30 |
IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE |
57 |
.endif |
31 |
.endif |
Lines 94-113
Link Here
|
94 |
--disable-asis --disable-cgid --disable-cgi \ |
68 |
--disable-asis --disable-cgid --disable-cgi \ |
95 |
--disable-negotiation --disable-dir --disable-imap \ |
69 |
--disable-negotiation --disable-dir --disable-imap \ |
96 |
--disable-actions --disable-userdir --disable-alias |
70 |
--disable-actions --disable-userdir --disable-alias |
97 |
.elif ${USE_APACHE} == common21 |
|
|
98 |
CONFIGURE_ARGS+= --disable-authn-file --disable-authn-default \ |
99 |
--disable-authz-host --disable-authz-groupfile \ |
100 |
--disable-authz-user --disable-authz-default \ |
101 |
--disable-auth-basic --disable-charset-lite \ |
102 |
--disable-include --disable-log-config --disable-env \ |
103 |
--disable-setenvif --disable-mime --disable-status \ |
104 |
--disable-autoindex --disable-asis --disable-cgid \ |
105 |
--disable-cgi --disable-negotiation --disable-dir \ |
106 |
--disable-imagemap --disable-actions --disable-userdir \ |
107 |
--disable-alias --disable-filter \ |
108 |
--disable-proxy --disable-proxy-connect \ |
109 |
--disable-proxy-ftp --disable-proxy-http \ |
110 |
--disable-proxy-ajp --disable-proxy-balancer |
111 |
.elif ${USE_APACHE} == common22 |
71 |
.elif ${USE_APACHE} == common22 |
112 |
CONFIGURE_ARGS+= --disable-authn-file --disable-authn-default \ |
72 |
CONFIGURE_ARGS+= --disable-authn-file --disable-authn-default \ |
113 |
--disable-authz-host --disable-authz-groupfile \ |
73 |
--disable-authz-host --disable-authz-groupfile \ |
Lines 267-275
Link Here
|
267 |
.endfor |
227 |
.endfor |
268 |
####End of PORT_IS_SERVER #### |
228 |
####End of PORT_IS_SERVER #### |
269 |
|
229 |
|
270 |
.elif defined(APR_DEPS) |
|
|
271 |
IGNORE= ${_ERROR_MSG} apr support is not yet implemented |
272 |
|
273 |
.elif defined(AP_PORT_IS_MODULE) |
230 |
.elif defined(AP_PORT_IS_MODULE) |
274 |
AP_VERSION= ${USE_APACHE:C/\.//} |
231 |
AP_VERSION= ${USE_APACHE:C/\.//} |
275 |
|
232 |
|
Lines 321-327
Link Here
|
321 |
APACHEINCLUDEDIR=include/apache2 |
278 |
APACHEINCLUDEDIR=include/apache2 |
322 |
APACHEETCDIR= etc/apache2 |
279 |
APACHEETCDIR= etc/apache2 |
323 |
APACHE_PORT?= www/apache${APACHE_VERSION} |
280 |
APACHE_PORT?= www/apache${APACHE_VERSION} |
324 |
.elif ${APACHE_VERSION} >= 21 |
281 |
.elif ${APACHE_VERSION} >= 22 |
325 |
AP_BUILDEXT= la |
282 |
AP_BUILDEXT= la |
326 |
APACHEMODDIR= libexec/apache${APACHE_VERSION} |
283 |
APACHEMODDIR= libexec/apache${APACHE_VERSION} |
327 |
APACHEINCLUDEDIR=include/apache${APACHE_VERSION} |
284 |
APACHEINCLUDEDIR=include/apache${APACHE_VERSION} |
Lines 345-350
Link Here
|
345 |
. endif |
302 |
. endif |
346 |
.endfor |
303 |
.endfor |
347 |
|
304 |
|
|
|
305 |
PKGNAMEPREFIX?= ap${APACHE_VERSION}- |
306 |
|
348 |
BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} |
307 |
BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} |
349 |
RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} |
308 |
RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} |
350 |
PLIST_SUB+= AP_NAME="${SHORTMODNAME}" |
309 |
PLIST_SUB+= AP_NAME="${SHORTMODNAME}" |