head	1.30;
access;
symbols
	RELEASE_9_0_0:1.29
	RELEASE_7_4_0:1.26
	RELEASE_8_2_0:1.26
	RELEASE_6_EOL:1.26
	RELEASE_8_1_0:1.26
	RELEASE_7_3_0:1.25
	RELEASE_8_0_0:1.24
	RELEASE_7_2_0:1.22
	RELEASE_7_1_0:1.22
	RELEASE_6_4_0:1.22
	RELEASE_5_EOL:1.21
	RELEASE_7_0_0:1.21
	RELEASE_6_3_0:1.21
	PRE_XORG_7:1.18
	RELEASE_4_EOL:1.17
	RELEASE_6_2_0:1.17
	RELEASE_6_1_0:1.13
	RELEASE_5_5_0:1.13
	RELEASE_6_0_0:1.9
	RELEASE_5_4_0:1.8
	RELEASE_4_11_0:1.5
	RELEASE_5_3_0:1.2;
locks; strict;
comment	@# @;


1.30
date	2012.01.01.19.30.36;	author ohauer;	state dead;
branches;
next	1.29;

1.29
date	2011.09.23.22.25.53;	author amdmi3;	state Exp;
branches;
next	1.28;

1.28
date	2011.09.07.03.00.37;	author pgollucci;	state Exp;
branches;
next	1.27;

1.27
date	2011.08.27.09.54.29;	author ohauer;	state Exp;
branches;
next	1.26;

1.26
date	2010.03.28.21.45.54;	author dougb;	state Exp;
branches;
next	1.25;

1.25
date	2010.02.03.22.30.49;	author pgollucci;	state Exp;
branches;
next	1.24;

1.24
date	2009.07.22.16.27.03;	author pgollucci;	state Exp;
branches;
next	1.23;

1.23
date	2009.05.17.07.24.24;	author pgollucci;	state Exp;
branches;
next	1.22;

1.22
date	2008.09.02.16.56.14;	author clement;	state Exp;
branches;
next	1.21;

1.21
date	2007.09.09.16.57.14;	author clement;	state Exp;
branches;
next	1.20;

1.20
date	2007.08.04.11.41.24;	author gabor;	state Exp;
branches;
next	1.19;

1.19
date	2007.06.17.16.59.26;	author anders;	state Exp;
branches;
next	1.18;

1.18
date	2007.03.14.20.21.31;	author pav;	state Exp;
branches;
next	1.17;

1.17
date	2006.08.04.12.34.49;	author erwin;	state Exp;
branches;
next	1.16;

1.16
date	2006.07.30.09.12.41;	author clement;	state Exp;
branches;
next	1.15;

1.15
date	2006.07.27.20.26.27;	author clement;	state Exp;
branches;
next	1.14;

1.14
date	2006.07.18.08.19.53;	author clement;	state Exp;
branches;
next	1.13;

1.13
date	2006.01.30.23.20.02;	author kuriyama;	state Exp;
branches;
next	1.12;

1.12
date	2006.01.07.06.29.56;	author dougb;	state Exp;
branches;
next	1.11;

1.11
date	2005.12.12.20.31.52;	author clement;	state Exp;
branches;
next	1.10;

1.10
date	2005.11.01.11.17.43;	author clement;	state Exp;
branches;
next	1.9;

1.9
date	2005.07.26.13.57.42;	author clement;	state Exp;
branches;
next	1.8;

1.8
date	2005.02.14.13.53.55;	author clement;	state Exp;
branches;
next	1.7;

1.7
date	2005.02.08.13.09.39;	author clement;	state Exp;
branches;
next	1.6;

1.6
date	2005.01.26.17.24.59;	author erwin;	state Exp;
branches;
next	1.5;

1.5
date	2004.12.06.21.49.38;	author clement;	state Exp;
branches;
next	1.4;

1.4
date	2004.11.24.01.53.14;	author sem;	state Exp;
branches;
next	1.3;

1.3
date	2004.11.06.12.38.55;	author josef;	state Exp;
branches;
next	1.2;

