1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/www/apache13-ssl/Makefile

94 lines
3.0 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: apache-ssl HTTPSD
# Version required: 1.2.x+
# 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 :)
#
1999-08-31 02:43:35 +00:00
# $FreeBSD$
APACHE= 1.3.9
APACHE-SSL= 1.37
DISTNAME= apache_${APACHE}
PKGNAME= apache+ssl-${APACHE}+${APACHE-SSL}
CATEGORIES= www security
MASTER_SITES= ftp://www.apache.org/dist/ \
ftp://ftp.ox.ac.uk/pub/crypto/SSL/Apache-SSL/ \
ftp://ftp.gbnet.net/pub/apache/dist/ \
ftp://ftp.MASTER.pgp.net/pub/crypto/SSL/Apache-SSL/ \
ftp://ftp.flirble.org/pub/web/apache/dist/ \
ftp://ftp.replay.com/pub/crypto/apache/Apache-SSL/ \
ftp://ukug.uk.freebsd.org/pub/mirrors/apache/dist/ \
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/
Y2K= http://www.apache-ssl.org/#Y2K
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
apache_${APACHE}+ssl_${APACHE-SSL}${EXTRACT_SUFX}
1996-11-07 01:49:57 +00:00
MAINTAINER= adam@algroup.co.uk
USE_OPENSSL= RSA
.include <bsd.port.pre.mk>
HAS_CONFIGURE= yes
CFLAGS+= -I${OPENSSLINC}/openssl
CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--with-layout=GNU \
--sysconfdir=${PREFIX}/etc/apache \
--includedir=${PREFIX}/include/apache \
--localstatedir=/var \
--datadir=${PREFIX}/www \
--suexec-docroot=${PREFIX}/www/data \
--proxycachedir=${PREFIX}/www/proxy \
--libexecdir=${PREFIX}/libexec/apache \
--without-confadjust \
--enable-shared=remain \
--enable-module=most \
--enable-module=auth_db \
--disable-module=auth_dbm
OPTIM=-DHARD_SERVER_LIMIT=512 \
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
OPTIM+= -DBUFFERED_LOGS
CFLAGS+= -O6 -fomit-frame-pointer
.endif
CONFIGURE_ENV= OPTIM='${OPTIM}'
.if defined(OPENSSL_RSAREF)
CONFIGURE_ENV+= EXTRA_SSL_LIBS="-L${OPENSSLLIB} -lRSAglue -L${LOCALBASE}/lib -lrsaref"
.endif
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
post-extract:
@cd ${WRKSRC} && tar xzf ${DISTDIR}/apache_${APACHE}+ssl_${APACHE-SSL}${EXTRACT_SUFX}
post-patch:
@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./FixPatch ${OPENSSLBASE}
certificate:
@if [ -f ${OPENSSLDIR}/openssl.cnf ]; then \
cd ${WRKSRC}; ${MAKE} ${MAKE_ENV} $@; \
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem ${PREFIX}/certs/cert.pem; \
else \
${ECHO} "You must create the file ${OPENSSLDIR}/openssl.cnf first."; \
.include <bsd.port.post.mk>