1 # $NetBSD: Makefile,v 1.24 1998/11/12 23:54:33 frueauf Exp $
4 DISTNAME= mod_ssl-2.1.2-1.3.3
7 MASTER_SITES= http://www.engelschall.com/sw/mod_ssl/distrib/
9 MAINTAINER= tv@netbsd.org
10 HOMEPAGE= http://www.sngelschall.com/sw/mod_ssl/
12 DEPENDS= ssleay-0.9.0b:../../security/ssleay \
13 apache-1.3.3.0:../../www/apache
15 BUILD_DEPENDS= ${PREFIX}/bin/perl:../../lang/perl5
17 CONFLICTS= apache-1.3.[012] apache-*modssl-*
20 .if !defined(USE_RSAREF2) || ${USE_RSAREF2} != YES && ${USE_RSAREF2} != NO
22 @${ECHO} The variable USE_RSAREF2 must be set to either YES or NO
23 @${ECHO} in order to build this package. People with no RSA
24 @${ECHO} license MUST set this variable to YES. Users outside
25 @${ECHO} the USA MUST set this variable to NO. RSA licensees may
26 @${ECHO} choose -- NO is faster.
30 LDFLAGS+= -L${PREFIX}/lib -lcrypto -lssl
31 CPPFLAGS+= -I${PREFIX}/include/ssleay
32 .if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES
36 # Since we don't have the Apache source tree to work with, we have to pretend
37 # to get all the appropriate config information and compile with apxs.
39 @cd ${WRKSRC}/pkg.sslmod && ${PREFIX}/sbin/apxs -c -o mod_ssl.so \
40 ${CPPFLAGS} -DSSL_COMPAT -DMOD_SSL_VERSION=\\\"2.1.2\\\" \
41 -DSSL_PRODUCT_NAME=\\\"mod_ssl\\\" \
42 -DSSL_PRODUCT_VERSION=\\\"2.1.2\\\" *.c
43 cd ${WRKSRC}/pkg.sslsup && ${LINK.c} -o ca-fix ca-fix.c
46 ${INSTALL_PROGRAM} ${WRKSRC}/pkg.sslsup/ca-fix ${PREFIX}/bin/
47 @cd ${WRKSRC}/pkg.sslmod && ${PREFIX}/sbin/apxs -i mod_ssl.so
48 ${INSTALL_DATA_DIR} ${PREFIX}/share/httpd/htdocs/manual/mod/mod_ssl
49 cd ${WRKSRC}/pkg.ssldoc && \
50 ${INSTALL_DATA} *.html *.gif ${PREFIX}/share/httpd/htdocs/manual/mod/mod_ssl/
51 ${INSTALL_DATA} ${WRKSRC}/pkg.sslcfg/Makefile ${WRKSRC}/pkg.sslcfg/README.CRT \
52 ${WRKSRC}/pkg.sslcfg/*.crt ${PREFIX}/etc/httpd/ssl.crt/
53 ${INSTALL_DATA} ${WRKSRC}/pkg.sslcfg/README.CSR \
54 ${WRKSRC}/pkg.sslcfg/*.csr ${PREFIX}/etc/httpd/ssl.csr/
55 ${INSTALL_DATA} ${WRKSRC}/pkg.sslcfg/README.KEY \
56 ${WRKSRC}/pkg.sslcfg/*.key ${PREFIX}/etc/httpd/ssl.key/
58 .include "../../mk/bsd.pkg.mk"