1.2
date	2004.06.16.19.32.49;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2004.06.05.14.25.18;	author pav;	state Exp;
branches;
next	;


desc
@@


1.30
log
@- remove apache13 and ports depending on apache13 from portstree
  ( EXPIRATION_DATE=2012-01-01 )

with hat apache@@
@
text
@# New ports collection makefile for:	Apache + mod_perl
# Date created:		May 21, 2004
# Whom:			ports@@rbt.ca
#
# $FreeBSD: ports/www/apache13-modperl/Makefile,v 1.29 2011/09/23 22:25:53 amdmi3 Exp $
#

PORTNAME=	apache+mod_perl
PORTVERSION=	${VERSION_APACHE}
CATEGORIES=	www perl5
MASTER_SITES=	${MASTER_SITE_APACHE_HTTPD:S/$/:apache/} \
		${MASTER_SITE_PERL_CPAN:S/$/Apache\/:modperl/}
DISTNAME=	apache_${VERSION_APACHE}
DISTFILES=	apache_${VERSION_APACHE}${EXTRACT_SUFX}:apache \
		mod_perl-${VERSION_MODPERL}${EXTRACT_SUFX}:modperl

MAINTAINER=	apache@@FreeBSD.org
COMMENT=	The Apache 1.3 webserver with a statically embedded perl interpreter

LIB_DEPENDS+=	expat.6:${PORTSDIR}/textproc/expat2
BUILD_DEPENDS=	${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww
RUN_DEPENDS=	${BUILD_DEPENDS}

DEPRECATED=	apache13 is deprecated, migrate to 2.2.x+ now
EXPIRATION_DATE=	2011-11-01

MAKE_JOBS_SAFE=  yes

CONFLICTS=	apache-1.* 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-2.* apache_fp-1.* \
		caudium-devel-1.* caudium10-1.* caudium12-* \
		ru-apache+mod_ssl-1.* ru-apache-1.* apache-*-2.*

USE_PERL5=	YES
USE_RC_SUBR=	apache

DATADIR=	${PREFIX}/www
DOCUMENT_ROOT=	${DATADIR}/data
DEFAULT_PATH=	/bin:/usr/bin:${PREFIX}/bin

# Perl man pages go into section 3
MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}

.include <bsd.port.pre.mk>

VERSION_APACHE=		1.3.42
VERSION_MODPERL=	1.30

WRKSRC_MODPERL=	${WRKDIR}/mod_perl-${VERSION_MODPERL}

.if defined(WITH_APACHE_SUEXEC)

APACHE_SUEXEC_DOCROOT?=${DOCUMENT_ROOT}
APACHE_SUEXEC_USERDIR?=public_html

SUEXEC_CONF=	--enable-suexec \
		--suexec-docroot=${APACHE_SUEXEC_DOCROOT} \
		--suexec-caller=www \
		--suexec-uidmin=1000 \
		--suexec-gidmin=1000 \
		--suexec-logfile=/var/log/httpd-suexec.log \
		--suexec-userdir=${APACHE_SUEXEC_USERDIR} \
		--suexec-safepath=${DEFAULT_PATH}

.if defined(APACHE_SUEXEC_UMASK)
SUEXEC_CONF+=	--suexec-umask=${APACHE_SUEXEC_UMASK}
.endif

PLIST_SUB+=	SUB_SUEXEC=""
SUEXEC_MAN=	suexec.8

.else   # !SUEXEC

SUEXEC_CONF=
PLIST_SUB+=	SUB_SUEXEC="@@comment "
SUEXEC_MAN=

.endif  # !SUEXEC

HAS_CONFIGURE=	yes
CONFIGURE_ARGS+=--prefix=${PREFIX} \
		--server-uid=www \
		--server-gid=www \
		--with-perl=${PERL} \
		--with-layout=FreeBSD \
		--without-confadjust \
		--enable-module=most \
		--enable-module=auth_db \
		--enable-module=mmap_static \
		--disable-module=auth_dbm \
		--enable-shared=max \
		--activate-module=src/modules/perl/libperl.a \
		--enable-module=perl \
		${SUEXEC_CONF}

