1998-12-11 22:37:09 +00:00
|
|
|
# New ports collection makefile for: apache-ssl HTTPSD
|
1999-04-10 07:53:03 +00:00
|
|
|
# Version required: 1.2.x+
|
1998-12-11 22:37:09 +00: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 13:28:45 +00:00
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1995-08-28 13:28:45 +00:00
|
|
|
|
1999-09-27 02:21:33 +00:00
|
|
|
APACHE= 1.3.9
|
|
|
|
APACHE-SSL= 1.37
|
1998-12-11 22:37:09 +00:00
|
|
|
|
|
|
|
DISTNAME= apache_${APACHE}
|
1999-06-28 09:00:47 +00:00
|
|
|
PKGNAME= apache+ssl-${APACHE}+${APACHE-SSL}
|
1998-02-17 12:53:47 +00:00
|
|
|
CATEGORIES= www security
|
1999-04-10 07:53:03 +00:00
|
|
|
MASTER_SITES= ftp://www.apache.org/dist/ \
|
1998-12-11 22:37:09 +00:00
|
|
|
ftp://ftp.ox.ac.uk/pub/crypto/SSL/Apache-SSL/ \
|
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/ \
|
1999-09-27 02:21:33 +00:00
|
|
|
ftp://apache-ssl.raver.net/pub/ftp.apache-ssl.org/Apache-SSL/
|
1997-09-22 19:45:17 +00:00
|
|
|
|
1999-04-10 07:53:03 +00:00
|
|
|
Y2K= http://www.apache-ssl.org/#Y2K
|
|
|
|
|
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
|
|
|
|
2000-02-12 09:02:44 +00:00
|
|
|
USE_OPENSSL= RSA
|
|
|
|
.include <bsd.port.pre.mk>
|
1998-12-11 13:47:06 +00:00
|
|
|
|
1999-04-10 07:53:03 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2000-02-12 09:02:44 +00:00
|
|
|
CFLAGS+= -I${OPENSSLINC}/openssl
|
1999-04-10 07:53:03 +00:00
|
|
|
CONFIGURE_ARGS= \
|
1999-03-26 08:49:50 +00:00
|
|
|
--prefix=${PREFIX} \
|
1999-04-10 07:53:03 +00:00
|
|
|
--with-layout=GNU \
|
1998-12-11 22:37:09 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/apache \
|
|
|
|
--includedir=${PREFIX}/include/apache \
|
1999-04-10 07:53:03 +00:00
|
|
|
--localstatedir=/var \
|
1998-12-11 22:37:09 +00:00
|
|
|
--datadir=${PREFIX}/www \
|
1999-04-10 07:53:03 +00:00
|
|
|
--suexec-docroot=${PREFIX}/www/data \
|
1998-12-11 22:37:09 +00:00
|
|
|
--proxycachedir=${PREFIX}/www/proxy \
|
|
|
|
--libexecdir=${PREFIX}/libexec/apache \
|
|
|
|
--without-confadjust \
|
|
|
|
--enable-shared=remain \
|
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
1999-04-10 07:53:03 +00:00
|
|
|
--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
|
|
|
|
|
1999-04-10 07:53:03 +00:00
|
|
|
CONFIGURE_ENV= OPTIM='${OPTIM}'
|
2000-02-12 09:02:44 +00:00
|
|
|
.if defined(OPENSSL_RSAREF)
|
|
|
|
CONFIGURE_ENV+= EXTRA_SSL_LIBS="-L${OPENSSLLIB} -lRSAglue -L${LOCALBASE}/lib -lrsaref"
|
1999-09-27 02:21:33 +00:00
|
|
|
.endif
|
1998-12-11 22:37:09 +00:00
|
|
|
|
1999-04-10 07:53:03 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
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:
|
|
|
|
@cd ${WRKSRC} && tar xzf ${DISTDIR}/apache_${APACHE}+ssl_${APACHE-SSL}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
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>
|