1998-12-11 22:37:09 +00:00
|
|
|
# New ports collection makefile for: apache-ssl HTTPSD
|
|
|
|
# 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
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1995-08-28 13:28:45 +00:00
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= apache+ssl
|
2000-04-27 15:20:10 +00:00
|
|
|
PORTVERSION= ${APACHE_VERSION}.${APACHE_SSL_VERSION}
|
1998-02-17 12:53:47 +00:00
|
|
|
CATEGORIES= www security
|
2000-08-09 17:47:16 +00:00
|
|
|
MASTER_SITES= http://www.apache.org/dist/ \
|
1998-12-11 22:37:09 +00:00
|
|
|
ftp://ftp.ox.ac.uk/pub/crypto/SSL/Apache-SSL/ \
|
2000-04-27 15:20:10 +00:00
|
|
|
ftp://src.doc.ic.ac.uk/packages/apache/dist/ \
|
1999-04-10 07:53:03 +00:00
|
|
|
ftp://ftp.gbnet.net/pub/apache/dist/ \
|
1998-12-11 22:37:09 +00:00
|
|
|
ftp://ftp.MASTER.pgp.net/pub/crypto/SSL/Apache-SSL/ \
|
1999-04-10 07:53:03 +00:00
|
|
|
ftp://ftp.flirble.org/pub/web/apache/dist/ \
|
1998-12-11 22:37:09 +00:00
|
|
|
ftp://ftp.replay.com/pub/crypto/apache/Apache-SSL/ \
|
1999-04-10 07:53:03 +00:00
|
|
|
ftp://ukug.uk.freebsd.org/pub/mirrors/apache/dist/ \
|
1998-12-11 22:37:09 +00: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/ \
|
2000-04-27 15:20:10 +00:00
|
|
|
ftp://apache-ssl.raver.net/pub/ftp.apache-ssl.org/Apache-SSL/ \
|
|
|
|
ftp://ftp.pca.dfn.de/pub/tools/net/sslapache/Apache-SSL/ \
|
|
|
|
ftp://ftp.sekure.net/pub/apache-ssl/ \
|
|
|
|
ftp://ftp.clinet.fi/mirrors/ftp.apache-ssl.org/pub/ \
|
|
|
|
ftp://opensores.thebunker.net/pub/mirrors/apache-ssl/ \
|
|
|
|
ftp://ftp.gin.cz/pub/MIRRORS/ftp.ox.ac.uk/pub/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://ftp.cordef.com.pl/pub/apache-ssl/Apache-SSL/
|
|
|
|
DISTNAME= apache_${APACHE_VERSION}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
apache_${APACHE_VERSION}+ssl_${APACHE_SSL_VERSION}${EXTRACT_SUFX}
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= adam@algroup.co.uk
|
1997-09-22 19:45:17 +00:00
|
|
|
|
1999-04-10 07:53:03 +00:00
|
|
|
Y2K= http://www.apache-ssl.org/#Y2K
|
1996-11-07 01:49:57 +00:00
|
|
|
|
2000-04-27 15:20:10 +00:00
|
|
|
APACHE_VERSION= 1.3.12
|
|
|
|
APACHE_SSL_VERSION= 1.40
|
1998-02-17 12:53:47 +00:00
|
|
|
|
2000-09-22 01:59:06 +00:00
|
|
|
USE_OPENSSL= YES
|
2000-04-27 15:20:10 +00:00
|
|
|
|
2000-02-12 09:02:44 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1998-12-11 13:47:06 +00:00
|
|
|
|
2000-08-22 03:41:05 +00:00
|
|
|
#
|
|
|
|
# Set APACHE_PERF_TUNING env. variable to YES to get maximum performance
|
|
|
|
#
|
2000-04-27 15:20:10 +00:00
|
|
|
|
2000-02-12 09:02:44 +00:00
|
|
|
CFLAGS+= -I${OPENSSLINC}/openssl
|
2000-04-27 15:20:10 +00:00
|
|
|
|
2000-08-22 03:41:05 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= \
|
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--server-gid=nogroup \
|
|
|
|
--with-perl=${PERL} \
|
1999-04-10 07:53:03 +00:00
|
|
|
--with-layout=GNU \
|
|
|
|
--suexec-docroot=${PREFIX}/www/data \
|
1998-12-11 22:37:09 +00:00
|
|
|
--without-confadjust \
|
|
|
|
--enable-shared=remain \
|
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
2000-08-22 03:41:05 +00:00
|
|
|
--disable-module=auth_dbm \
|
|
|
|
--sysconfdir=${PREFIX}/etc/apache \
|
|
|
|
--includedir=${PREFIX}/include/apache \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--datadir=${PREFIX}/www \
|
|
|
|
--proxycachedir=${PREFIX}/www/proxy \
|
|
|
|
--libexecdir=${PREFIX}/libexec/apache
|
1998-02-17 12:53:47 +00:00
|
|
|
|
2000-04-27 15:20:10 +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
|
2000-04-27 15:20:10 +00:00
|
|
|
OPTIM+= -DBUFFERED_LOGS
|
|
|
|
CFLAGS+= -O6 -fomit-frame-pointer
|
1998-02-17 12:53:47 +00:00
|
|
|
.endif
|
|
|
|
|
2000-04-27 15:20:10 +00:00
|
|
|
CONFIGURE_ENV= OPTIM='${OPTIM}'
|
|
|
|
CONFIGURE_ENV+= EXTRA_SSL_LIBS="-L${OPENSSLLIB} -L${LOCALBASE}/lib"
|
1998-12-11 22:37:09 +00:00
|
|
|
|
2000-04-27 15:20:10 +00:00
|
|
|
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
|
|
|
|
MAN8= ab.8 httpsdctl.8 apxs.8 httpsd.8 logresolve.8 rotatelogs.8
|
1996-10-26 18:49:52 +00:00
|
|
|
|
1999-07-04 18:44:30 +00:00
|
|
|
post-extract:
|
2000-04-27 15:20:10 +00:00
|
|
|
@cd ${WRKSRC} && tar xzf ${DISTDIR}/apache_${APACHE_VERSION}+ssl_${APACHE_SSL_VERSION}${EXTRACT_SUFX}
|
1999-07-04 18:44:30 +00:00
|
|
|
|
|
|
|
post-patch:
|
2000-02-12 09:02:44 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./FixPatch ${OPENSSLBASE}
|
1997-08-15 15:44:58 +00:00
|
|
|
|
1997-08-16 16:01:10 +00:00
|
|
|
certificate:
|
2000-02-12 09:02:44 +00:00
|
|
|
@if [ -f ${OPENSSLDIR}/openssl.cnf ]; then \
|
1998-02-20 00:43:40 +00:00
|
|
|
cd ${WRKSRC}; ${MAKE} ${MAKE_ENV} $@; \
|
|
|
|
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem ${PREFIX}/certs/cert.pem; \
|
|
|
|
else \
|
2000-02-12 09:02:44 +00:00
|
|
|
${ECHO} "You must create the file ${OPENSSLDIR}/openssl.cnf first."; \
|
1997-08-16 16:01:10 +00:00
|
|
|
|
2000-02-12 09:02:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|