1998-12-11 22:37:09 +00: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 13:28:45 +00:00
|
|
|
#
|
1998-12-22 08:40:47 +00:00
|
|
|
# $Id: Makefile,v 1.50 1998/12/11 22:58:37 billf Exp $
|
1995-08-28 13:28:45 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
APACHE= 1.3.3
|
|
|
|
APACHE-SSL= 1.28
|
|
|
|
|
|
|
|
DISTNAME= apache_${APACHE}
|
|
|
|
PKGNAME= apache-${APACHE}+ssl_${APACHE-SSL}
|
1998-02-17 12:53:47 +00:00
|
|
|
CATEGORIES= www security
|
1997-08-15 15:44:58 +00:00
|
|
|
MASTER_SITES= ftp://www.apache.org/apache/dist/ \
|
1998-12-11 22:37:09 +00: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/ \
|
|
|
|
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/ \
|
|
|
|
http://www.asap.cs.nott.ac.uk/SSL
|
1997-09-22 19:45:17 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
apache_${APACHE}+ssl_${APACHE-SSL}${EXTRACT_SUFX}
|
1996-11-07 01:49:57 +00:00
|
|
|
|
1998-12-22 08:40:47 +00:00
|
|
|
MAINTAINER= adam@algroup.co.uk
|
1998-02-17 12:53:47 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay
|
1998-12-11 13:47:06 +00:00
|
|
|
|
1998-02-17 12:53:47 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1997-08-12 14:21:12 +00:00
|
|
|
|
1997-09-22 19:45:17 +00:00
|
|
|
RESTRICTED= "Contains cryptography"
|
1997-08-12 14:21:12 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
#
|
|
|
|
# Set APACHE_PERF_TUNING env. variable to YES to get maximum performance
|
|
|
|
#
|
1996-10-26 18:49:52 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= \
|
|
|
|
--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 12:53:47 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
OPTIM=-DHARD_SERVER_LIMIT=512 \
|
|
|
|
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
|
|
|
|
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"
|
1998-02-17 12:53:47 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
|
|
|
OPTIM+= -DBUFFERED_LOGS
|
|
|
|
CFLAGS+= -O6 -fomit-frame-pointer
|
1998-02-17 12:53:47 +00:00
|
|
|
.endif
|
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
CONFIGURE_ENV+= OPTIM='${OPTIM}'
|
|
|
|
|
|
|
|
MAN1= ab.1 apachectl.1 dbmmanage.1 htdigest.1 htpasswd.1
|
1996-10-26 18:49:52 +00:00
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES
|
1997-08-15 15:44:58 +00:00
|
|
|
pre-fetch:
|
1997-09-22 19:45:17 +00:00
|
|
|
@${ECHO}
|
1998-12-11 22:37:09 +00:00
|
|
|
@${ECHO} "*** Warning!"
|
1998-02-17 12:53:47 +00:00
|
|
|
@${ECHO} You must set variable USA_RESIDENT to YES if you are USA
|
1998-12-11 22:37:09 +00:00
|
|
|
@${ECHO} resident and are using RSAREF otherwise package will not link
|
|
|
|
@${ECHO} correctly.
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO}
|
1997-08-15 15:44:58 +00:00
|
|
|
.endif
|
1998-12-11 22:37:09 +00:00
|
|
|
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
|
|
|
|
CONFIGURE_ENV=LDFLAGS="${LDFLAGS} -L/usr/local/lib -lRSAglue -lrsaref"
|
1997-08-15 15:44:58 +00:00
|
|
|
.endif
|
|
|
|
|
1998-12-11 22:37:09 +00:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && tar xzf ${DISTDIR}/apache_${APACHE}+ssl_${APACHE-SSL}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC} && ./FixPatch
|
|
|
|
|
1997-08-16 16:01:10 +00:00
|
|
|
certificate:
|
1998-02-20 00:43:40 +00:00
|
|
|
@if [ -f ${PREFIX}/etc/ssleay.cnf ]; then \
|
|
|
|
cd ${WRKSRC}; ${MAKE} ${MAKE_ENV} $@; \
|
|
|
|
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem ${PREFIX}/certs/cert.pem; \
|
|
|
|
else \
|
|
|
|
${ECHO} "You must create the file ${PREFIX}/etc/ssleay.cnf first."; \
|
|
|
|
fi
|
1997-08-16 16:01:10 +00:00
|
|
|
|
1995-08-28 13:28:45 +00:00
|
|
|
.include <bsd.port.mk>
|