1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/www/apache13-modssl/Makefile

137 lines
4.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: Apache + mod_ssl
# Version required: 1.3.9 + 2.4.6
# Date created: Sat Aug 22 12:00:00 CDT 1998
# Whom: rse@engelschall.com
#
1999-08-31 02:43:35 +00:00
# $FreeBSD$
#
DISTNAME= apache_${VERSION_APACHE}
PKGNAME= apache+mod_ssl-${VERSION_APACHE}+${VERSION_MODSSL}
CATEGORIES= www security
MASTER_SITES= http://www.apache.org/dist/ \
http://www.modssl.org/source/ \
ftp://ftp.modssl.org/source/ \
ftp://ftp.pca.dfn.de/pub/tools/net/mod_ssl/ \
ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/ \
ftp://ftp.rge.com/pub/infosystems/apache/dist/ \
ftp://ftp.ecrc.net/pub/security/mod_ssl/ \
ftp://ftp.nvg.ntnu.no/pub/unix/mod_ssl/ \
ftp://apache.compuex.com/pub/apache/dist/ \
ftp://apache.arctic.org/pub/apache/dist/ \
ftp://ftp.ulpgc.es/pub/mod_ssl/ \
ftp://glock.missouri.edu/pub/mod_ssl/ \
ftp://ftp.epix.net/pub/apache/dist/ \
ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apache/dist/ \
ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/mod_ssl/ \
ftp://ftp.uni-trier.de/pub/unix/security/mod_ssl/ \
ftp://ftp.connectnet.com/pub/www/apache/ \
ftp://apache.technomancer.com/mirrors/apache/dist/ \
ftp://ftp.blatzheim.com/pub/mod_ssl/ \
ftp://ftp.fu-berlin.de/unix/security/mod_ssl/ \
ftp://ftp.raver.net/pub/ftp.apache.org/ \
ftp://www3.service.digital.com/apache/dist/ \
1999-03-13 17:57:44 +00:00
ftp://ftp.ntrl.net/pub/mirror/ralfsw/mod_ssl/ \
ftp://galileo.galilei.com/pub/apache/ \
ftp://ftp.mtnranch.net/pub/apache/dist/ \
ftp://ftp.iodynamics.com/pub/mirror/apache/dist/ \
ftp://apache.nextpath.com/pub/apache/dist/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE}${EXTRACT_SUFX}
MAINTAINER= rse@engelschall.com
BUILD_DEPENDS= openssl:${PORTSDIR}/security/openssl \
mm-config:${PORTSDIR}/devel/mm \
${PREFIX}/lib/libssl.a:${PORTSDIR}/security/openssl \
${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl \
${PREFIX}/lib/libmm.a:${PORTSDIR}/devel/mm
RUN_DEPENDS= openssl:${PORTSDIR}/security/openssl
VERSION_APACHE= 1.3.9
VERSION_MODSSL= 2.4.6
Y2K= http://www.modssl.org/docs/2.4/ssl_faq.html#y2k
RESTRICTED= "Contains cryptography"
USE_PERL5= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--target=apache \
--with-layout=GNU \
--with-perl=${PERL} \
--bindir=${PREFIX}/bin \
--sbindir=${PREFIX}/sbin \
--libexecdir=${PREFIX}/libexec/apache \
--mandir=${PREFIX}/man \
--sysconfdir=${PREFIX}/etc/apache \
--datadir=${PREFIX}/share/apache \
--includedir=${PREFIX}/include/apache \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log \
--proxycachedir=/var/spool/apache \
--without-confadjust \
--enable-module=most \
--enable-module=auth_db \
--disable-module=auth_dbm \
--enable-module=ssl \
--enable-module=define \
--enable-shared=max
OPTIM= -DHARD_SERVER_LIMIT=512 \
-DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\"
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
OPTIM+= -DBUFFERED_LOGS -DFD_SETSIZE=1024
CFLAGS+= -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer \
-fexpensive-optimizations -ffast-math
.endif
CONFIGURE_ENV= CFLAGS='${CFLAGS}' \
OPTIM='${OPTIM}' \
SSL_BASE='SYSTEM' \
EAPI_MM='SYSTEM' \
PATH="${PREFIX}/bin:${PATH}"
INSTALL_TARGET= install-quiet
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
MAN8= ab.8 apachectl.8 apxs.8 apache.8 logresolve.8 rotatelogs.8
TYPE= test
CRT=
KEY=
pre-patch:
@cd ${WRKDIR}/mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE} \
&& ${ECHO_MSG} "===> Applying mod_ssl-${VERSION_MODSSL} extension" \
&& ./configure --with-apache=../${DISTNAME} --expert
post-patch:
@cd ${WRKSRC} \
&& find . -type f -name "*.orig" -print | xargs ${RM} -f
post-build:
@cd ${WRKSRC} \
&& ${ECHO_MSG} "===> Creating Dummy Certificate for Server (SnakeOil)" \
&& ${ECHO_MSG} " [use 'make certificate' to create a real one]" \
&& ${MAKE} certificate TYPE=dummy >/dev/null 2>&1
certificate:
@cd ${WRKSRC} \
&& ${ECHO_MSG} "===> Creating Test Certificate for Server" \
&& ${MAKE} certificate TYPE=${TYPE} CRT=${CRT} KEY=${KEY}
post-install:
@${RM} -f ${PREFIX}/etc/apache/access.conf*
@${RM} -f ${PREFIX}/etc/apache/srm.conf*
@if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh; \
${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl startssl >/dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \
1999-08-22 19:01:07 +00:00
${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \
fi
.include <bsd.port.mk>