diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2010-05-20 07:01:04 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2010-05-20 07:01:04 +0800 |
commit | 23d9d6a57093025ec73bf58ac5d2fea5af4f366f (patch) | |
tree | 1c7a14f29c877d67fe2f154eba21809ebcb4548e /Mk | |
parent | 72c0e19790cc25c5fafd8b177d3a6b19f4c83b80 (diff) | |
download | freebsd-ports-gnome-23d9d6a57093025ec73bf58ac5d2fea5af4f366f.tar.gz freebsd-ports-gnome-23d9d6a57093025ec73bf58ac5d2fea5af4f366f.tar.zst freebsd-ports-gnome-23d9d6a57093025ec73bf58ac5d2fea5af4f366f.zip |
*****************************************************************************
Implement PKGNAMEPREFIX=ap13|ap20|ap22
*****************************************************************************
- Create packages for USE_APACHE=x ports with PKGNAMEPREFIX [1]
- Rephrase IGNORE statement, kill EOL spaces, reformat in Mk/bsd.apache.mk [2]
- Remove USE_APACHE=yes, USE_APACHE=apr, and APR_DEPS=foo
- Remove APACHE_COMPAT=X
- Drop support for 21 [dev only release, not in tree for years now]
PR: ports/115461 [1], ports/133197 [2], ports/141688
Submitted by: myself (pgollucci@),
Alexey Rubtsov <arubtsov@swsoft.com> [1],
dafne [2]
Requested by: Several [1]
Tested by: 2 -exp runs by pav
Approved by: portmgr (pav)
With Hat: apache@
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.apache.mk | 55 |
1 files changed, 7 insertions, 48 deletions
diff --git a/Mk/bsd.apache.mk b/Mk/bsd.apache.mk index 5ab1728807e8..69e26767078b 100644 --- a/Mk/bsd.apache.mk +++ b/Mk/bsd.apache.mk @@ -12,46 +12,20 @@ # # Variables definition # USE_APACHE: Call this script. Values can be: -# <version>: 1.3/13/2.0/20/2.1/2.2/1.3+/2.0+/2.1+/2.2+ -# common*: common13, common20, common21 and common22 -# -# Note: Setting USE_APACHE to "yes" is deprecated. It will set -# APACHE_PORT to www/apache13 and if WITH_APACHE2 (deprecated too) -# is defined, APACHE_PORT will be set to www/apache20 -# +# <version>: 1.3/13/2.0/20/2.2/1.3+/2.0+/2.2+ +# common*: common13, common20, and common22 .if !defined(Apache_Pre_Include) || defined(PORT_IS_MODULE) Apache_Pre_Include= bsd.apache.mk -.if defined(APACHE_COMPAT) -USE_APACHE=yes -.endif - # Print warnings _ERROR_MSG= : Error from bsd.apache.mk. -APACHE_SUPPORTED_VERSION= 13 20 21 22 +APACHE_SUPPORTED_VERSION= 13 20 22 .if ${USE_APACHE:Mcommon*} != "" AP_PORT_IS_SERVER= YES -.elif ${USE_APACHE:L} == apr -APR_DEPS= YES -.elif ${USE_APACHE:C/\.//:C/\+//:M[12][3210]} != "" +.elif ${USE_APACHE:C/\.//:C/\+//:M[12][320]} != "" AP_PORT_IS_MODULE= YES - -#### for backward compatibility -.elif ${USE_APACHE:L} == yes -. if defined(WITH_APACHE2) -APACHE_PORT?= www/apache20 -. else -APACHE_PORT?= www/apache13 -. endif -APXS?= ${LOCALBASE}/sbin/apxs -.if !defined(APACHE_COMPAT) -BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} -RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} -.endif -#### End of backward compatibility - .else IGNORE= ${_ERROR_MSG} Illegal use of USE_APACHE .endif @@ -94,20 +68,6 @@ CONFIGURE_ARGS+= --disable-access --disable-auth \ --disable-asis --disable-cgid --disable-cgi \ --disable-negotiation --disable-dir --disable-imap \ --disable-actions --disable-userdir --disable-alias -.elif ${USE_APACHE} == common21 -CONFIGURE_ARGS+= --disable-authn-file --disable-authn-default \ - --disable-authz-host --disable-authz-groupfile \ - --disable-authz-user --disable-authz-default \ - --disable-auth-basic --disable-charset-lite \ - --disable-include --disable-log-config --disable-env \ - --disable-setenvif --disable-mime --disable-status \ - --disable-autoindex --disable-asis --disable-cgid \ - --disable-cgi --disable-negotiation --disable-dir \ - --disable-imagemap --disable-actions --disable-userdir \ - --disable-alias --disable-filter \ - --disable-proxy --disable-proxy-connect \ - --disable-proxy-ftp --disable-proxy-http \ - --disable-proxy-ajp --disable-proxy-balancer .elif ${USE_APACHE} == common22 CONFIGURE_ARGS+= --disable-authn-file --disable-authn-default \ --disable-authz-host --disable-authz-groupfile \ @@ -267,9 +227,6 @@ PLIST_SUB+= MOD_${module:U}=${${module}_PLIST_SUB} .endfor ####End of PORT_IS_SERVER #### -.elif defined(APR_DEPS) -IGNORE= ${_ERROR_MSG} apr support is not yet implemented - .elif defined(AP_PORT_IS_MODULE) AP_VERSION= ${USE_APACHE:C/\.//} @@ -321,7 +278,7 @@ APACHEMODDIR= libexec/apache2 APACHEINCLUDEDIR=include/apache2 APACHEETCDIR= etc/apache2 APACHE_PORT?= www/apache${APACHE_VERSION} -.elif ${APACHE_VERSION} >= 21 +.elif ${APACHE_VERSION} >= 22 AP_BUILDEXT= la APACHEMODDIR= libexec/apache${APACHE_VERSION} APACHEINCLUDEDIR=include/apache${APACHE_VERSION} @@ -345,6 +302,8 @@ ${VAR} =${AP${APACHE_VERSION}_${VAR}} . endif .endfor +PKGNAMEPREFIX?= ap${APACHE_VERSION}- + BUILD_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} RUN_DEPENDS+= ${APXS}:${PORTSDIR}/${APACHE_PORT} PLIST_SUB+= AP_NAME="${SHORTMODNAME}" |