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}
|
2008-07-13 04:37:41 +00:00
|
|
|
PORTREVISION= 1
|
1998-02-17 12:53:47 +00:00
|
|
|
CATEGORIES= www security
|
2003-02-13 15:04:03 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \
|
2003-08-28 15:38:35 +00:00
|
|
|
${MASTER_SITES_APACHE_SSL:S/$/:ssl/}
|
2000-04-27 15:20:10 +00:00
|
|
|
DISTNAME= apache_${APACHE_VERSION}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2002-10-12 21:57:11 +00:00
|
|
|
apache_${APACHE_VERSION}+ssl_${APACHE_SSL_VERSION}${EXTRACT_SUFX}:ssl
|
2000-04-27 15:20:10 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
2005-06-06 15:09:55 +00:00
|
|
|
MAINTAINER= apache@FreeBSD.org
|
2005-06-06 15:16:30 +00:00
|
|
|
COMMENT= Apache secure webserver integrating OpenSSL
|
1997-09-22 19:45:17 +00:00
|
|
|
|
2004-03-18 20:50:09 +00:00
|
|
|
CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.* \
|
|
|
|
apache+mod_ssl+mod_snmp+ipv6-1.* apache+mod_ssl+mod_accel-1.* \
|
|
|
|
apache+mod_ssl+mod_snmp+mod_accel-1.* \
|
|
|
|
apache+ipv6-1.* apache-1.* apache-2.* apache_fp-1.* \
|
2008-07-13 04:37:41 +00:00
|
|
|
caudium-devel-1.* caudium10-1.* caudium12-1.* \
|
2007-06-17 16:59:27 +00:00
|
|
|
ru-apache+mod_ssl-1.* ru-apache-1.*
|
2003-11-09 00:42:20 +00:00
|
|
|
|
2008-04-15 11:50:10 +00:00
|
|
|
APACHE_VERSION= 1.3.41
|
|
|
|
APACHE_SSL_VERSION= 1.59
|
2003-09-28 07:19:54 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_PERL5= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2008-07-13 04:37:41 +00:00
|
|
|
USE_RC_SUBR= apache
|
|
|
|
SUB_LIST+= WWWOWN=${WWWOWN}
|
2004-12-13 21:06:18 +00:00
|
|
|
MAKE_ENV+= EXAMPLESDIR=${EXAMPLESDIR}
|
2006-01-14 13:59:20 +00:00
|
|
|
USE_APACHE= common13
|
|
|
|
|
2008-07-13 04:37:41 +00:00
|
|
|
MASTER_SITES_APACHE_SSL= \
|
2003-09-28 07:19:54 +00:00
|
|
|
ftp://ftp.ox.ac.uk/pub/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://ftp.it.net.au/mirrors/crypto/SSL/Apache-SSL/ \
|
|
|
|
ftp://opensores.thebunker.net/pub/mirrors/apache-ssl/
|
|
|
|
|
|
|
|
APACHE_HARD_SERVER_LIMIT?= 512
|
|
|
|
|
2000-02-12 09:02:44 +00:00
|
|
|
CFLAGS+= -I${OPENSSLINC}/openssl
|
2006-01-14 13:59:20 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2000-08-22 03:41:05 +00:00
|
|
|
--prefix=${PREFIX} \
|
2003-01-27 17:05:36 +00:00
|
|
|
--server-uid=www \
|
|
|
|
--server-gid=www \
|
2000-08-22 03:41:05 +00:00
|
|
|
--with-perl=${PERL} \
|
2003-11-09 00:42:20 +00:00
|
|
|
--with-layout=FreeBSD \
|
1998-12-11 22:37:09 +00:00
|
|
|
--without-confadjust \
|
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 \
|
2003-09-28 07:19:54 +00:00
|
|
|
--libexecdir=${PREFIX}/libexec/apache \
|
2006-01-14 13:59:20 +00:00
|
|
|
--target=httpsd
|
|
|
|
|
|
|
|
# --enable-shared=remain \
|
1998-02-17 12:53:47 +00:00
|
|
|
|
2003-09-28 07:19:54 +00:00
|
|
|
OPTIM= -DHARD_SERVER_LIMIT=${APACHE_HARD_SERVER_LIMIT} \
|
2000-04-27 15:20:10 +00:00
|
|
|
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
|
|
|
|
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\"
|
1998-02-17 12:53:47 +00:00
|
|
|
|
2003-11-09 00:42:20 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/apache
|
|
|
|
|
2003-09-28 07:19:54 +00:00
|
|
|
.if defined(APACHE_PERF_TUNING)
|
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
|
|
|
|
|
2003-08-28 15:38:35 +00:00
|
|
|
CONFIGURE_ENV+= OPTIM='${OPTIM}'
|
2000-04-27 15:20:10 +00:00
|
|
|
CONFIGURE_ENV+= EXTRA_SSL_LIBS="-L${OPENSSLLIB} -L${LOCALBASE}/lib"
|
1998-12-11 22:37:09 +00:00
|
|
|
|
2006-01-14 13:59:20 +00:00
|
|
|
.if defined(WITH_SUEXEC)
|
2006-01-16 10:13:26 +00:00
|
|
|
MAN8= suexec.8
|
2006-01-14 13:59:20 +00:00
|
|
|
PLIST_SUB+= SUB_SUEXEC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SUB_SUEXEC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-09-28 07:19:54 +00:00
|
|
|
MAN1= dbmmanage.1 htdigest.1 htpasswd.1
|
2006-01-16 10:13:26 +00:00
|
|
|
MAN8+= ab.8 httpsdctl.8 apxs.8 httpsd.8 logresolve.8 rotatelogs.8
|
2003-08-28 15:38:35 +00:00
|
|
|
|
2006-01-16 10:13:26 +00:00
|
|
|
.include "${.CURDIR}/Makefile.modules"
|
2003-08-28 15:38:35 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1996-10-26 18:49:52 +00:00
|
|
|
|
1999-07-04 18:44:30 +00:00
|
|
|
post-extract:
|
2004-04-07 13:47:37 +00:00
|
|
|
@cd ${WRKSRC} && ${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/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}
|
2004-01-21 09:32:13 +00:00
|
|
|
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/post-patch-conf:httpd.conf-dist
|
2008-04-15 11:50:10 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' \
|
|
|
|
${WRKSRC}/src/Configure
|
2008-07-13 04:37:41 +00:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
(cd ${WRKSRC} ; ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-noportdocs)
|
|
|
|
.endif
|
2008-04-15 11:50:10 +00:00
|
|
|
|
2003-09-28 07:19:54 +00:00
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD} ""
|
2003-11-09 00:42:20 +00:00
|
|
|
@${ECHO_CMD} "SSL is disabled by default"
|
|
|
|
@${ECHO_CMD} "Please read:"
|
|
|
|
@${ECHO_CMD} " http://www.apache-ssl.org/docs.html"
|
|
|
|
@${ECHO_CMD} " to know how to configure correctly apache-ssl"
|
2003-09-28 07:19:54 +00:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
|
1997-08-16 16:01:10 +00:00
|
|
|
certificate:
|
2003-01-27 17:05:36 +00:00
|
|
|
-${MKDIR} ${PREFIX}/etc/apache/certs
|
2000-02-12 09:02:44 +00:00
|
|
|
@if [ -f ${OPENSSLDIR}/openssl.cnf ]; then \
|
2000-10-29 22:43:41 +00:00
|
|
|
cd ${WRKSRC}/src; ${MAKE} ${MAKE_ENV} $@; \
|
2003-01-27 17:05:36 +00:00
|
|
|
${CP} ${WRKSRC}/SSLconf/conf/httpsd.pem \
|
|
|
|
${PREFIX}/etc/apache/certs/cert.pem; \
|
1998-02-20 00:43:40 +00:00
|
|
|
else \
|
2003-09-24 17:26:47 +00:00
|
|
|
${ECHO_CMD} "You must create the file ${OPENSSLDIR}/openssl.cnf first."; \
|
2000-10-29 22:43:41 +00:00
|
|
|
fi
|
1997-08-16 16:01:10 +00:00
|
|
|
|
2000-02-12 09:02:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|