2001-02-17 18:21:28 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2001/02/17 17:21:54 wiz 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
|
|
|
#
|
|
|
|
|
2001-02-06 11:58:18 +01:00
|
|
|
DISTNAME= apache_1.3.17
|
2001-02-06 13:50:19 +01:00
|
|
|
PKGNAME= apache6-1.3.17.1
|
1999-07-23 19:53:29 +02:00
|
|
|
CATEGORIES= www
|
2001-02-06 11:58:18 +01:00
|
|
|
MASTER_SITES= http://httpd.apache.org/dist/ \
|
1999-07-23 19:53:29 +02:00
|
|
|
http://www.netbsd.org/images/logos/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
sitedrivenby.gif
|
2001-02-06 13:50:19 +01:00
|
|
|
# IPv6 patch, needs -p1
|
|
|
|
MASTER_SITES+= ftp://ftp.kame.net/pub/kame/misc/
|
|
|
|
DISTFILES+= apache-1.3.17-v6-20010206a.diff.gz
|
1999-07-23 19:53:29 +02:00
|
|
|
|
2001-02-06 13:50:19 +01:00
|
|
|
PATCH_SITES= http://httpd.apache.org/dist/
|
|
|
|
PATCHFILES= apache_1.3.17-fix.diff
|
1999-07-23 20:19:29 +02:00
|
|
|
|
2001-02-06 11:58:18 +01:00
|
|
|
MAINTAINER= jlam@netbsd.org
|
|
|
|
HOMEPAGE= http://httpd.apache.org/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= HTTP (Web) server, with IPv6 support
|
1999-07-23 19:53:29 +02:00
|
|
|
|
2001-02-06 11:58:18 +01:00
|
|
|
CONFLICTS= apache-*modssl-* apache6-*
|
|
|
|
CONFLICTS= apache-*
|
1999-07-23 19:53:29 +02:00
|
|
|
|
2001-02-06 13:50:19 +01:00
|
|
|
EXTRACT_ONLY= ${DISTFILES:N*.gif:N*.diff.gz}
|
2001-02-06 11:58:18 +01:00
|
|
|
HAS_CONFIGURE= # defined
|
2000-03-27 10:54:53 +02:00
|
|
|
CONFIGURE_SCRIPT= ${WRKSRC}/configure.v6
|
2001-02-06 11:58:18 +01:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} \
|
|
|
|
--sbindir=${PREFIX}/sbin \
|
|
|
|
--libexecdir=${PREFIX}/lib/httpd \
|
|
|
|
--sysconfdir=${PREFIX}/etc/httpd \
|
|
|
|
--datadir=${PREFIX}/share/httpd \
|
|
|
|
--cgidir=${PREFIX}/libexec/cgi-bin \
|
|
|
|
--includedir=${PREFIX}/include/httpd \
|
|
|
|
--runtimedir=/var/run \
|
|
|
|
--logfiledir=/var/log/httpd \
|
|
|
|
--proxycachedir=/var/spool/httpd/proxy
|
|
|
|
CONFIGURE_ARGS+= --enable-module=most \
|
|
|
|
--enable-module=auth_db \
|
|
|
|
--disable-module=auth_dbm
|
|
|
|
CONFIGURE_ARGS+= --with-perl=${PERL5}
|
|
|
|
CONFIGURE_ARGS+= --with-port=80
|
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
|
2001-02-06 11:58:18 +01:00
|
|
|
APACHE_USER?= www
|
|
|
|
SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin
|
|
|
|
CONFIGURE_ARGS+= --enable-suexec \
|
|
|
|
--suexec-caller=${APACHE_USER} \
|
|
|
|
--suexec-safepath='${SUEXEC_PATH}'
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.suexec
|
|
|
|
BUILD_DEFS+= APACHE_USER
|
1999-07-23 19:53:29 +02:00
|
|
|
.endif
|
|
|
|
|
2001-02-06 11:58:18 +01:00
|
|
|
.if !defined(NOPIC)
|
|
|
|
CONFIGURE_ARGS+= --enable-module=so # requires dlopen()
|
|
|
|
CONFIGURE_ARGS+= --enable-shared=proxy
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.shared
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-module=proxy
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
1999-07-23 19:53:29 +02:00
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
|
|
|
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
|
2001-02-06 11:58:18 +01:00
|
|
|
LDFLAGS+= -Wl,-R/usr/ucblib -L/usr/ucblib \
|
|
|
|
-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib
|
2000-02-22 18:43:23 +01:00
|
|
|
CONFIGURE_ENV+= INCLUDES="-I${LOCALBASE}/include/db2"
|
|
|
|
CONFIGURE_ENV+= LIBS="-ldbm -ldb2"
|
|
|
|
.endif
|
|
|
|
|
2001-02-06 11:58:18 +01:00
|
|
|
BUILD_DEFS+= APACHE_PERF_TUNING APACHE_SUEXEC
|
1999-07-23 19:53:29 +02:00
|
|
|
|
2001-02-06 11:58:18 +01:00
|
|
|
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
|
|
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
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).
|
|
|
|
|
2001-02-06 11:58:18 +01:00
|
|
|
pre-patch:
|
|
|
|
${FIND} ${WRKSRC} -name '*.orig' -exec ${RM} -f {} \;
|
1999-07-23 19:53:29 +02:00
|
|
|
|
|
|
|
post-patch:
|
2001-02-06 13:50:19 +01:00
|
|
|
for i in apache-1.3.17-v6-20010206a.diff.gz; do \
|
2001-02-06 13:55:42 +01:00
|
|
|
${GZCAT} ${_DISTDIR}/$$i | \
|
|
|
|
${PATCH} ${PATCH_DIST_ARGS:C/-p0/-p1/} \
|
|
|
|
|| ( ${ECHO} Patch $$i failed ; exit 1 ) ; \
|
2001-02-06 13:50:19 +01:00
|
|
|
done
|
2001-02-06 11:58:18 +01:00
|
|
|
${CHMOD} +x ${CONFIGURE_SCRIPT}
|
1999-07-23 19:53:29 +02:00
|
|
|
|
|
|
|
post-build:
|
2001-02-06 11:58:18 +01:00
|
|
|
${SED} -e "s,@PREFIX@,${PREFIX},g" \
|
|
|
|
${FILESDIR}/apache.sh > ${WRKDIR}/apache.sh
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${FIND} ${WRKSRC}/htdocs -name '*.orig' -exec ${RM} -f {} \;
|
|
|
|
${SED} -e "s|@CAT@|${CAT}|g" \
|
|
|
|
-e "s|@RM@|${RM}|g" \
|
|
|
|
-e "s|@RMDIR@|${RMDIR}|g" \
|
|
|
|
-e "s|@TRUE@|${TRUE}|g" \
|
|
|
|
${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
|
|
|
|
${SED} -e "s|@CAT@|${CAT}|g" \
|
|
|
|
-e "s|@CHMOD@|${CHMOD}|g" \
|
|
|
|
-e "s|@CHOWN@|${CHOWN}|g" \
|
|
|
|
-e "s|@CP@|${CP}|g" \
|
|
|
|
-e "s|@MKDIR@|${MKDIR}|g" \
|
|
|
|
${PKGDIR}/INSTALL > ${INSTALL_FILE}
|
1999-07-23 19:53:29 +02:00
|
|
|
|
|
|
|
post-install:
|
2001-02-06 11:58:18 +01:00
|
|
|
.if !defined(NOPIC)
|
|
|
|
cd ${PREFIX}/lib/httpd; ${MV} libproxy.so mod_proxy.so
|
|
|
|
.endif
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/httpd/htdocs
|
2000-09-20 07:14:10 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/apache.sh ${PREFIX}/etc/rc.d/apache
|
2001-02-06 11:58:18 +01:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
1999-07-23 19:53:29 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|