blob: 45fcbdab02c70cdf5abab766ea876802c3ad760d (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# $NetBSD: Makefile,v 1.15 2000/08/15 10:31:24 itojun Exp $
#
# The fourth number in the PKGNAME version indicates a NetBSD pkg revision
# (to indicate changes in the shipped third party patches such as the mod_ssl
# EAPI when there has been no change to the Apache version number).
#
# This package does not compile in mod_ssl support hooks, as it conflicts
# with IPv6 enable patch.
# IPv6 enable patch conflicts with third-party modules anyway, due to
# sanity fixes in apache module API (for example, avoid u_long for IPv4 addrs)
#
DISTNAME= apache_1.3.12
PKGNAME= apache6-1.3.12
CATEGORIES= www
MASTER_SITES= http://www.apache.org/dist/ \
ftp://ftp.modssl.org/source/ \
http://www.netbsd.org/images/logos/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
sitedrivenby.gif
# ${SSL_DISTNAME}${EXTRACT_SUFX}
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
PATCHFILES= apache-1.3.12-v6-20000815.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= itojun@itojun.org
HOMEPAGE= http://www.apache.org/
CONFLICTS= apache-*modssl-* apache-*
#SSL_DISTNAME= mod_ssl-2.6.3-1.3.12
EXTRACT_ONLY= ${DISTFILES:N*.gif}
HAS_CONFIGURE= YES
CONFIGURE_ARGS+= --prefix=${PREFIX} --libexecdir=${PREFIX}/lib/httpd \
--runtimedir=/var/run --datadir=${PREFIX}/share/httpd \
--logfiledir=/var/log/httpd --sysconfdir=${PREFIX}/etc/httpd \
--proxycachedir=/var/spool/httpd/proxy \
--includedir=${PREFIX}/include/httpd \
--sbindir=${PREFIX}/sbin \
--enable-module=most \
--enable-module=auth_db \
--disable-module=auth_dbm \
--with-perl=${PREFIX}/bin/perl
# --enable-rule=EAPI --disable-module=ssl
CONFIGURE_SCRIPT= ${WRKSRC}/configure.v6
CONFIGURE_ENV+= OPTIM="${OPTIM}"
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
.if !defined(USE_INET6) || ${USE_INET6} != YES
IGNORE= "IPv6 only build"
.endif
.if defined(APACHE_SUEXEC) && ${APACHE_SUEXEC} == YES
CONFIGURE_ARGS+= --enable-suexec --suexec-caller=www \
--suexec-safepath='/bin:/usr/bin:${PREFIX}/bin:/usr/local/bin'
.endif
.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 (${OPSYS} == "SunOS")
DEPENDS+= db-2.7.7:../../databases/db
LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib
CONFIGURE_ENV+= INCLUDES="-I${LOCALBASE}/include/db2"
CONFIGURE_ENV+= LIBS="-ldbm -ldb2"
.endif
PLIST_SRC= ${WRKDIR}/PLIST
BUILD_DEFS+= APACHE_PERF_TUNING APACHE_SUEXEC USE_INET6
# Note that there is NO static compile module hook here. This is intentional.
# Under Apache 1.3, modules can be compiled to link dynamically to the server
# using the "apxs" program. See apxs(8).
#post-extract:
# @${CP} ${FILESDIR}/ap_include_extern.h ${WRKSRC}/src/include/
# @${CP} ${WRKDIR}/${SSL_DISTNAME}/pkg.eapi/*.c ${WRKSRC}/src/ap/
# @${CP} ${WRKDIR}/${SSL_DISTNAME}/pkg.eapi/*.h ${WRKSRC}/src/include/
#pre-patch:
# @cd ${WRKSRC} && ${CAT} \
# ../${SSL_DISTNAME}/pkg.eapi/eapi.patch \
# ../${SSL_DISTNAME}/pkg.sslcfg/sslcfg.patch \
# ../${SSL_DISTNAME}/pkg.sslmod/sslmod.patch \
# ../${SSL_DISTNAME}/pkg.sslsup/sslsup.patch \
# | ${PATCH} ${PATCH_ARGS}
# @cd ${WRKSRC} && ${TAIL} +129 \
# ../${SSL_DISTNAME}/pkg.ssldoc/ssldoc.patch \
# | ${PATCH} ${PATCH_ARGS}
post-patch:
@${FIND} ${WRKSRC}/htdocs -name '*.orig' | xargs ${RM} -f
@${CHMOD} +x ${CONFIGURE_SCRIPT}
post-build:
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/apache.sh \
>${WRKDIR}/apache.sh
post-install:
${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif \
${PREFIX}/share/httpd/htdocs
${INSTALL_SCRIPT} ${WRKDIR}/apache.sh ${PREFIX}/etc/rc.d/apache.sh
@${MV} ${PREFIX}/lib/httpd/libproxy.so \
${PREFIX}/lib/httpd/mod_proxy.so 2>/dev/null || \
${MKDIR} ${PREFIX}/lib/httpd
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
.for FILE in man/man8/suexec.8 sbin/suexec
@if ${TEST} -e ${PREFIX}/${FILE} ; then \
${ECHO} ${FILE} >>${PLIST_SRC}; \
fi
.endfor
.include "../../mk/bsd.pkg.mk"
.if !defined(NOPIC)
CONFIGURE_ARGS+= --enable-module=so --enable-shared=proxy
.else
CONFIGURE_ARGS+= --disable-module=proxy
.endif
|