summaryrefslogtreecommitdiff
path: root/www/apache-modssl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/apache-modssl/Makefile')
-rw-r--r--www/apache-modssl/Makefile85
1 files changed, 32 insertions, 53 deletions
diff --git a/www/apache-modssl/Makefile b/www/apache-modssl/Makefile
index 04db41d232c..dc5d9869651 100644
--- a/www/apache-modssl/Makefile
+++ b/www/apache-modssl/Makefile
@@ -1,75 +1,54 @@
-# $NetBSD: Makefile,v 1.4 1998/09/22 06:11:40 garbled Exp $
-# FreeBSD: Makefile,v 1.2 1998/08/29 21:24:13 rse Exp
+# $NetBSD: Makefile,v 1.5 1998/10/03 21:01:15 tv Exp $
+#
-DISTNAME= apache_1.3.1
PKGNAME= apache-modssl-1.3.1
CATEGORIES= www security
-MASTER_SITES= ftp://www.apache.org/apache/dist/ \
- http://www.engelschall.com/sw/mod_ssl/distrib/ \
+
+MASTER_SITES+= http://www.engelschall.com/sw/mod_ssl/distrib/ \
ftp://ftp.engelschall.com/sw/mod_ssl/ \
ftp://ftp.ulpgc.es/pub/mod_ssl/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} mod_ssl-2.0.6-1.3.1${EXTRACT_SUFX}
-
-NOT_FOR_ARCHS= alpha #mod_include.so ELF problems
-
-MAINTAINER= packages@netbsd.org
-HOMEPAGE= http://www.apache.org/
+DISTFILES+= mod_ssl-2.0.6-1.3.1${EXTRACT_SUFX}
+EXTRACT_ONLY+= mod_ssl-2.0.6-1.3.1${EXTRACT_SUFX}
DEPENDS+= SSLeay-0.9.0b:../../security/ssleay
CONFLICTS= apache-1.3.1
RESTRICTED= "Contains cryptography"
+IS_INTERACTIVE= yes
-HAS_CONFIGURE= YES
-CONFIGURE_ARGS+=--compat --prefix=${PREFIX}/http --exec-prefix=${PREFIX} \
- --mandir=${PREFIX}/man --libexecdir=${PREFIX}/libexec/apache \
- --sbindir=${PREFIX}/sbin --runtimedir=/var/run \
- --enable-module=most --enable-module=auth_db \
- --disable-module=auth_dbm --with-perl=${PREFIX}/bin/perl \
- --enable-module=ssl
+CONFIGURE_ARGS+=--enable-module=ssl
+CONFIGURE_ENV+= SSL_BASE=${PREFIX} SSL_CNFDIR=${PREFIX}/lib
-.if defined(APACHE_SUEXEC)
-CONFIGURE_ARGS+=--enable-suexec --suexec-caller=www \
- --suexec-userdir=WWW \
- --suexec-safepath='${PREFIX}/bin:/usr/local/bin:/usr/bin:/bin'
+.if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES
+CONFIGURE_ENV+= RSA_BASE=${PREFIX}/lib
.endif
-OPTIM= -DHARD_SERVER_LIMIT=512 \
- -DDOCUMENT_LOCATION=\\"${PREFIX}/http/htdocs/\\" \
- -DDEFAULT_PATH=\\"/bin:/usr/bin:${PREFIX}/bin:/usr/local/bin\\"
-
-.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
-CONFIGURE_ARGS+= --disable-rule=STATUS
-OPTIM+= -DBUFFERED_LOGS
-CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
+PLIST_SRC= ${PKGDIR}/PLIST ../apache/pkg/PLIST
+
+.if !defined(USE_RSAREF2) || ${USE_RSAREF2} != YES && ${USE_RSAREF2} != NO
+fetch-depends:
+ @${ECHO}
+ @${ECHO} The variable USE_RSAREF2 must be set to either YES or NO
+ @${ECHO} in order to build this package. People with no RSA
+ @${ECHO} license MUST set this variable to YES. Users outside
+ @${ECHO} the USA MUST set this variable to NO. RSA licensees may
+ @${ECHO} choose -- NO is faster. This setting must match what the
+ @${ECHO} SSLeay pkg was compiled with.
+ @${FALSE}
.endif
-.if !defined(NOPIC)
-CONFIGURE_ARGS+=--enable-module=so --enable-shared=include
-.endif
-
-CONFIGURE_ENV= OPTIM='${OPTIM}' SSL_BASE=${PREFIX} \
- SSL_CNFDIR=${PREFIX}/etc RSA_BASE=${PREFIX}/lib
-
-INSTALL_TARGET= install-quiet
-
-pre-patch:
+pre-patch: pre-patch-modssl
+pre-patch-modssl:
@cd ${WRKDIR}/mod_ssl-2.0.6-1.3.1 \
- && ${ECHO_MSG} "===> Applying mod_ssl-2.0.6 extension" \
- && ./configure --with-apache=../${DISTNAME}
+ && ${ECHO_MSG} "===> Applying mod_ssl-2.0.6 extension" \
+ && ./configure --with-apache=../${DISTNAME}
+pre-install: certificate
certificate:
@cd ${WRKSRC} \
- && ${ECHO_MSG} "===> Creating Test Certificate for Server" \
- && ${MAKE} certificate
-
-post-install:
- @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
- ${ECHO} Installing ${PREFIX}/etc/rc.d/apache.sh ; \
- ${SED} -e 's|@@@PREFIX@@@|${PREFIX}|g' \
- < ${FILESDIR}/apache.sh \
- > ${PREFIX}/etc/rc.d/apache.sh ; \
- fi
+ && ${ECHO_MSG} "===> Creating Test Certificate for Server" \
+ && ${MAKE} certificate
-.include "../../mk/bsd.pkg.mk"
+# There's lots of tuning the user can do; this makes it common.
+.include "../apache/Makefile"