diff options
author | dinoex <dinoex@FreeBSD.org> | 2004-03-18 20:48:46 +0000 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2004-03-18 20:48:46 +0000 |
commit | 8e55ec2a372eb35a3b03b8256251bc6b707c56bc (patch) | |
tree | fedc6aa2694253e3f6d9147362787647d4ab50d1 | |
parent | 3231b88df1c98886738a78ca3b8a52e84482ecc0 (diff) | |
download | FreeBSD-ports-8e55ec2a372eb35a3b03b8256251bc6b707c56bc.zip FreeBSD-ports-8e55ec2a372eb35a3b03b8256251bc6b707c56bc.tar.gz |
- new option APACHE_WITH_MODACCEL
Submitted by: Denis Shaposhnikov
- cleanup of all options
- CONFLICTS extended
-rw-r--r-- | www/apache13-modssl/Makefile | 74 | ||||
-rw-r--r-- | www/apache13-modssl/distinfo | 2 | ||||
-rw-r--r-- | www/apache13-modssl/pkg-plist | 1 |
3 files changed, 66 insertions, 11 deletions
diff --git a/www/apache13-modssl/Makefile b/www/apache13-modssl/Makefile index e711a3c..4fe1d32 100644 --- a/www/apache13-modssl/Makefile +++ b/www/apache13-modssl/Makefile @@ -6,25 +6,23 @@ # PORTNAME= apache+mod_ssl -PORTVERSION= ${VERSION_APACHE}+${VERSION_MODSSL} +PORTVERSION= ${VERSION_APACHE}+${VERSION_MODSSL}${PVERSION_MODSNMP}${PVERSION_MODACCEL} PORTREVISION= 1 CATEGORIES= www security MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \ - ${MASTER_SITES_MODSSL:S/$/:modssl/} + ${MASTER_SITES_MODSSL:S/$/:mod_ssl/} \ + http://www.mod-snmp.com/distr/:mod_snmp \ + http://sysoev.ru/mod_accel/:mod_accel +PKGNAMESUFFIX= ${MODSNMP_SUFFIX}${MODACCEL_SUFFIX}${IPV6_SUFFIX} DISTNAME= apache_${VERSION_APACHE} -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE}${EXTRACT_SUFX}:modssl +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MODSSL_FILE}:mod_ssl \ + ${MODSNMP_DISTFILE} ${MODACCEL_DISTFILE} +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} ${MODSSL_FILE} \ + ${MODACCEL_FILE} -.if defined(APACHE_WITH_MODSNMP) || make(makesum) || defined(FETCH_ALL) -PATCH_SITES= http://www.mod-snmp.com/distr/:modsnmp -MODSNMP_FILE= mod_snmp_${VERSION_MODSNMP}.tar.gz -PATCHFILES= ${MODSNMP_FILE}:modsnmp -.endif .if defined(APACHE_WITH_IPV6) || make(makesum) || defined(FETCH_ALL) PATCH_SITES+= ftp://ftp.42.org/pub/orphan/ PATCHFILES+= apache-1.3.29modssl-v6-20031204.diff.gz -.else -EXTRA_PATCHES+= ${FILESDIR}/mod_access.c.patch .endif MAINTAINER= dinoex@FreeBSD.org @@ -39,6 +37,7 @@ CONFLICTS?= apache+ipv6-1.* apache+ssl-1.* apache-1.* apache-2.* \ VERSION_APACHE= 1.3.29 VERSION_MODSSL= 2.8.16 VERSION_MODSNMP= 1.3.14.12 +VERSION_MODACCEL= 1.0.31 USE_OPENSSL= yes HAS_CONFIGURE= yes USE_PERL5_BUILD= yes @@ -47,6 +46,9 @@ MASTER_SITES_MODSSL= http://www.modssl.org/source/ \ ftp://ftp.blatzheim.com/pub/mod_ssl/ \ ftp://ftp.fu-berlin.de/unix/security/mod_ssl/ \ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/mod_ssl/source,} +MODSSL_FILE= mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE}${EXTRACT_SUFX} +MODSNMP_FILE= mod_snmp_${VERSION_MODSNMP}${EXTRACT_SUFX} +MODACCEL_FILE= mod_accel-${VERSION_MODACCEL}${EXTRACT_SUFX} .include <bsd.port.pre.mk> @@ -132,19 +134,53 @@ OPTIM+= -DBUFFERED_LOGS CFLAGS+= -O3 .endif +.if defined(APACHE_WITH_MODSNMP) || make(makesum) || defined(FETCH_ALL) +MODSNMP_DISTFILE= ${MODSNMP_FILE}:mod_snmp +.endif .if defined(APACHE_WITH_MODSNMP) +CONFLICTS+= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* \ + apache+mod_ssl+mod_accel-1.* \ + apache+mod_ssl+mod_accel+ipv6-1.* +MODSNMP_SUFFIX= +mod_snmp +PVERSION_MODSNMP= +${VERSION_MODSNMP} CONFIGURE_ARGS+= --activate-module=src/modules/snmp_agt/libsnmp_agt.a CFLAGS+= -DSNMP -DUSE_DB -DSNMP_CONFIG_H -DHARD_VIRTUAL_HOST_MAX=1000 \ -DSNMPLOCALONLY +EXTRA_PATCHES+= ${WRKSRC}/src/modules/snmp_agt/mod_snmp.patch PLIST_SUB+= WITHSNMP="" .else PLIST_SUB+= WITHSNMP="@comment " .endif +.if defined(APACHE_WITH_MODACCEL) || make(makesum) || defined(FETCH_ALL) +MODACCEL_DISTFILE= ${MODACCEL_FILE}:mod_accel +.endif +.if defined(APACHE_WITH_MODACCEL) +CONFLICTS+= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* \ + apache+mod_ssl+mod_snmp-1.* apache+mod_ssl+mod_snmp+ipv6-1.* +MODACCEL_SUFFIX= +mod_accel +PVERSION_MODACCEL= +${VERSION_MODACCEL} +CONFIGURE_ARGS+= --activate-module=src/modules/extra/mod_randban.o \ + --activate-module=src/modules/extra/mod_freeze.o \ + --activate-module=src/modules/accel/libaccel.a +PLIST_SUB+= WITHACCEL="" +.else +PLIST_SUB+= WITHACCEL="@comment " +.endif + .if defined(APACHE_WITH_IPV6) +.if defined(APACHE_WITH_MODACCEL) +BROKEN= "mod_accel and ipv6 don't compile together" +.endif + +CONFLICTS+= apache+mod_ssl-1.* apache+mod_ssl+mod_snmp-1.* \ + apache+mod_ssl+mod_accel-1.* \ + apache+mod_ssl+mod_snmp+mod_accel-1.* +IPV6_SUFFIX= +ipv6 CONFIGURE_ARGS+= --enable-rule=INET6 PLIST_SUB+= WITHIPV6="" .else +EXTRA_PATCHES+= ${FILESDIR}/mod_access.c.patch PLIST_SUB+= WITHIPV6="@comment " .endif @@ -206,6 +242,16 @@ pre-fetch: @${ECHO_MSG} " This setting turns IPv6 support on." @${ECHO_MSG} " [default is no]" @${ECHO_MSG} "" + @${ECHO_MSG} " APACHE_WITH_MODSNMP=yes mod_snmp support." + @${ECHO_MSG} " This setting turns support for SNMP on." + @${ECHO_MSG} " [default is no]" + @${ECHO_MSG} "" + @${ECHO_MSG} " APACHE_WITH_MODACCEL=yes mod_accel support." + @${ECHO_MSG} " This setting activates build of mod_accel." + @${ECHO_MSG} " [default is no]" + @${ECHO_MSG} "" + +post-extract: post-extract: @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/apache.sh \ @@ -218,6 +264,12 @@ pre-patch: @cd ${WRKDIR}/mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE} \ && ${ECHO_MSG} "===> Applying mod_ssl-${VERSION_MODSSL} extension" \ && ./configure --with-apache=../${DISTNAME} --expert +.if defined(APACHE_WITH_MODACCEL) + @cd ${WRKDIR}/mod_accel-${VERSION_MODACCEL} \ + && ${ECHO_MSG} "===> Applying mod_accel-${VERSION_MODACCEL} extension" \ + && ./configure --with-apache=../${DISTNAME} --with-mod_randban --with-mod_freeze \ + && ${MAKE} +.endif post-patch: @${PERL} -pi -e 's|-print|-print0|;s|xargs|xargs -0|' \ diff --git a/www/apache13-modssl/distinfo b/www/apache13-modssl/distinfo index 3f6929a..3a337cb 100644 --- a/www/apache13-modssl/distinfo +++ b/www/apache13-modssl/distinfo @@ -2,6 +2,8 @@ MD5 (apache_1.3.29.tar.gz) = e97fe9bf51dc2c9c233d53f63b1347e3 SIZE (apache_1.3.29.tar.gz) = 2435809 MD5 (mod_ssl-2.8.16-1.3.29.tar.gz) = 4f6c580ffa07d33e8584406132b98e86 SIZE (mod_ssl-2.8.16-1.3.29.tar.gz) = 754325 +MD5 (mod_accel-1.0.31.tar.gz) = edc31714cc6dc8d24396cb4ddf2ae2f6 +SIZE (mod_accel-1.0.31.tar.gz) = 85443 MD5 (mod_snmp_1.3.14.12.tar.gz) = b0bddbb4e5ff4c6a46d114998f12740a SIZE (mod_snmp_1.3.14.12.tar.gz) = 91462 MD5 (apache-1.3.29modssl-v6-20031204.diff.gz) = d84056da5795f7d0ba80df9e8105a94c diff --git a/www/apache13-modssl/pkg-plist b/www/apache13-modssl/pkg-plist index 25cddfe..0b59a95 100644 --- a/www/apache13-modssl/pkg-plist +++ b/www/apache13-modssl/pkg-plist @@ -517,6 +517,7 @@ www/data-dist/index.html.zh-tw.big5 %%WITHSNMP%%%%DOCSDIR%%/snmp_agt/rfc2594.txt %%WITHSNMP%%%%DOCSDIR%%/snmp_agt/apache-scoreboard-mib.txt %%WITHSNMP%%%%DOCSDIR%%/snmp_agt/apache-config-mib.txt +%%WITHACCEL%%%%DOCSDIR%%/mod/mod_accel.html www/cgi-bin-dist/printenv @exec [ -d %D/www/cgi-bin/ ] || ln -fs %B %D/www/cgi-bin www/cgi-bin-dist/test-cgi |