2001-04-13 06:43:48 +02:00
|
|
|
# New ports collection makefile for: apache2
|
|
|
|
# Date created: 7 April 2001
|
2001-10-24 18:03:38 +02:00
|
|
|
# Whom: Hye-Shik Chang <perky@fallin.lv>
|
1995-08-28 15:28:45 +02:00
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1995-08-28 15:28:45 +02:00
|
|
|
#
|
2004-01-08 18:42:03 +01:00
|
|
|
# For more information, please read Makefile.doc
|
|
|
|
#
|
1995-08-28 15:28:45 +02:00
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= apache
|
2004-10-12 10:27:40 +02:00
|
|
|
PORTVERSION= 2.0.52
|
2004-12-19 20:52:44 +01:00
|
|
|
PORTREVISION= 4
|
2004-08-17 14:41:26 +02:00
|
|
|
CATEGORIES= www
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \
|
2004-10-12 10:27:40 +02:00
|
|
|
${MASTER_SITE_LOCAL:S/%SUBDIR%/clement/}:powerlogo
|
2002-04-07 08:21:53 +02:00
|
|
|
DISTNAME= httpd-${PORTVERSION}
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz powerlogo.gif:powerlogo
|
|
|
|
DIST_SUBDIR= apache2
|
2002-03-23 09:31:55 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tar.gz
|
2001-11-23 06:03:13 +01:00
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
MAINTAINER?= clement@FreeBSD.org
|
2004-06-05 13:14:18 +02:00
|
|
|
COMMENT?= Version 2 of Apache web server with ${WITH_MPM:L} MPM.
|
2001-02-12 17:19:19 +01:00
|
|
|
|
2004-03-14 08:58:26 +01:00
|
|
|
LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2
|
2002-06-27 02:22:40 +02:00
|
|
|
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
LATEST_LINK= apache2
|
|
|
|
|
2004-03-18 21:50:09 +01:00
|
|
|
CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.* \
|
|
|
|
apache+mod_ssl+mod_snmp+ipv6-1.* apache+mod_ssl+mod_accel-1.* \
|
|
|
|
apache+mod_ssl+mod_snmp+mod_accel-1.* \
|
|
|
|
apache+ipv6-1.* apache+ssl-1.* apache-1.* apache_fp-1.* \
|
2003-10-14 17:47:28 +02:00
|
|
|
caudium-devel-1.* caudium10-1.* caudium12-* \
|
|
|
|
ru-apache+mod_ssl-1.* ru-apache-1.* thttpd-2.*
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
# patch files
|
2004-02-16 15:07:48 +01:00
|
|
|
.if defined (WITH_WINDOWSUPDATEFIX)
|
2004-07-01 07:54:56 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/exp-windowsupdate.patch
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_EXPERIMENTAL_PATCHES)
|
2004-10-12 10:27:40 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/exp-apr-kqueue.patch
|
2004-02-16 15:07:48 +01:00
|
|
|
.endif
|
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
SCRIPTS_ENV+= LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \
|
2004-03-20 13:27:46 +01:00
|
|
|
LIBTOOL_VERSION=${LIBTOOL_VERSION} AUTOCONF=${AUTOCONF} \
|
|
|
|
LIBTOOL_M4=${LOCALBASE}/share/aclocal/libtool${LIBTOOL_VERSION}.m4 \
|
|
|
|
AUTOHEADER=${AUTOHEADER}
|
2004-07-01 07:54:56 +02:00
|
|
|
USE_ICONV= yes
|
2004-10-31 10:22:21 +01:00
|
|
|
USE_AUTOCONF_VER= 259
|
|
|
|
USE_LIBTOOL_VER= 15
|
2004-03-20 13:27:46 +01:00
|
|
|
USE_PERL5= yes
|
2004-06-05 13:14:18 +02:00
|
|
|
USE_RC_SUBR= yes
|
2004-03-20 13:27:46 +01:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
LIBTOOLFILES= configure
|
2004-12-13 11:18:47 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2004-11-08 21:50:48 +01:00
|
|
|
LDCONFIG_DIRS= ${PREFIX}/lib/apache2
|
1998-06-24 21:54:05 +02:00
|
|
|
|
2002-06-19 01:02:05 +02:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \
|
2001-04-13 06:43:48 +02:00
|
|
|
--enable-layout=FreeBSD \
|
2002-05-23 02:32:04 +02:00
|
|
|
--with-perl=${PERL5} \
|
2004-01-08 18:42:03 +01:00
|
|
|
--with-port=${WITH_HTTP_PORT} \
|
2002-06-27 02:22:40 +02:00
|
|
|
--with-expat=${LOCALBASE} \
|
2004-07-01 07:54:56 +02:00
|
|
|
--with-iconv=${LOCALBASE} \
|
2002-06-19 01:02:05 +02:00
|
|
|
--libdir=${PREFIX_RELDEST}/lib/apache2 \
|
|
|
|
--includedir=${PREFIX_RELDEST}/include/apache2
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" \
|
2004-01-16 01:30:22 +01:00
|
|
|
CFLAGS="${CFLAGS}" \
|
2004-02-08 16:40:41 +01:00
|
|
|
LDFLAGS="${LDFLAGS}" CONFIG_SHELL="${SH}" \
|
2004-01-10 23:24:52 +01:00
|
|
|
LOCALBASE="${LOCALBASE}"
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
|
2002-06-22 01:47:25 +02:00
|
|
|
PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,}
|
2004-06-07 16:56:53 +02:00
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
2004-06-05 13:14:18 +02:00
|
|
|
|
2002-05-09 05:55:18 +02:00
|
|
|
MAKE_ENV+= DESTDIR=${DESTDIR} EXPR_COMPAT=yes
|
2001-11-19 23:47:47 +01:00
|
|
|
|
2004-07-01 07:54:56 +02:00
|
|
|
WITH_MPM?= prefork # or worker, perchild, threadpool
|
2001-11-19 23:47:47 +01:00
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
WITH_HTTP_PORT?= 80
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
|
2004-07-09 18:41:38 +02:00
|
|
|
.if defined(WITHOUT_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2004-07-13 11:32:44 +02:00
|
|
|
.else
|
2004-08-17 14:41:26 +02:00
|
|
|
CATEGORIES+= ipv6
|
|
|
|
. if defined(WITH_IPV6_V6ONLY) && defined(WITHOUT_V4MAPPED)
|
|
|
|
CONFIGURE_ARGS+= --disable-v4-mapped
|
|
|
|
. else
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-v4-mapped
|
2004-08-17 14:41:26 +02:00
|
|
|
. endif
|
2003-01-21 18:54:18 +01:00
|
|
|
.endif
|
|
|
|
|
2004-09-15 18:54:37 +02:00
|
|
|
.if !defined(WITHOUT_SSL) || defined(WITHOUT_SSL_MODULES)
|
2002-08-10 02:56:52 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
.endif
|
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
.if defined(WITH_STATIC_SUPPORT)
|
|
|
|
CONFIGURE_ARGS+= --enable-static-support
|
2003-06-12 11:35:21 +02:00
|
|
|
.endif
|
|
|
|
|
2004-01-10 23:24:52 +01:00
|
|
|
.if defined(WITH_SSL_EXPERIMENTAL_ENGINE)
|
|
|
|
CFLAGS+= -DSSL_EXPERIMENTAL_ENGINE
|
|
|
|
.endif
|
|
|
|
|
2004-06-05 13:14:18 +02:00
|
|
|
# debug overrides CFLAGS
|
2004-08-19 16:38:36 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
2004-06-05 13:14:18 +02:00
|
|
|
DEBUG_FLAGS?= -O0 -g -ggdb3
|
|
|
|
CFLAGS= ${DEBUG_FLAGS}
|
|
|
|
CONFIGURE_ARGS+= --enable-maintainer-mode
|
2004-08-19 16:38:36 +02:00
|
|
|
WITH_EXCEPTION_HOOK= YES
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EXCEPTION_HOOK)
|
|
|
|
CONFIGURE_ARGS+= --enable-exception-hook
|
2004-06-05 13:14:18 +02:00
|
|
|
.endif
|
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
# for slave ports
|
|
|
|
.if !defined(MASTERDIR)
|
|
|
|
APACHEDIR= ${.CURDIR}
|
|
|
|
.else
|
|
|
|
APACHEDIR= ${MASTERDIR}
|
2002-06-22 01:47:25 +02:00
|
|
|
.endif
|
|
|
|
|
2004-09-15 18:54:37 +02:00
|
|
|
.if defined (WITH_LDAP) || defined (WITH_LDAP_MODULES)
|
2004-01-08 18:42:03 +01:00
|
|
|
USE_OPENLDAP= YES
|
|
|
|
CONFIGURE_ARGS+= --with-ldap \
|
|
|
|
--with-ldap-lib="${LOCALBASE}/lib" \
|
|
|
|
--with-ldap-include="${LOCALBASE}/include"
|
2002-05-26 15:25:04 +02:00
|
|
|
.endif
|
|
|
|
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
1998-04-21 23:58:18 +02:00
|
|
|
|
2004-10-16 16:45:40 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libapr-0.so) || defined(WITH_APR_FROM_PORTS)
|
|
|
|
IGNORE= : apr from ports (WITH_APR_FROM_PORTS) is no longer supported
|
2004-01-10 00:11:17 +01:00
|
|
|
.endif
|
|
|
|
|
2004-10-10 10:17:59 +02:00
|
|
|
WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//:S/-//}
|
2004-02-08 12:53:55 +01:00
|
|
|
WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS}
|
2004-01-21 22:21:12 +01:00
|
|
|
|
2004-01-08 18:42:03 +01:00
|
|
|
.include "${APACHEDIR}/Makefile.doc"
|
|
|
|
.include "${APACHEDIR}/Makefile.modules"
|
2004-08-02 10:40:05 +02:00
|
|
|
WANT_APACHE= common2
|
|
|
|
.include "${APACHEDIR}/Makefile.modules.3rd"
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-mpm=${WITH_MPM:L} ${CONFIGURE_TARGET}
|
|
|
|
|
|
|
|
show-options:
|
2004-01-08 18:42:03 +01:00
|
|
|
@${SED} -ne 's/^##//p' ${APACHEDIR}/Makefile.doc
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
|
2004-09-15 18:54:37 +02:00
|
|
|
show-categories:
|
2004-11-13 19:23:34 +01:00
|
|
|
.for category in ${ALL_MODULES_CATEGORIES}
|
2004-09-15 18:54:37 +02:00
|
|
|
@${ECHO_MSG} "${category} contains these modules:"
|
|
|
|
@${ECHO_MSG} " ${${category}_MODULES}"
|
|
|
|
.endfor
|
|
|
|
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
show-modules:
|
2004-03-20 13:27:46 +01:00
|
|
|
@for module in ${AVAILABLE_MODULES} ; do \
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
${ECHO_MSG} -n "$${module}: ";\
|
|
|
|
if ${ECHO_CMD} ${APACHE_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \
|
|
|
|
${ECHO_CMD} -n "enabled "; \
|
|
|
|
if ${ECHO_CMD} ${WITH_STATIC_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \
|
|
|
|
${ECHO_CMD} "(static)" ; \
|
|
|
|
else \
|
|
|
|
${ECHO_CMD} "(shared)" ;\
|
|
|
|
fi;\
|
|
|
|
else\
|
|
|
|
${ECHO_CMD} disabled ;\
|
|
|
|
fi;\
|
|
|
|
done
|
|
|
|
|
|
|
|
pre-everything::
|
2004-09-15 18:54:37 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " To enable a module category: WITH_<CATEGORY>_MODULES"
|
|
|
|
@${ECHO_MSG} " To disable a module category: WITHOUT_<CATEGORY>_MODULES"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " Per default categories are:"
|
2004-11-13 19:23:34 +01:00
|
|
|
@${ECHO_MSG} " ${DEFAULT_MODULES_CATEGORIES}"
|
2004-09-15 18:54:37 +02:00
|
|
|
@${ECHO_MSG} " Categories available:"
|
2004-11-13 19:23:34 +01:00
|
|
|
@${ECHO_MSG} " ${ALL_MODULES_CATEGORIES}"
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " To see all available knobs, type make show-options"
|
2004-10-12 10:27:40 +02:00
|
|
|
@${ECHO_MSG} " To see all modules in different categories, type make show-categories"
|
|
|
|
@${ECHO_MSG} " You can check your modules configuration by using make show-modules"
|
Update to 2.0.48, which has corrections for two security bugs:
- CAN-2003-0789: information leak in mod_cgid
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0789>
- CAN-2003-0542: buffer overflow in mod_alias and mod_rewrite
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0542>
Use a DIST_SUBDIR. Use the DOCSDIR macro.
Add options: HTTP_PORT, IPV6_V6ONLY, NO_CGI, NO_ERROR, NO_ICONS,
NO_WWW, NO_WWWDATA, WITHOUT_AUTH, WITHOUT_DAV, WITHOUT_MODULES,
WITHOUT_MODULES, WITHOUT_PROXY, WITH_ALL_STATIC_APACHE, WITH_BERKELEYDB,
WITH_CUSTOM_AUTH, WITH_CUSTOM_PROXY, WITH_DBM, WITH_EXTRA_MODULES,
WITH_MODULES, WITH_MPM, WITH_STATIC_APACHE, WITH_STATIC_MODULES and
WITH_STATIC_SUPPORT
PR: 58654
Submitted by: Clement Laforet (maintainer)
2003-10-29 23:46:45 +01:00
|
|
|
@${ECHO_MSG} ""
|
2001-04-13 06:43:48 +02:00
|
|
|
|
2002-03-23 09:31:55 +01:00
|
|
|
post-extract:
|
2003-10-30 10:37:13 +01:00
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/powerlogo.gif ${WRKSRC}/docs/icons/freebsd.gif
|
2002-03-23 09:31:55 +01:00
|
|
|
|
2001-04-13 06:43:48 +02:00
|
|
|
post-patch:
|
2002-03-23 09:31:55 +01:00
|
|
|
@cd ${WRKSRC}/docs/docroot && \
|
|
|
|
for f in index.html.*; do (\
|
2002-06-22 01:47:25 +02:00
|
|
|
${REINPLACE_CMD} -e 's,apache_pb,icons/freebsd.gif"\
|
2002-06-19 01:02:05 +02:00
|
|
|
ALT="[Powered by FreeBSD]"><IMG SRC="apache_pb2_ani,g' $$f \
|
2002-03-23 09:31:55 +01:00
|
|
|
); done
|
2002-08-10 02:56:52 +02:00
|
|
|
@${RM} -f ${WRKSRC}/docs/docroot/*.bak
|
2004-06-05 13:14:18 +02:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh
|
2004-08-05 23:46:17 +02:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/apache2libs.sh > ${WRKDIR}/apache2libs.sh
|
2002-06-19 01:02:05 +02:00
|
|
|
@${RM} -f ${WRKSRC}/docs/manual/index.html.ko.euc-kr
|
2004-12-12 12:48:55 +01:00
|
|
|
@${RM} -f ${WRKSRC}/docs/conf/highperformance-std.conf
|
2004-05-29 23:37:38 +02:00
|
|
|
@${REINPLACE_CMD} -e 's," PLATFORM ",FreeBSD,' \
|
|
|
|
${WRKSRC}/server/core.c
|
2004-10-12 10:27:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,freebsd\[2345\],freebsd\[23456\],' \
|
|
|
|
${WRKSRC}/srclib/apr/build/apr_hints.m4
|
2004-07-02 15:47:41 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/NOTICE ${WRKSRC}/docs/manual
|
1997-10-23 01:51:35 +02:00
|
|
|
|
2004-07-30 19:04:47 +02:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ./buildconf
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@FTPUSERS=`${EGREP} -v '^#' /etc/ftpusers| ${TR} -s "\n" " "` ;\
|
2004-10-13 16:03:06 +02:00
|
|
|
${REINPLACE_CMD} -e "s,%%FTPUSERS%%,$$FTPUSERS, ; \
|
|
|
|
s,%%WWWOWN%%,${WWWOWN}, ; \
|
2004-12-12 12:48:55 +01:00
|
|
|
s,%%WWWGRP%%,${WWWGRP}, ; \
|
|
|
|
s,%%WWWBASEDIR%%,${PREFIX}/www," \
|
2004-07-30 19:04:47 +02:00
|
|
|
${WRKSRC}/docs/conf/httpd-std.conf
|
2004-12-17 18:52:20 +01:00
|
|
|
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \
|
|
|
|
${WRKSRC}/support/envvars-std
|
2004-07-30 19:04:47 +02:00
|
|
|
|
2001-10-24 18:03:38 +02:00
|
|
|
pre-install:
|
2004-03-20 13:27:46 +01:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2001-10-24 18:03:38 +02:00
|
|
|
|
2005-01-11 14:45:05 +01:00
|
|
|
install-startup-script:
|
|
|
|
.if !exists(${WRKDIR}/apache2libs.sh) || !exists(${WRKDIR}/apache2.sh)
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/apache.sh > ${WRKDIR}/apache2.sh
|
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/apache2libs.sh > ${WRKDIR}/apache2libs.sh
|
|
|
|
.endif
|
2004-12-17 18:52:20 +01:00
|
|
|
@${ECHO_CMD} "=> Installing ${PREFIX}/etc/rc.d/000.apache2libs.sh startup script."
|
2005-01-11 14:45:05 +01:00
|
|
|
@${INSTALL_SCRIPT} -m 555 ${WRKDIR}/apache2libs.sh ${PREFIX}/etc/rc.d/000.apache2libs.sh
|
2004-12-17 18:52:20 +01:00
|
|
|
@${ECHO_CMD} "=> Installing ${PREFIX}/etc/rc.d/apache2.sh startup script."
|
2005-01-11 14:45:05 +01:00
|
|
|
@${INSTALL_SCRIPT} -m 555 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh
|
|
|
|
|
|
|
|
post-install: install-startup-script
|
|
|
|
@${MKDIR} ${PREFIX}/etc/apache2/envvars.d
|
|
|
|
@${MKDIR} ${PREFIX}/etc/apache2/Includes
|
2004-12-12 12:48:55 +01:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
1996-06-15 18:58:09 +02:00
|
|
|
|
2002-08-10 02:56:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|