Initial import of p5-POE-Component-Server-PSGI version 0.5 in the
[pkgsrc.git] / www / ap-ssl / Makefile
1 # $NetBSD: Makefile,v 1.24 1998/11/12 23:54:33 frueauf Exp $
2 #
3
4 DISTNAME=       mod_ssl-2.1.2-1.3.3
5 PKGNAME=        ap-ssl-2.1.2
6 CATEGORIES=     www
7 MASTER_SITES=   http://www.engelschall.com/sw/mod_ssl/distrib/
8
9 MAINTAINER=     tv@netbsd.org
10 HOMEPAGE=       http://www.sngelschall.com/sw/mod_ssl/
11
12 DEPENDS=        ssleay-0.9.0b:../../security/ssleay \
13                 apache-1.3.3.0:../../www/apache
14 # For "apxs":
15 BUILD_DEPENDS=  ${PREFIX}/bin/perl:../../lang/perl5
16
17 CONFLICTS=      apache-1.3.[012] apache-*modssl-*
18
19 fetch-depends:
20 .if !defined(USE_RSAREF2) || ${USE_RSAREF2} != YES && ${USE_RSAREF2} != NO
21         @${ECHO}
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.
27         @${FALSE}
28 .endif
29
30 LDFLAGS+=       -L${PREFIX}/lib -lcrypto -lssl
31 CPPFLAGS+=      -I${PREFIX}/include/ssleay
32 .if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES
33 LDFLAGS+=       -lrsaref
34 .endif
35
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.
38 do-build:
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
44
45 do-install:
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/
57
58 .include "../../mk/bsd.pkg.mk"