2000-09-20 07:14:10 +02:00
|
|
|
# $NetBSD: Makefile,v 1.51 2000/09/20 05:14:12 jlam Exp $
|
1998-10-03 23:01:14 +02:00
|
|
|
#
|
1998-12-03 18:23:51 +01: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).
|
1998-03-05 09:02:22 +01:00
|
|
|
#
|
1998-12-03 18:23:51 +01:00
|
|
|
# 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).
|
|
|
|
|
2000-04-24 15:13:22 +02:00
|
|
|
DISTNAME= apache_1.3.12
|
|
|
|
PKGNAME= apache-1.3.12
|
1998-12-03 18:23:51 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://www.apache.org/dist/ \
|
1999-05-01 01:51:39 +02:00
|
|
|
ftp://ftp.modssl.org/source/ \
|
1998-12-03 18:23:51 +01:00
|
|
|
http://www.netbsd.org/images/logos/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
${SSL_DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
sitedrivenby.gif
|
1998-03-05 09:02:22 +01:00
|
|
|
|
2000-09-12 16:17:31 +02:00
|
|
|
MAINTAINER= jlam@netbsd.org
|
1998-12-03 18:23:51 +01:00
|
|
|
HOMEPAGE= http://www.apache.org/
|
1998-03-05 09:02:22 +01:00
|
|
|
|
1999-07-23 20:20:04 +02:00
|
|
|
CONFLICTS= apache-*modssl-* apache6-*
|
1998-03-05 09:02:22 +01:00
|
|
|
|
2000-09-12 16:17:31 +02:00
|
|
|
SSL_DISTNAME= mod_ssl-2.6.6-1.3.12
|
1998-12-03 18:23:51 +01:00
|
|
|
|
|
|
|
EXTRACT_ONLY= ${DISTFILES:N*.gif}
|
2000-09-06 08:17:55 +02:00
|
|
|
HAS_CONFIGURE= # defined
|
1998-12-03 18:23:51 +01:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --libexecdir=${PREFIX}/lib/httpd \
|
|
|
|
--runtimedir=/var/run --datadir=${PREFIX}/share/httpd \
|
1999-11-21 23:09:26 +01:00
|
|
|
--cgidir=${PREFIX}/libexec/cgi-bin \
|
2000-09-06 08:17:55 +02:00
|
|
|
--logfiledir=/var/log/httpd \
|
|
|
|
--sysconfdir=${PREFIX}/etc/httpd \
|
1998-12-03 18:23:51 +01:00
|
|
|
--proxycachedir=/var/spool/httpd/proxy \
|
|
|
|
--includedir=${PREFIX}/include/httpd \
|
2000-09-06 08:17:55 +02:00
|
|
|
--sbindir=${PREFIX}/sbin
|
|
|
|
CONFIGURE_ARGS+= --enable-rule=EAPI --enable-module=most \
|
1998-12-03 18:23:51 +01:00
|
|
|
--disable-module=ssl --enable-module=auth_db \
|
2000-09-06 08:17:55 +02:00
|
|
|
--disable-module=auth_dbm
|
2000-09-12 16:17:31 +02:00
|
|
|
CONFIGURE_ARGS+= --with-port=80
|
2000-09-06 08:17:55 +02:00
|
|
|
CONFIGURE_ARGS+= --with-perl=${PERL5}
|
1998-12-03 18:23:51 +01:00
|
|
|
CONFIGURE_ENV+= OPTIM="${OPTIM}"
|
1998-10-03 23:01:14 +02:00
|
|
|
|
1999-05-11 18:04:03 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(APACHE_SUEXEC) && ${APACHE_SUEXEC} == YES
|
2000-09-06 08:17:55 +02:00
|
|
|
SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin
|
1998-12-03 18:23:51 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-suexec --suexec-caller=www \
|
2000-09-06 08:17:55 +02:00
|
|
|
--suexec-safepath='${SUEXEC_PATH}'
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.suexec
|
1998-10-03 23:01:14 +02:00
|
|
|
.endif
|
|
|
|
|
2000-09-06 08:17:55 +02:00
|
|
|
.if !defined(NOPIC)
|
2000-09-12 16:17:31 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-module=so # requires dlopen()
|
|
|
|
CONFIGURE_ARGS+= --enable-shared=proxy
|
2000-09-06 08:17:55 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.shared
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-module=proxy
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
1998-10-03 23:01:14 +02:00
|
|
|
.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
|
1998-12-03 18:23:51 +01:00
|
|
|
OPTIM+= -DBUFFERED_LOGS
|
|
|
|
CFLAGS+= -O6 -fomit-frame-pointer -fexpensive-optimizations
|
1998-10-03 23:01:14 +02:00
|
|
|
.endif
|
1998-03-05 09:02:22 +01:00
|
|
|
|
2000-02-22 18:38:16 +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-11-21 23:09:26 +01:00
|
|
|
BUILD_DEFS+= APACHE_PERF_TUNING APACHE_SUEXEC
|
1999-08-18 10:28:09 +02:00
|
|
|
|
1998-06-04 21:38:36 +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).
|
1998-06-03 16:01:11 +02:00
|
|
|
|
1998-12-03 18:23:51 +01:00
|
|
|
post-extract:
|
2000-09-06 08:17:55 +02:00
|
|
|
${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
|
1998-12-03 18:23:51 +01:00
|
|
|
|
|
|
|
pre-patch:
|
2000-09-06 08:17:55 +02:00
|
|
|
cd ${WRKSRC} && ${CAT} \
|
|
|
|
${WRKDIR}/${SSL_DISTNAME}/pkg.eapi/eapi.patch \
|
|
|
|
${WRKDIR}/${SSL_DISTNAME}/pkg.sslcfg/sslcfg.patch \
|
|
|
|
${WRKDIR}/${SSL_DISTNAME}/pkg.sslmod/sslmod.patch \
|
|
|
|
${WRKDIR}/${SSL_DISTNAME}/pkg.sslsup/sslsup.patch \
|
1998-12-03 18:23:51 +01:00
|
|
|
| ${PATCH} ${PATCH_ARGS}
|
2000-09-12 16:17:31 +02:00
|
|
|
cd ${WRKSRC} && ${TAIL} +148 \
|
2000-09-06 08:17:55 +02:00
|
|
|
${WRKDIR}/${SSL_DISTNAME}/pkg.ssldoc/ssldoc.patch \
|
1999-04-30 19:05:19 +02:00
|
|
|
| ${PATCH} ${PATCH_ARGS}
|
|
|
|
|
1998-10-03 23:01:14 +02:00
|
|
|
post-patch:
|
2000-09-06 08:17:55 +02:00
|
|
|
${FIND} ${WRKSRC}/htdocs -name '*.orig' -exec ${RM} -f {} \;
|
1998-10-03 23:01:14 +02:00
|
|
|
|
1999-05-11 20:32:23 +02:00
|
|
|
post-build:
|
2000-09-06 08:17:55 +02:00
|
|
|
${SED} -e "s,@PREFIX@,${PREFIX},g" \
|
|
|
|
< ${FILESDIR}/apache.sh > ${WRKDIR}/apache.sh
|
1999-05-11 20:32:23 +02:00
|
|
|
|
1998-07-21 23:34:09 +02:00
|
|
|
post-install:
|
2000-09-06 08:17:55 +02: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
|
2000-09-06 08:17:55 +02:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
1998-07-21 23:34:09 +02:00
|
|
|
|
1998-06-04 21:38:36 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|