1998-09-17 10:58:00 +00:00
|
|
|
# New ports collection makefile for: Apache + mod_ssl
|
1999-03-29 11:05:37 +00:00
|
|
|
# Version required: 1.3.6 + 2.2.7
|
1998-08-27 16:00:05 +00:00
|
|
|
# Date created: Sat Aug 22 12:00:00 CDT 1998
|
|
|
|
# Whom: rse@engelschall.com
|
|
|
|
#
|
1999-04-12 06:53:00 +00:00
|
|
|
# $Id: Makefile,v 1.28 1999/03/29 11:05:37 rse Exp $
|
1998-08-27 16:00:05 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= apache_${VERSION_APACHE}
|
|
|
|
PKGNAME= apache-${VERSION_APACHE}+mod_ssl-${VERSION_MODSSL}
|
|
|
|
CATEGORIES= www security
|
1999-03-13 17:11:04 +00:00
|
|
|
MASTER_SITES= http://www.apache.org/dist/ \
|
1998-08-27 16:00:05 +00:00
|
|
|
http://www.engelschall.com/sw/mod_ssl/distrib/ \
|
|
|
|
ftp://ftp.engelschall.com/sw/mod_ssl/ \
|
1999-01-13 08:03:07 +00:00
|
|
|
ftp://ftp.pca.dfn.de/pub/tools/net/mod_ssl/ \
|
1999-03-13 17:11:04 +00:00
|
|
|
ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/ \
|
|
|
|
ftp://ftp.rge.com/pub/infosystems/apache/dist/ \
|
1999-02-21 17:05:24 +00:00
|
|
|
ftp://ftp.ecrc.net/pub/security/mod_ssl/ \
|
1998-11-07 14:22:40 +00:00
|
|
|
ftp://ftp.nvg.ntnu.no/pub/unix/mod_ssl/ \
|
1999-03-13 17:11:04 +00:00
|
|
|
ftp://apache.compuex.com/pub/apache/dist/ \
|
|
|
|
ftp://apache.arctic.org/pub/apache/dist/ \
|
1998-09-09 15:17:46 +00:00
|
|
|
ftp://ftp.ulpgc.es/pub/mod_ssl/ \
|
1998-11-07 14:22:40 +00:00
|
|
|
ftp://glock.missouri.edu/pub/mod_ssl/ \
|
1999-03-13 17:11:04 +00:00
|
|
|
ftp://ftp.epix.net/pub/apache/dist/ \
|
|
|
|
ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apache/dist/ \
|
1998-11-07 14:22:40 +00:00
|
|
|
ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/mod_ssl/ \
|
|
|
|
ftp://ftp.uni-trier.de/pub/unix/security/mod_ssl/ \
|
1999-03-13 17:11:04 +00:00
|
|
|
ftp://ftp.connectnet.com/pub/www/apache/ \
|
|
|
|
ftp://apache.technomancer.com/mirrors/apache/dist/ \
|
1998-11-07 14:22:40 +00:00
|
|
|
ftp://ftp.blatzheim.com/pub/mod_ssl/ \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/security/mod_ssl/ \
|
1999-03-13 17:11:04 +00:00
|
|
|
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/ \
|
1999-03-13 17:11:04 +00:00
|
|
|
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/
|
1998-09-09 15:17:46 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE}${EXTRACT_SUFX}
|
1998-08-27 16:00:05 +00:00
|
|
|
|
|
|
|
MAINTAINER= rse@engelschall.com
|
|
|
|
|
1999-03-26 08:47:51 +00:00
|
|
|
BUILD_DEPENDS= openssl:${PORTSDIR}/security/openssl \
|
1999-01-10 14:11:19 +00:00
|
|
|
${PREFIX}/lib/libssl.a:${PORTSDIR}/security/openssl \
|
|
|
|
${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl
|
1999-03-26 08:47:51 +00:00
|
|
|
RUN_DEPENDS= openssl:${PORTSDIR}/security/openssl
|
1998-08-27 16:00:05 +00:00
|
|
|
|
1999-03-24 09:54:14 +00:00
|
|
|
VERSION_APACHE= 1.3.6
|
1999-03-29 11:05:37 +00:00
|
|
|
VERSION_MODSSL= 2.2.7
|
1998-08-27 16:00:05 +00:00
|
|
|
|
1999-01-27 20:08:09 +00:00
|
|
|
Y2K= http://www.engelschall.com/sw/mod_ssl/docs/2.2/ssl_faq.html#y2k
|
1998-08-27 16:00:05 +00:00
|
|
|
RESTRICTED= "Contains cryptography"
|
|
|
|
|
1999-04-12 06:53:00 +00:00
|
|
|
USE_PERL5= yes
|
1999-03-18 14:19:51 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
1999-03-24 09:54:14 +00:00
|
|
|
--target=apache \
|
1999-03-18 14:19:51 +00:00
|
|
|
--with-layout=GNU \
|
1999-04-12 06:53:00 +00:00
|
|
|
--with-perl=${PERL} \
|
1999-03-24 09:54:14 +00:00
|
|
|
--bindir=${PREFIX}/bin \
|
|
|
|
--sbindir=${PREFIX}/sbin \
|
|
|
|
--libexecdir=${PREFIX}/libexec/apache \
|
|
|
|
--mandir=${PREFIX}/man \
|
1999-01-13 08:03:07 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/apache \
|
1999-03-24 09:54:14 +00:00
|
|
|
--datadir=${PREFIX}/share/apache \
|
1998-09-17 10:58:00 +00:00
|
|
|
--includedir=${PREFIX}/include/apache \
|
1999-03-24 09:54:14 +00:00
|
|
|
--localstatedir=/var \
|
1998-09-17 10:58:00 +00:00
|
|
|
--runtimedir=/var/run \
|
1999-03-24 09:54:14 +00:00
|
|
|
--logfiledir=/var/log \
|
|
|
|
--proxycachedir=/var/spool/apache \
|
1998-09-17 10:58:00 +00:00
|
|
|
--without-confadjust \
|
|
|
|
--enable-module=most \
|
1998-11-07 14:22:40 +00:00
|
|
|
--enable-module=auth_db \
|
|
|
|
--disable-module=auth_dbm \
|
1998-12-03 09:37:06 +00:00
|
|
|
--enable-module=ssl \
|
1999-03-24 09:54:14 +00:00
|
|
|
--enable-module=define \
|
1998-12-03 09:37:06 +00:00
|
|
|
--enable-shared=max
|
1998-08-27 16:00:05 +00:00
|
|
|
|
1999-03-24 09:54:14 +00:00
|
|
|
OPTIM= -DHARD_SERVER_LIMIT=512 \
|
|
|
|
-DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\"
|
1999-04-12 06:53:00 +00:00
|
|
|
|
1998-08-27 16:00:05 +00:00
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
1999-03-24 09:54:14 +00:00
|
|
|
OPTIM+= -DBUFFERED_LOGS -DFD_SETSIZE=1024
|
1999-04-12 06:53:00 +00:00
|
|
|
CFLAGS+= -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer \
|
|
|
|
-fexpensive-optimizations -ffast-math
|
1998-08-27 16:00:05 +00:00
|
|
|
.endif
|
|
|
|
|
1999-03-24 09:54:14 +00:00
|
|
|
CONFIGURE_ENV= CFLAGS='${CFLAGS}' \
|
|
|
|
OPTIM='${OPTIM}' \
|
|
|
|
SSL_BASE='SYSTEM' \
|
|
|
|
PATH="${PREFIX}/bin:${PATH}"
|
1998-08-27 16:00:05 +00:00
|
|
|
|
|
|
|
INSTALL_TARGET= install-quiet
|
|
|
|
|
1999-03-24 09:54:14 +00:00
|
|
|
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
|
|
|
|
MAN8= ab.8 apachectl.8 apxs.8 apache.8 logresolve.8 rotatelogs.8
|
1998-08-27 16:00:05 +00:00
|
|
|
|
1998-09-09 15:17:46 +00:00
|
|
|
TYPE= test
|
|
|
|
CRT=
|
|
|
|
KEY=
|
|
|
|
|
1998-08-27 16:00:05 +00:00
|
|
|
pre-patch:
|
|
|
|
@cd ${WRKDIR}/mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE} \
|
|
|
|
&& ${ECHO_MSG} "===> Applying mod_ssl-${VERSION_MODSSL} extension" \
|
1998-12-03 09:37:06 +00:00
|
|
|
&& ./configure --with-apache=../${DISTNAME} --expert
|
1998-08-27 16:00:05 +00:00
|
|
|
|
1998-09-17 10:58:00 +00:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC} \
|
|
|
|
&& find . -type f -name "*.orig" -print | xargs ${RM} -f
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC} \
|
1998-12-03 09:37:06 +00:00
|
|
|
&& ${ECHO_MSG} "===> Creating Dummy Certificate for Server (SnakeOil)" \
|
|
|
|
&& ${ECHO_MSG} " [use 'make certificate' to create a real one]" \
|
1998-09-17 10:58:00 +00:00
|
|
|
&& ${MAKE} certificate TYPE=dummy >/dev/null 2>&1
|
|
|
|
|
1998-08-27 16:00:05 +00:00
|
|
|
certificate:
|
|
|
|
@cd ${WRKSRC} \
|
|
|
|
&& ${ECHO_MSG} "===> Creating Test Certificate for Server" \
|
1999-03-24 09:54:14 +00:00
|
|
|
&& ${MAKE} certificate TYPE=${TYPE} CRT=${CRT} KEY=${KEY}
|
1998-08-27 16:00:05 +00:00
|
|
|
|
|
|
|
post-install:
|
1999-03-24 09:54:14 +00:00
|
|
|
@${RM} -f ${PREFIX}/etc/apache/access.conf*
|
|
|
|
@${RM} -f ${PREFIX}/etc/apache/srm.conf*
|
1998-08-27 16:00:05 +00:00
|
|
|
@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; \
|
1998-09-17 10:58:00 +00:00
|
|
|
${ECHO} "[ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl startssl >/dev/null && ${ECHO} -n ' apache'" >> ${PREFIX}/etc/rc.d/apache.sh; \
|
1998-08-27 16:00:05 +00:00
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/apache.sh; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|