1998-12-11 17:37:09 -05:00
|
|
|
# New ports collection makefile for: apache-ssl HTTPSD
|
1999-04-10 03:53:03 -04:00
|
|
|
# Version required: 1.2.x+
|
1998-12-11 17:37:09 -05:00
|
|
|
# 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-04-10 03:53:03 -04:00
|
|
|
# $Id: Makefile,v 1.4 1999/04/05 19:19:45 addy Exp $
|
1995-08-28 09:28:45 -04:00
|
|
|
|
1999-04-10 03:53:03 -04:00
|
|
|
APACHE= 1.3.6
|
|
|
|
APACHE-SSL= 1.32
|
1998-12-11 17:37:09 -05:00
|
|
|
|
|
|
|
DISTNAME= apache_${APACHE}
|
|
|
|
PKGNAME= apache-${APACHE}+ssl_${APACHE-SSL}
|
1998-02-17 07:53:47 -05:00
|
|
|
CATEGORIES= www security
|
1999-04-10 03:53:03 -04:00
|
|
|
MASTER_SITES= ftp://www.apache.org/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.ox.ac.uk/pub/crypto/SSL/Apache-SSL/ \
|
1999-04-10 03:53:03 -04:00
|
|
|
ftp://ftp.gbnet.net/pub/apache/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.MASTER.pgp.net/pub/crypto/SSL/Apache-SSL/ \
|
1999-04-10 03:53:03 -04:00
|
|
|
ftp://ftp.flirble.org/pub/web/apache/dist/ \
|
1998-12-11 17:37:09 -05:00
|
|
|
ftp://ftp.replay.com/pub/crypto/apache/Apache-SSL/ \
|
1999-04-10 03:53:03 -04:00
|
|
|
ftp://ukug.uk.freebsd.org/pub/mirrors/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/ \
|
|
|
|
ftp://ftp.vwv.com/pub/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://mirror.aarnet.edu.au/www/servers/apache-ssl/ \
|
|
|
|
ftp://ftp.it.net.au/mirrors/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/Apache-SSL/Apache-SSL/ \
|
|
|
|
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/ \
|
|
|
|
http://mirror.aarnet.edu.au/www/servers/apache-ssl/ \
|
|
|
|
http://ftp.it.net.au/mirrors/crypto/SSL/Apache-SSL/ \
|
1999-01-08 13:25:23 -05:00
|
|
|
http://www.asap.cs.nott.ac.uk/SSL/
|
1997-09-22 15:45:17 -04:00
|
|
|
|
1999-04-10 03:53:03 -04:00
|
|
|
Y2K= http://www.apache-ssl.org/#Y2K
|
|
|
|
|
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
|
|
|
|
1999-04-10 03:53:03 -04:00
|
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl \
|
|
|
|
${PREFIX}/lib/libssl.a:${PORTSDIR}/security/openssl
|
1999-03-26 03:49:50 -05:00
|
|
|
RUN_DEPENDS= openssl:${PORTSDIR}/security/openssl
|
1998-12-11 08:47:06 -05:00
|
|
|
|
1999-04-10 03:53:03 -04:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= \
|
1999-03-26 03:49:50 -05:00
|
|
|
--prefix=${PREFIX} \
|
1999-04-10 03:53:03 -04:00
|
|
|
--with-layout=GNU \
|
1998-12-11 17:37:09 -05:00
|
|
|
--sysconfdir=${PREFIX}/etc/apache \
|
|
|
|
--includedir=${PREFIX}/include/apache \
|
1999-04-10 03:53:03 -04:00
|
|
|
--localstatedir=/var \
|
1998-12-11 17:37:09 -05:00
|
|
|
--datadir=${PREFIX}/www \
|
1999-04-10 03:53:03 -04:00
|
|
|
--suexec-docroot=${PREFIX}/www/data \
|
1998-12-11 17:37:09 -05:00
|
|
|
--proxycachedir=${PREFIX}/www/proxy \
|
|
|
|
--libexecdir=${PREFIX}/libexec/apache \
|
|
|
|
--without-confadjust \
|
|
|
|
--enable-shared=remain \
|
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
1999-04-10 03:53:03 -04:00
|
|
|
--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
|
|
|
|
|
1999-04-10 03:53:03 -04:00
|
|
|
CONFIGURE_ENV= OPTIM='${OPTIM}'
|
1998-12-11 17:37:09 -05:00
|
|
|
|
1999-04-10 03:53:03 -04:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
RESTRICTED= "Contains cryptography"
|
|
|
|
|
|
|
|
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
|
|
|
|
MAN8= ab.8 httpsdctl.8 apxs.8 httpsd.8 logresolve.8 rotatelogs.8
|
1996-10-26 14:49:52 -04:00
|
|
|
|
1997-08-15 11:44:58 -04:00
|
|
|
pre-fetch:
|
1999-04-10 03:53:03 -04:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES
|
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-04-10 03:53:03 -04:00
|
|
|
@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./FixPatch
|
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."; \
|
1997-08-16 12:01:10 -04:00
|
|
|
|
1995-08-28 09:28:45 -04:00
|
|
|
.include <bsd.port.mk>
|