blob: efbe61a9873eee024bcaac9ed1a04ebfc6ebc380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.5 1998/12/28 07:56:35 marc Exp $
#
DISTNAME= mod_ssl-2.1.3-1.3.3
PKGNAME= ap-ssl-2.1.3
CATEGORIES= www
MASTER_SITES= http://www.engelschall.com/sw/mod_ssl/distrib/
MAINTAINER= tv@netbsd.org
HOMEPAGE= http://www.sngelschall.com/sw/mod_ssl/
DEPENDS= ssleay-0.9.0b:../../security/ssleay \
apache-1.3.3.2:../../www/apache
# For "apxs":
BUILD_DEPENDS= ${PREFIX}/bin/perl:../../lang/perl5
CONFLICTS= apache-1.3.[012] apache-*modssl-*
.include "../../mk/bsd.prefs.mk"
fetch-depends:
.if !defined(USE_RSAREF2) || ${USE_RSAREF2} != YES && ${USE_RSAREF2} != NO
@${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.
@${FALSE}
.endif
LDFLAGS+= -L${PREFIX}/lib -lcrypto -lssl
CPPFLAGS+= -I${PREFIX}/include/ssleay
.if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES
LDFLAGS+= -lrsaref
.endif
# Since we don't have the Apache source tree to work with, we have to pretend
# to get all the appropriate config information and compile with apxs.
do-build:
@cd ${WRKSRC}/pkg.sslmod && ${PREFIX}/sbin/apxs -c -o mod_ssl.so \
${CPPFLAGS} -DSSL_COMPAT -DMOD_SSL_VERSION=\\\"2.1.2\\\" \
-DSSL_PRODUCT_NAME=\\\"mod_ssl\\\" \
-DSSL_PRODUCT_VERSION=\\\"2.1.2\\\" *.c
cd ${WRKSRC}/pkg.sslsup && ${LINK.c} -o ca-fix ca-fix.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pkg.sslsup/ca-fix ${PREFIX}/bin/
@cd ${WRKSRC}/pkg.sslmod && ${PREFIX}/sbin/apxs -i mod_ssl.so
${INSTALL_DATA_DIR} ${PREFIX}/share/httpd/htdocs/manual/mod/mod_ssl
cd ${WRKSRC}/pkg.ssldoc && \
${INSTALL_DATA} *.html *.gif ${PREFIX}/share/httpd/htdocs/manual/mod/mod_ssl/
${INSTALL_DATA} ${WRKSRC}/pkg.sslcfg/Makefile ${WRKSRC}/pkg.sslcfg/README.CRT \
${WRKSRC}/pkg.sslcfg/*.crt ${PREFIX}/etc/httpd/ssl.crt/
${INSTALL_DATA} ${WRKSRC}/pkg.sslcfg/README.CSR \
${WRKSRC}/pkg.sslcfg/*.csr ${PREFIX}/etc/httpd/ssl.csr/
${INSTALL_DATA} ${WRKSRC}/pkg.sslcfg/README.KEY \
${WRKSRC}/pkg.sslcfg/*.key ${PREFIX}/etc/httpd/ssl.key/
.include "../../mk/bsd.pkg.mk"
|