2000-02-22 18:43:23 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2000/02/22 17:43:23 veego Exp $
|
1999-07-23 19:53:29 +02:00
|
|
|
#
|
|
|
|
# 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).
|
|
|
|
#
|
1999-07-23 20:19:29 +02:00
|
|
|
# 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)
|
1999-07-23 19:53:29 +02:00
|
|
|
#
|
|
|
|
|
2000-02-21 08:14:44 +01:00
|
|
|
DISTNAME= apache_1.3.11
|
|
|
|
PKGNAME= apache6-1.3.11p0
|
1999-07-23 19:53:29 +02:00
|
|
|
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
|
1999-07-23 20:19:29 +02:00
|
|
|
# ${SSL_DISTNAME}${EXTRACT_SUFX}
|
1999-07-23 19:53:29 +02:00
|
|
|
|
1999-07-23 20:19:29 +02:00
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
2000-02-21 08:14:44 +01:00
|
|
|
PATCHFILES= apache-1.3.11-v6-20000220a.diff.gz
|
1999-07-23 20:19:29 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
|
|
|
MAINTAINER= itojun@itojun.org
|
1999-07-23 19:53:29 +02:00
|
|
|
HOMEPAGE= http://www.apache.org/
|
|
|
|
|
1999-07-23 20:19:29 +02:00
|
|
|
CONFLICTS= apache-*modssl-* apache-*
|
1999-07-23 19:53:29 +02:00
|
|
|
|
1999-09-21 17:12:03 +02:00
|
|
|
#SSL_DISTNAME= mod_ssl-2.2.8-1.3.6
|
1999-07-23 19:53:29 +02:00
|
|
|
|
|
|
|
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 \
|
1999-07-23 20:19:29 +02:00
|
|
|
--enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
1999-07-23 19:53:29 +02:00
|
|
|
--disable-module=auth_dbm \
|
|
|
|
--with-perl=${PREFIX}/bin/perl
|
1999-07-23 20:19:29 +02:00
|
|
|
# --enable-rule=EAPI --disable-module=ssl
|
|
|
|
CONFIGURE_SCRIPT= configure.v6
|
1999-07-23 19:53:29 +02:00
|
|
|
CONFIGURE_ENV+= OPTIM="${OPTIM}"
|
|
|
|
|
2000-02-21 08:14:44 +01:00
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
|
1999-07-23 19:53:29 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
1999-09-04 00:00:52 +02:00
|
|
|
.if !defined(USE_INET6) || ${USE_INET6} != YES
|
2000-01-26 17:04:18 +01:00
|
|
|
IGNORE= "IPv6 only build"
|
1999-07-23 20:19:29 +02:00
|
|
|
.endif
|
|
|
|
|
1999-07-23 19:53:29 +02:00
|
|
|
.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
|
|
|
|
|
2000-02-22 18:43:23 +01:00
|
|
|
.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
|
|
|
|
|
1999-07-23 19:53:29 +02:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
|
1999-08-18 11:24:08 +02:00
|
|
|
BUILD_DEFS+= APACHE_PERF_TUNING APACHE_SUEXEC USE_INET6
|
1999-08-18 10:28:09 +02:00
|
|
|
|
1999-07-23 19:53:29 +02:00
|
|
|
# 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).
|
|
|
|
|
1999-07-23 20:19:29 +02:00
|
|
|
#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}
|
2000-02-05 15:01:11 +01:00
|
|
|
# @cd ${WRKSRC} && ${TAIL} +129 \
|
1999-07-23 20:19:29 +02:00
|
|
|
# ../${SSL_DISTNAME}/pkg.ssldoc/ssldoc.patch \
|
|
|
|
# | ${PATCH} ${PATCH_ARGS}
|
1999-07-23 19:53:29 +02:00
|
|
|
|
|
|
|
post-patch:
|
2000-02-22 18:43:23 +01:00
|
|
|
@${FIND} ${WRKSRC}/htdocs -name '*.orig' | xargs ${RM} -f
|
1999-07-23 20:19:29 +02:00
|
|
|
@${CHMOD} +x ${WRKSRC}/${CONFIGURE_SCRIPT}
|
1999-07-23 19:53:29 +02:00
|
|
|
|
|
|
|
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
|
2000-02-22 18:43:23 +01:00
|
|
|
@if ${TEST} -e ${PREFIX}/${FILE} ; then \
|
1999-07-23 19:53:29 +02:00
|
|
|
${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
|