blob: 87bdb98a49817a4cfa8fa420f860f9efa19100aa (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $NetBSD: Makefile,v 1.3 1998/09/17 12:21:56 frueauf Exp $
# FreeBSD: Makefile,v 1.2 1998/08/29 21:24:13 rse 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/ \
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}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.apache.org/
DEPENDS+= SSLeay-0.9.0b:../../security/ssleay
CONFLICTS= apache-1.3.1
RESTRICTED= "Contains cryptography"
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
.if defined(APACHE_SUEXEC)
CONFIGURE_ARGS+=--enable-suexec --suexec-caller=www \
--suexec-userdir=WWW \
--suexec-safepath='${PREFIX}/bin:/usr/local/bin:/usr/bin:/bin'
.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
.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:
@cd ${WRKDIR}/mod_ssl-2.0.6-1.3.1 \
&& ${ECHO_MSG} "===> Applying mod_ssl-2.0.6 extension" \
&& ./configure --with-apache=../${DISTNAME}
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
.include "../../mk/bsd.pkg.mk"
|