CFLAGS+=-DDOCUMENT_LOCATION=\\\\\"${DOCUMENT_ROOT}\\\\\" \
	-DDEFAULT_PATH=\\\\\"${DEFAULT_PATH}\\\\\"

#
# Set APACHE_HARD_SERVER_LIMIT env. variable to desired value
#
.if defined(APACHE_HARD_SERVER_LIMIT)
CFLAGS+=-DHARD_SERVER_LIMIT=${APACHE_HARD_SERVER_LIMIT}
.else
CFLAGS+=-DHARD_SERVER_LIMIT=2048
.endif

#
# Set WITH_APACHE_PERF_TUNING env. variable to yes to get maximum performance
#
.if defined(WITH_APACHE_PERF_TUNING)
CFLAGS+=	-DBUFFERED_LOGS
CFLAGS+=	-O6 -fomit-frame-pointer
.endif

.if defined(LARGEFILES)
OPTIM+=		-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
.endif

CFLAGS=		-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

CONFIGURE_ENV=	OPTIM='${OPTIM}' LIBS='${LIBS}'

MAN1=	dbmmanage.1 htdigest.1 htpasswd.1

MAN3=	Apache.3 Apache::Constants.3  Apache::ExtUtils.3 \
		Apache::FakeRequest.3 Apache::File.3 Apache::Leak.3 \
		Apache::Log.3 Apache::Options.3 \
		Apache::PerlRun.3 Apache::PerlRunXS.3 \
		Apache::RedirectLogFix.3 \
		Apache::Registry.3 Apache::SizeLimit.3 \
		Apache::Status.3 Apache::Symbol.3 Apache::Symdump.3 \
		Apache::Table.3 Apache::URI.3 Apache::Util.3 \
		Apache::fork.3 \
		Apache::httpd_conf.3 Apache::src.3 Apache::testold.3 \
		Bundle::Apache.3 \
		Apache::Debug.3 mod_perl.3 Apache::SIG.3 Apache::Resource.3 \
		Apache::RegistryLoader.3 Apache::StatINC.3 Apache::Include.3 \
		Apache::PerlSections.3 Apache::MyConfig.3 cgi_to_mod_perl.3 \
		mod_perl_cvs.3 mod_perl_method_handlers.3 mod_perl_traps.3 \
		mod_perl_tuning.3

MAN8=	ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 \
		${SUEXEC_MAN}

pre-configure:
	@@ cd ${WRKSRC_MODPERL}; \
	${PERL5} Makefile.PL EVERYTHING=1 APACHE_SRC=../apache_${VERSION_APACHE}\
		USE_APACI=1 PREP_HTTPD=1 DO_HTTPD=1

post-configure:
	@@cd ${WRKSRC_MODPERL}/ && \
		${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile

pre-build:
	@@ cd ${WRKSRC_MODPERL}; \
	${MAKE}

pre-install:
	@@ cd ${WRKSRC_MODPERL} ; \
	${MAKE} install

.include <bsd.port.post.mk>
@


1.29
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.28
log
@- Set EXPIRATION_DATE to an actual date (9.0 is behind, so guess 2 months from now).
- This can be changed later as needed, if at all, either way we won't remove them
  until after 9.0 is released.

With Hat:   apache@@
Reported by:    dvl via freshports
@
text
@d125 1
a125 1
CONFIGURE_ENV=	OPTIM='${OPTIM}' LIBS='${LIBS}' \
@


1.27
log
@- set EXPIRATION_DATE to "one week after FreeBSD 9.0-RELEASE-p0"

with hat apache@@
@
text
@d25 1
a25 1
EXPIRATION_DATE=	one week after FreeBSD 9.0-RELEASE-p0
@


1.26
log
@2 more RC_SUBR[_PREFIX] stragglers
@
text
@d24 3
@


1.25
log
@- Update to 1.3.42

Security:   http://www.vuxml.org/freebsd/cae01d7b-110d-11df-955a-00219b0fc4d8
With hat:   apache
@
text
@a39 2
RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}

@


