1998-12-11 17:37:09 -05:00
|
|
|
# New ports collection makefile for: apache-ssl HTTPSD
|
|
|
|
# Version required: apache 1.3.3 and ssl 1.28
|
|
|
|
# Date created: 8th November, 1998
|
|
|
|
# Whom: Adam Laurie <adam@algroup.co.uk>
|
|
|
|
# based on apache port by ache@nagual.pp.ru
|
|
|
|
# and apache-ssl port by Mark Murray <mark@grondar.za>.
|
|
|
|
# Oh, and with a little bit of help from Ben :)
|
1995-08-28 09:28:45 -04:00
|
|
|
#
|
1999-03-26 03:49:50 -05:00
|
|
|
# $Id: Makefile,v 1.54 1999/03/13 17:11:04 billf Exp $
|
1995-08-28 09:28:45 -04:00
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
APACHE= 1.3.3
|
|
|
|
APACHE-SSL= 1.28
|
|
|
|
|
|
|
|
DISTNAME= apache_${APACHE}
|
|
|
|
PKGNAME= apache-${APACHE}+ssl_${APACHE-SSL}
|
1998-02-17 07:53:47 -05:00
|
|
|
CATEGORIES= www security
|
1999-03-13 12:11:04 -05:00
|
|
|
MASTER_SITES= http://www.apache.org/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.ox.ac.uk/pub/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://ftp.MASTER.pgp.net/pub/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://ftp.replay.com/pub/crypto/apache/Apache-SSL/ \
|
1999-03-13 12:11:04 -05:00
|
|
|
ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/ \
|
|
|
|
ftp://ftp.rge.com/pub/infosystems/apache/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.win.or.jp/pub/network/security/apache-ssl/Apache-SSL/ \
|
|
|
|
ftp://ftp.sage-au.org.au/pub/network/security/apache-ssl/Apache-SSL/ \
|
1999-03-13 12:11:04 -05:00
|
|
|
ftp://apache.compuex.com/pub/apache/dist/ \
|
|
|
|
ftp://apache.arctic.org/pub/apache/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.vwv.com/pub/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://mirror.aarnet.edu.au/www/servers/apache-ssl/ \
|
1999-03-13 12:11:04 -05:00
|
|
|
ftp://ftp.epix.net/pub/apache/dist/ \
|
|
|
|
ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apache/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.it.net.au/mirrors/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/Apache-SSL/Apache-SSL/ \
|
1999-03-13 12:11:04 -05:00
|
|
|
ftp://ftp.connectnet.com/pub/www/apache/ \
|
|
|
|
ftp://apache.technomancer.com/mirrors/apache/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.funet.fi/pub/crypt/mirrors/ftp.ox.ac.uk/SSL/Apache-SSL/ \
|
|
|
|
ftp://apache-ssl.raver.net/pub/ftp.apache-ssl.org/Apache-SSL/ \
|
1999-03-13 12:11:04 -05:00
|
|
|
ftp://ftp.raver.net/pub/ftp.apache.org/ \
|
|
|
|
ftp://www3.service.digital.com/apache/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
http://mirror.aarnet.edu.au/www/servers/apache-ssl/ \
|
|
|
|
http://ftp.it.net.au/mirrors/crypto/SSL/Apache-SSL/ \
|
1999-03-13 12:11:04 -05:00
|
|
|
ftp://galileo.galilei.com/pub/apache/ \
|
|
|
|
ftp://ftp.mtnranch.net/pub/apache/dist/ \
|
|
|
|
ftp://ftp.iodynamics.com/pub/mirror/apache/dist/ \
|
|
|
|
ftp://apache.nextpath.com/pub/apache/dist/ \
|
1999-01-08 13:25:23 -05:00
|
|
|
http://www.asap.cs.nott.ac.uk/SSL/
|
1997-09-22 15:45:17 -04:00
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
apache_${APACHE}+ssl_${APACHE-SSL}${EXTRACT_SUFX}
|
1996-11-06 20:49:57 -05:00
|
|
|
|
1998-12-22 03:40:47 -05:00
|
|
|
MAINTAINER= adam@algroup.co.uk
|
1998-02-17 07:53:47 -05:00
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
|
1999-03-26 03:49:50 -05:00
|
|
|
RUN_DEPENDS= openssl:${PORTSDIR}/security/openssl
|
1998-12-11 08:47:06 -05:00
|
|
|
|
1998-02-17 07:53:47 -05:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1997-08-12 10:21:12 -04:00
|
|
|
|
1997-09-22 15:45:17 -04:00
|
|
|
RESTRICTED= "Contains cryptography"
|
1997-08-12 10:21:12 -04:00
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
#
|
|
|
|
# Set APACHE_PERF_TUNING env. variable to YES to get maximum performance
|
|
|
|
#
|
1996-10-26 14:49:52 -04:00
|
|
|
|
1999-03-26 03:49:50 -05:00
|
|
|
HAS_CONFIGURE= yes
|
1998-12-11 17:37:09 -05:00
|
|
|
CONFIGURE_ARGS= \
|
1999-03-26 03:49:50 -05:00
|
|
|
--prefix=${PREFIX} \
|
1998-12-11 17:37:09 -05:00
|
|
|
--sysconfdir=${PREFIX}/etc/apache \
|
|
|
|
--includedir=${PREFIX}/include/apache \
|
|
|
|
--logfiledir=/var/log \
|
|
|
|
--runtimedir=/var/run \
|
|
|
|
--datadir=${PREFIX}/www \
|
|
|
|
--proxycachedir=${PREFIX}/www/proxy \
|
|
|
|
--libexecdir=${PREFIX}/libexec/apache \
|
|
|
|
--without-confadjust \
|
|
|
|
--enable-shared=remain \
|
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
|
|
|
--disable-module=auth_dbm \
|
1998-02-17 07:53:47 -05:00
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
OPTIM=-DHARD_SERVER_LIMIT=512 \
|
|
|
|
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
|
|
|
|
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"
|
1998-02-17 07:53:47 -05:00
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
|
|
|
OPTIM+= -DBUFFERED_LOGS
|
|
|
|
CFLAGS+= -O6 -fomit-frame-pointer
|
1998-02-17 07:53:47 -05:00
|
|
|
.endif
|
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
CONFIGURE_ENV+= OPTIM='${OPTIM}'
|
|
|
|
|
|
|
|
MAN1= ab.1 apachectl.1 dbmmanage.1 htdigest.1 htpasswd.1
|
1996-10-26 14:49:52 -04:00
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES
|
1997-08-15 11:44:58 -04:00
|
|
|
pre-fetch:
|
1997-09-22 15:45:17 -04:00
|
|
|
@${ECHO}
|
1998-12-11 17:37:09 -05:00
|
|
|
@${ECHO} "*** Warning!"
|
1998-02-17 07:53:47 -05:00
|
|
|
@${ECHO} You must set variable USA_RESIDENT to YES if you are USA
|
1998-12-11 17:37:09 -05:00
|
|
|
@${ECHO} resident and are using RSAREF otherwise package will not link
|
|
|
|
@${ECHO} correctly.
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO}
|
1997-08-15 11:44:58 -04:00
|
|
|
.endif
|
1998-12-11 17:37:09 -05:00
|
|
|
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
|
|
|
|
CONFIGURE_ENV=LDFLAGS="${LDFLAGS} -L/usr/local/lib -lRSAglue -lrsaref"
|
1997-08-15 11:44:58 -04:00
|
|
|
.endif
|
|
|
|
|
1998-12-11 17:37:09 -05:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && tar xzf ${DISTDIR}/apache_${APACHE}+ssl_${APACHE-SSL}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
post-patch:
|
1999-03-26 03:49:50 -05:00
|
|
|
@cd ${WRKSRC} && ./FixPatch ${PREFIX}
|
1998-12-11 17:37:09 -05:00
|
|
|
|
1997-08-16 12:01:10 -04:00
|
|
|
certificate:
|
1999-03-26 03:49:50 -05:00
|
|
|
@if [ -f ${PREFIX}/lib/openssl.cnf ]; then \
|
1998-02-19 19:43:40 -05:00
|
|
|
cd ${WRKSRC}; ${MAKE} ${MAKE_ENV} $@; \
|
|
|
|
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem ${PREFIX}/certs/cert.pem; \
|
|
|
|
else \
|
1999-03-26 03:49:50 -05:00
|
|
|
${ECHO} "You must create the file ${PREFIX}/lib/openssl.cnf first."; \
|
1998-02-19 19:43:40 -05:00
|
|
|
fi
|
1997-08-16 12:01:10 -04:00
|
|
|
|
1995-08-28 09:28:45 -04:00
|
|
|
.include <bsd.port.mk>
|