mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
8169f461e1
mod_ssl: 2.7.1; RA: 30.0 Also sync with www/apache13-modssl a bit. PR: 22775 (partially)
125 lines
3.6 KiB
Makefile
125 lines
3.6 KiB
Makefile
# New ports collection makefile for: Russian Apache + mod_ssl
|
|
# Date created: 7 July 2000 1:05 MSD
|
|
# Whom: Dmitry Sivachenko <dima@Chg.RU>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= apache+mod_ssl
|
|
PORTVERSION= ${VERSION_APACHE}+${RA_VERSION}+${VERSION_MODSSL}
|
|
CATEGORIES= russian www security
|
|
MASTER_SITES= ftp://ftp.lexa.ru/pub/apache-rus/ \
|
|
ftp://ftp.lexa.ru/pub/apache-rus/old-versions/ \
|
|
ftp://ftp.chg.ru/pub/WWW/httpd/apache-rus/ \
|
|
http://www.modssl.org/source/ \
|
|
ftp://ftp.modssl.org/source/ \
|
|
ftp://ftp.pca.dfn.de/pub/tools/net/mod_ssl/ \
|
|
ftp://ftp.ecrc.net/pub/security/mod_ssl/ \
|
|
ftp://ftp.nvg.ntnu.no/pub/unix/mod_ssl/ \
|
|
ftp://ftp.ulpgc.es/pub/mod_ssl/ \
|
|
ftp://glock.missouri.edu/pub/mod_ssl/ \
|
|
ftp://ftp.fu-berlin.de/unix/security/mod_ssl/ \
|
|
ftp://ftp.ntrl.net/pub/mirror/ralfsw/mod_ssl/
|
|
DISTNAME= apache_${VERSION_APACHE}rusPL${RA_VERSION}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
|
|
USE_OPENSSL= YES
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
LIB_DEPENDS= mm.11:${PORTSDIR}/devel/mm
|
|
|
|
VERSION_APACHE= 1.3.14
|
|
VERSION_MODSSL= 2.7.1
|
|
RA_VERSION= 30.0
|
|
|
|
USE_PERL5= yes
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--server-gid=nogroup \
|
|
--with-perl=${PERL} \
|
|
--with-layout=${FILESDIR}/FreeBSD.layout:FreeBSD \
|
|
--without-confadjust \
|
|
--enable-module=most \
|
|
--enable-module=auth_db \
|
|
--enable-module=mmap_static \
|
|
--disable-module=auth_dbm \
|
|
--enable-shared=max \
|
|
--enable-module=ssl \
|
|
--enable-module=define
|
|
|
|
OPTIM= -DHARD_SERVER_LIMIT=512 \
|
|
-DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
|
|
-DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin\\" \
|
|
-DACCEPT_FILTER_NAME=\\"httpready\\"
|
|
|
|
pre-extract:
|
|
.if defined(WITH_SUEXEC)
|
|
@${ECHO} "Be sure to edit suexec specific arguments to configure in the Makefile."
|
|
CONFIGURE_ARGS+=--enable-suexec \
|
|
--suexec-caller=nobody \
|
|
--suexec-docroot=${PREFIX}/www/data \
|
|
--suexec-logfile=/var/log/suexec.log \
|
|
--suexec-uidmin=50000 \
|
|
--suexec-gidmin=60000
|
|
MAN8+= suexec.8
|
|
.else
|
|
@${ECHO} "Define WITH_SUEXEC to build with suexec support."
|
|
.endif
|
|
|
|
.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 httpd.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:
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
|
|
${SED} -e "s#!!PREFIX!!#${PREFIX}#g" < ${FILESDIR}/rc.apache.sh > ${PREFIX}/etc/rc.d/apache.sh; \
|
|
${CHMOD} 751 ${PREFIX}/etc/rc.d/apache.sh; \
|
|
fi
|
|
.if defined(WITH_SUEXEC)
|
|
@${ECHO} "sbin/suexec" >> ${TMPPLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|