1.24
log
@- lang/perl5.6 is dead, remove PERL_LEVEL/PERL_VERSION < 500801 checks

PR:             ports/135398
Tested by:      2 -exp runs by pav
Approved by:    portmgr (pav)
@
text
@d47 1
a47 1
VERSION_APACHE=		1.3.41
@


1.23
log
@- Mark SAFE apache@@ ports MAKE_JOBS_SAFE=yes
@
text
@d141 1
a141 1
		Apache::PerlSections.3 cgi_to_mod_perl.3 \
a147 4
.if ${PERL_LEVEL} >= 500800
MAN3+=		Apache::MyConfig.3
.endif

@


1.22
log
@- Update apache to 1.3.41
@
text
@d24 2
@


1.21
log
@- Update:
  * apache to 1.3.39
  * mod_perl to 1.30
@
text
@d45 1
a45 1
VERSION_APACHE=		1.3.39
@


1.20
log
@- Remove the DESTDIR modifications from individual ports as we have a new,
  fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
@
text
@a9 1
PORTREVISION=	1
d45 2
a46 2
VERSION_APACHE=		1.3.37
VERSION_MODPERL=	1.29
d134 1
@


1.19
log
@Remove thttpd from conflicts list, it has a different name for its
passwd program now.

Approved by:	maintainers/erwin
@
text
@d42 1
a42 1
MAN3PREFIX=	${TARGETDIR}/lib/perl5/${PERL_VERSION}
@


1.18
log
@- Fix rc script to have overridable apache_flags and apache_pidfile

PR:		ports/104465
Reported by:	Andrey Alakozov <aa29@@mail.ru>
Submitted by:	Volker <volker@@vwsoft.com>
Approved by:	maintainer timeout (apache; 5 months)

- While here, modernize USE_RC_SUBR usage
@
text
@d30 1
a30 2
		ru-apache+mod_ssl-1.* ru-apache-1.* thttpd-2.* \
		apache-*-2.*
@


1.17
log
@Add support for DESTDIR part I.

