summaryrefslogtreecommitdiff
path: root/www/apache6/Makefile
diff options
context:
space:
mode:
authoritojun <itojun>1999-07-23 17:53:29 +0000
committeritojun <itojun>1999-07-23 17:53:29 +0000
commit453f2db27fa7fa30a51b7943dc1ed028ec5e5ce9 (patch)
treef3d856b5b75050ff2e36dfb5e3df54b1781b3ac0 /www/apache6/Makefile
parent98c64ed95cb85da9e6f56a649dfd371d07689701 (diff)
downloadpkgsrc-453f2db27fa7fa30a51b7943dc1ed028ec5e5ce9.tar.gz
import pkgsrc/www/apache into pkgsrc/www/apache6,
to make a IPv6-ready version of apache package.
Diffstat (limited to 'www/apache6/Makefile')
-rw-r--r--www/apache6/Makefile104
1 files changed, 104 insertions, 0 deletions
diff --git a/www/apache6/Makefile b/www/apache6/Makefile
new file mode 100644
index 00000000000..4571053b920
--- /dev/null
+++ b/www/apache6/Makefile
@@ -0,0 +1,104 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/07/23 17:53:29 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 pkg does not compile in mod_ssl, only the `mod_ssl EAPI' (a set of
+# code hooks that allow mod_ssl to be compiled separately later, if desired).
+#
+
+DISTNAME= apache_1.3.6
+PKGNAME= apache-1.3.6p0
+CATEGORIES= www
+MASTER_SITES= http://www.apache.org/dist/ \
+ ftp://ftp.modssl.org/source/ \
+ http://www.netbsd.org/images/logos/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${SSL_DISTNAME}${EXTRACT_SUFX} \
+ sitedrivenby.gif
+
+MAINTAINER= cjs@netbsd.org
+HOMEPAGE= http://www.apache.org/
+
+CONFLICTS= apache-*modssl-*
+
+SSL_DISTNAME= mod_ssl-2.2.8-1.3.6
+
+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-rule=EAPI --enable-module=most \
+ --disable-module=ssl --enable-module=auth_db \
+ --disable-module=auth_dbm \
+ --with-perl=${PREFIX}/bin/perl
+CONFIGURE_ENV+= OPTIM="${OPTIM}"
+
+.include "../../mk/bsd.prefs.mk"
+
+.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
+
+PLIST_SRC= ${WRKDIR}/PLIST
+
+# 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}
+
+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 [ -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