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-07-01 07:54:56 +02:00
|
|
|
PORTVERSION= 2.0.50
|
2001-04-13 16:48:48 +02:00
|
|
|
CATEGORIES= www ipv6
|
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} \
|
|
|
|
http://sheepkiller.nerim.net/ports/${PORTNAME}/: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)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/exp-apr-kqueue.patch \
|
|
|
|
${FILESDIR}/exp-http-ready.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-07-01 20:06:35 +02:00
|
|
|
USE_AUTOCONF_VER= 259
|
2004-05-18 13:35:54 +02:00
|
|
|
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
|
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
|
|
|
.elif 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
|
2003-01-21 18:54:18 +01:00
|
|
|
.endif
|
|
|
|
|
2002-08-10 02:56:52 +02:00
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
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
|
|
|
|
.if defined(WITH_DEBUG) || defined (DEBUG_FLAGS)
|
|
|
|
DEBUG_FLAGS?= -O0 -g -ggdb3
|
|
|
|
CFLAGS= ${DEBUG_FLAGS}
|
|
|
|
CONFIGURE_ARGS+= --enable-maintainer-mode
|
|
|
|
.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-01-08 18:42:03 +01:00
|
|
|
.if defined (WITH_LDAP)
|
|
|
|
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-01-10 00:11:17 +01:00
|
|
|
# Untested and may fail !
|
|
|
|
.if defined(WITH_APR_FROM_PORTS)
|
|
|
|
. if defined (WITH_BDB) || defined(WITH_BERKELEYDB)
|
2004-05-30 00:07:37 +02:00
|
|
|
IGNORE= "You can't set WITH_BDB or WITH_BERKELEYDB when WITH_APR_FROM_PORTS is defined"
|
2004-02-08 16:40:41 +01:00
|
|
|
. endif
|
2004-01-10 00:11:17 +01:00
|
|
|
LIB_DEPENDS+= apr-0.9:${PORTSDIR}/devel/apr
|
|
|
|
CONFIGURE_ARGS+= --with-apr=${LOCALBASE}/bin/apr-config \
|
2004-02-08 11:01:40 +01:00
|
|
|
--with-apr-util=${LOCALBASE}/bin/apu-config
|
2004-05-29 23:37:38 +02:00
|
|
|
CONFIGURE_ENV+= LTFLAGS="--tag=CXX"
|
2004-02-08 16:40:41 +01:00
|
|
|
PLIST_SUB+= PORTS_APR="@comment "
|
2004-01-10 00:11:17 +01:00
|
|
|
.else
|
|
|
|
. if exists(${LOCALBASE}/lib/libapr-0.so)
|
2004-06-02 10:15:58 +02:00
|
|
|
IGNORE= apr is installed and may conflict with apache one\
|
|
|
|
(if you want to use apr port define WITH_APR_FROM_PORTS,\
|
|
|
|
at your own risk)
|
2004-01-10 00:11:17 +01:00
|
|
|
. endif
|
2004-02-08 16:40:41 +01:00
|
|
|
PLIST_SUB+= PORTS_APR=""
|
2004-08-05 23:46:17 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib/apache2
|
2004-01-10 00:11:17 +01:00
|
|
|
.endif
|
|
|
|
|
2004-01-21 22:21:12 +01:00
|
|
|
WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//}
|
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
|
|
|
|
|
|
|
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::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " To see all available knobs, type make show-options"
|
2004-01-10 23:24:52 +01:00
|
|
|
@${ECHO_MSG} " You can check your modules configuration by using 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-05-29 23:37:38 +02:00
|
|
|
@${REINPLACE_CMD} -e 's," PLATFORM ",FreeBSD,' \
|
|
|
|
${WRKSRC}/server/core.c
|
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" " "` ;\
|
|
|
|
${REINPLACE_CMD} -e "s,%%FTPUSERS%%,$$FTPUSERS," \
|
|
|
|
${WRKSRC}/docs/conf/httpd-std.conf
|
|
|
|
|
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
|
|
|
|
1996-06-15 18:58:09 +02:00
|
|
|
post-install:
|
2004-07-30 19:04:47 +02:00
|
|
|
@${MKDIR} ${PREFIX}/etc/apache2/Includes
|
2004-08-05 23:46:17 +02:00
|
|
|
@${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/apache2.sh startup file."
|
|
|
|
@${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh
|
|
|
|
@${ECHO_CMD} "Installing ${PREFIX}/etc/rc.d/000.apache2libs.sh startup file."
|
|
|
|
@${INSTALL_SCRIPT} -m 751 ${WRKDIR}/apache2libs.sh ${PREFIX}/etc/rc.d/000.apache2libs.sh
|
|
|
|
@@${CAT} ${PKGMESSAGE}
|
1996-06-15 18:58:09 +02:00
|
|
|
|
2002-08-10 02:56:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|