This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
@
text
@d10 1
d34 1
a34 1
USE_RC_SUBR=	yes
a150 4
post-extract:
	@@${SED}	${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
		${FILESDIR}/apache.sh > ${WRKSRC}/apache.sh

a167 3
post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh

@


1.16
log
@- Update apache to 1.3.37
- Fix CONFLICTS
@
text
@d42 1
a42 1
MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
@


1.15
log
@- Fix security issue in mod_rewrite.
All people using mod_rewrite are strongly encouraged to update.

An off-by-one flaw exists in the Rewrite module, mod_rewrite.
Depending on the manner in which Apache httpd was compiled, this
software defect may result in a vulnerability which, in combination
with certain types of Rewrite rules in the web server configuration
files, could be triggered remotely.  For vulnerable builds, the nature
of the vulnerability can be denial of service (crashing of web server
processes) or potentially allow arbitrary code execution.
This issue has been rated as having important security impact
by the Apache HTTP Server Security Team

Updates to latest versions will follow soon.

Notified by:	so@@ (simon)
Obtained from:	Apache Security Team
Security: 	CVE-2006-3747
@
text
@a9 1
PORTREVISION=	1
d29 2
a30 1
		ru-apache+mod_ssl-1.* ru-apache-1.* thttpd-2.*
d46 1
a46 1
VERSION_APACHE=		1.3.36
@


1.14
log
@- update apache to 1.3.36
- bump HARD_SERVER_LIMIT to 2048
- drop broken WITH*_EXPAT support.
  we always depend on expat from ports (based on [1])

PR:             ports/81183 [1]
Submitted by:   Martin Nilsson <martin@@svenskabutiker.se>
@
text
@d10 1
@


1.13
log
@Chase shlib bump of libexpat.
@
text
@a9 1
PORTREVISION=	3
d20 1
d45 1
a45 1
VERSION_APACHE=		1.3.34
d50 1
a50 8
.if defined(WITHOUT_APACHE_EXPAT) && ${WITHOUT_APACHE_EXPAT} == yes
EXPAT_CONF+=	--disable-rule=EXPAT
.else
LIB_DEPENDS+=	expat.6:${PORTSDIR}/textproc/expat2
EXPAT_CONF+=	--enable-rule=EXPAT
.endif

.if defined(WITH_APACHE_SUEXEC) && ${WITH_APACHE_SUEXEC} == yes
a92 1
		${EXPAT_CONF} \
d104 1
a104 1
CFLAGS+=-DHARD_SERVER_LIMIT=512
d110 1
a110 1
.if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == YES
d119 2
a120 3
# For expat.
CFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/libs
d122 1
a122 1
CONFIGURE_ENV=	OPTIM='${OPTIM}' LIBS='${LIBS}'
@


1.12
log
@Now that new style rc.d scripts are being run as part of the
base rcorder, hard coded variable values in these scripts
are overriding the values in /etc/rc.conf[.local] (due to
the way that variables from the latter are read at boot time).

Therefore, change the boot scripts to set default values only
if the variable is unset in /etc/rc.conf[.local]. This will
allow the service to start at boot time if it's been enabled
as the user would expect.

This change will be a noop for users who have systems that
have not yet been upgraded to the new rc.d code in the base.

In many cases there are other variables in the scripts that
should get similar treatment, however I did not change
anything other than the _enable lines. I'll leave the rest
up to the maintainers to do as they see fit.

Bump PORTREVISION to make sure that users and packages
pick up this change.
@
text
@d10 1
a10 1
PORTREVISION=	2
d53 1
a53 1
LIB_DEPENDS+=	expat.5:${PORTSDIR}/textproc/expat2
@


1.11
log
@SECURITY: CVE-2005-3352 (cve.mitre.org)
   mod_imap: Escape untrusted referer header before outputting in HTML
   to avoid potential cross-site scripting.  Change also made to
   ap_escape_html so we escape quotes.  Reported by JPCERT.
   [Mark Cox]

Reported by:	simon
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.10
log
@- Update apache to 1.3.34
@
text
@d10 1
@


1.9
log
@- Fix CAN-2005-2088

Obtained from:	Apache repository
@
text
@a9 1
PORTREVISION=	3
d44 1
a44 1
VERSION_APACHE=	1.3.33
@


1.8
log
@- fix plist
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.7
log
@- Add missing man page
- Don't create httpd.conf.bak
- Set MAINTAINER to apache@@
@
text
@d10 1
a10 1
PORTREVISION=	1
d149 1
a149 1
		mod_perl_tuning.3 Apache::MyConfig.3
d154 4
d167 4
@


1.6
log
@Reset maintainer

PR:		76720
Submitted by:	maintainer
@
text
@d10 1
d18 1
a18 1
MAINTAINER=	ports@@FreeBSD.org
d149 1
a149 1
		mod_perl_tuning.3
@


1.5
log
@- Update to 1.3.33
- Unmark as DEPRECATED

PR:		ports/74596
Submitted by:	Jonathan Pater <pater@@cowboyneal.org> (maintainer)
@
text
@d17 1
a17 1
MAINTAINER=	ports@@rbt.ca
@


1.4
log
@- Standardize an EXPIRATION_DATE format.

Approved by:	krion
@
text
@a16 3
DEPRECATED=     http://vuxml.freebsd.org/6e6a6b8a-2fde-11d9-b3a2-0050fc56d258.html (vulnerability)
EXPIRATION_DATE=2004-12-06

d44 1
a44 1
VERSION_APACHE=	1.3.31
@


1.3
log
@Mark this port deprecated as the maintainer stated in a private
mail.

With hat:	secteam
@
text
@d18 1
a18 1
EXPIRATION_DATE= December 6, 2004
@


1.2
log
@- Obey WITHOUT_APACHE_EXPAT knob

PR:		ports/67974
Submitted by:	Alexey Mahotkin <alexm@@w-m.ru>
Obtained from:	www/apache13 port
@
text
@d17 3
@


1.1
log
@Add apache13-modperl, an Apache web server with mod_perl statically compiled in.

PR:		ports/67051
Submitted by:	Rod Taylor <ports@@rbt.ca>
@
text
@d99 1
@

