head	1.25;
access;
symbols
	RELEASE_8_3_0:1.21
	RELEASE_9_0_0:1.20
	RELEASE_7_4_0:1.19
	RELEASE_8_2_0:1.19
	RELEASE_6_EOL:1.19
	RELEASE_8_1_0:1.19
	RELEASE_7_3_0:1.19
	RELEASE_8_0_0:1.19
	RELEASE_7_2_0:1.18
	RELEASE_7_1_0:1.18
	RELEASE_6_4_0:1.18
	old_RELEASE_5_EOL:1.15
	old_RELEASE_7_0_0:1.10
	old_RELEASE_6_3_0:1.10
	old_PRE_XORG_7:1.5
	old_RELEASE_4_EOL:1.3;
locks; strict;
comment	@# @;


1.25
date	2012.12.10.19.24.05;	author svnexp;	state Exp;
branches;
next	1.24;

1.24
date	2012.11.17.06.02.42;	author svnexp;	state Exp;
branches;
next	1.23;

1.23
date	2012.09.22.21.15.50;	author ohauer;	state Exp;
branches;
next	1.22;

1.22
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.21;

1.21
date	2012.02.14.12.45.33;	author mm;	state Exp;
branches;
next	1.20;

1.20
date	2011.08.20.17.27.47;	author ohauer;	state Exp;
branches;
next	1.19;

1.19
date	2009.05.21.20.45.33;	author pgollucci;	state Exp;
branches;
next	1.18;

1.18
date	2008.09.08.09.02.59;	author beech;	state Exp;
branches;
next	1.17;

1.17
date	2008.06.23.02.06.09;	author araujo;	state Exp;
branches;
next	1.16;

1.16
date	2008.06.23.01.57.34;	author araujo;	state Exp;
branches;
next	1.15;

1.15
date	2008.04.11.14.33.37;	author araujo;	state Exp;
branches;
next	1.14;

1.14
date	2008.04.08.03.23.57;	author araujo;	state Exp;
branches;
next	1.13;

1.13
date	2008.03.19.22.22.08;	author araujo;	state Exp;
branches;
next	1.12;

1.12
date	2008.01.25.11.31.31;	author araujo;	state Exp;
branches;
next	1.11;

1.11
date	2007.12.13.19.00.29;	author araujo;	state Exp;
branches;
next	1.10;

1.10
date	2007.10.08.18.11.51;	author araujo;	state Exp;
branches;
next	1.9;

1.9
date	2007.09.24.07.38.41;	author linimon;	state Exp;
branches;
next	1.8;

1.8
date	2007.09.01.21.58.02;	author pav;	state Exp;
branches;
next	1.7;

1.7
date	2007.08.04.11.41.26;	author gabor;	state Exp;
branches;
next	1.6;

1.6
date	2007.06.14.15.46.33;	author mm;	state Exp;
branches;
next	1.5;

1.5
date	2007.03.09.09.46.21;	author rafan;	state Exp;
branches;
next	1.4;

1.4
date	2007.03.06.07.37.20;	author rafan;	state Exp;
branches;
next	1.3;

1.3
date	2006.12.02.00.35.30;	author shaun;	state Exp;
branches;
next	1.2;

1.2
date	2006.11.27.21.42.06;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2006.11.10.14.15.44;	author laszlof;	state Exp;
branches;
next	;


desc
@@


1.25
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308630
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308630 | mm | 2012-12-10 19:11:11 +0000 (Mon, 10 Dec 2012) | 4 lines
## SVN ##
## SVN ## Update PCRE to 8.32
## SVN ## Introduces the UTF-32 library pcre32
## SVN ## Bump PORTREVISION in dependent ports
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Dominic Mitchell <dom@@happygiraffe.net>
# $FreeBSD: head/www/mod_security21/Makefile 308630 2012-12-10 19:11:11Z mm $

PORTNAME=	mod_security21
PORTVERSION=	2.1.7
PORTREVISION=	3
CATEGORIES=	www security
MASTER_SITES=	http://www.modsecurity.org/download/
DISTNAME=	${PORTNAME:S/_//:S/21//}-apache_${PORTVERSION}

MAINTAINER=	araujo@@FreeBSD.org
COMMENT=	An intrusion detection and prevention engine

MAKE_JOBS_SAFE=  yes

USE_APACHE=	22
AP_FAST_BUILD=	yes
AP_GENPLIST=	yes
AP_EXTRAS+=	-DWITH_LIBXML2
AP_INC=	${LOCALBASE}/include/libxml2
AP_LIB=	${LOCALBASE}/lib
USE_GNOME=	libxml2
MODULENAME=	mod_security2
WRKSRCTOP=	${WRKDIR}/${DISTNAME}
WRKSRC=		${WRKSRCTOP}/apache2
SRC_FILE=	*.c
PORTDOCS=	*
DOCS=		CHANGES LICENSE README.TXT modsecurity.conf-minimal
DOCSDIR=	${PREFIX}/share/doc/${MODULENAME}
SUB_FILES+=	mod_security2.conf
SUB_LIST+=	APACHEETCDIR="${APACHEETCDIR}"

.if !defined(SKIP_RULES)
SUB_FILES+=	pkg-message.rules

PLIST_DIRS+=	${APACHEETCDIR}/Includes/mod_security2/optional_rules
PLIST_DIRS+=	${APACHEETCDIR}/Includes/mod_security2

PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/CHANGELOG
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/LICENSE
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/README
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_23_request_limits.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_10_config.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_20_protocol_violations.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_21_protocol_anomalies.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_30_http_policy.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_35_bad_robots.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_40_generic_attacks.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_45_trojans.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_50_outbound.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_20_protocol_violations.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_21_protocol_anomalies.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_40_generic_attacks.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/optional_rules/modsecurity_crs_55_marketing.conf

.endif

REINPLACE_ARGS=	-i ""

.include <bsd.port.pre.mk>

.if ${APACHE_VERSION} == 22
LIB_DEPENDS+=	pcre.3:${PORTSDIR}/devel/pcre
.endif

post-patch:
	@@${REINPLACE_CMD} -e '\
		s|SecRuleEngine On|SecRuleEngine DetectionOnly|; \
		s|SecAuditLog.*logs/modsec_audit.log|SecAuditLog /var/log/httpd-modsec2_audit.log|; \
		s|SecDebugLog.*logs/modsec_debug.log|SecDebugLog /var/log/httpd-modsec2_debug.log|; \
		s|SecServerSignature "Apache/2.2.0 (Fedora)"|SecServerSignature "Apache/${APACHE_VERSION:C/[0-9]/\0./g}x (${OPSYS})"|; \
		' ${WRKSRCTOP}/rules/modsecurity_crs_10_config.conf

post-install:
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
	@@${INSTALL_DATA} ${DOCS:S,^,${WRKSRCTOP}/,} ${DOCSDIR}/
	@@cd ${WRKSRC}/../ && ${COPYTREE_SHARE} "doc rules" ${DOCSDIR}
.endif
.if !defined(SKIP_RULES)
	@@${INSTALL_DATA} ${WRKDIR}/mod_security2.conf ${PREFIX}/${APACHEETCDIR}/Includes/
	@@cd ${WRKSRCTOP} && ${PAX} -rw -pe -s +rules+mod_security2+ rules ${PREFIX}/${APACHEETCDIR}/Includes
	@@${CAT} ${PKGMESSAGE}
.endif

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


1.24
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/www/mod_security21/Makefile 304723 2012-09-22 21:15:50Z ohauer $
d6 1
a6 1
PORTREVISION=	2
d64 1
a64 1
LIB_DEPENDS+=	pcre.1:${PORTSDIR}/devel/pcre
@


1.23
log
@SVN rev 304723 on 2012-09-22 21:15:50Z by ohauer

- USE_APACHE= s/22+/22/
- adopt new Makefile header

Port build fails on local exp-run with apache24 with
 error: 'conn_rec' has no member named 'remote_ip'

or various other apache22 specific functions/parameters

with hat apache@@
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.22
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d1 1
a1 4
# New ports collection makefile for:	mod_security2
# Date created:				9 November 2006
# Whom:					Dominic Mitchell <dom@@happygiraffe.net>
#
a2 1
#
d16 1
a16 1
USE_APACHE=	22+
@


1.21
log
@Bump pcre library dependency due to 8.30 update
@
text
@d20 1
a20 1
USE_APACHE=	20+
@


1.20
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d10 1
a10 1
PORTREVISION=	1
d68 1
a68 1
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
@


1.19
log
@- Mark remaining mod_* ports MAKE_JOBS_SAFE=yes

PR:             ports/134611
Approved by:    pav (#bsdports)
@
text
@d10 1
d20 1
a20 1
USE_APACHE=	2.0+
@


1.18
log
@- Fix docs install

Approved by:	araujo@@ (maintainer)
@
text
@d17 2
@


1.17
log
@- www/mod_security2 has been renamed to www/mod_security21 because I prepare the ports structure to receive a new series of mod_security.

PR:		ports/124827
Repocopy by:	marcus
@
text
@d80 1
a80 1
	@@(cd ${WRKSRC} && ${COPYTREE_SHARE} "doc rules" ${DOCSDIR}/)
@


1.16
log
@- Forced commit to note repocopy from www/mod_security2 -> www/mod_security21.

PR:		ports/124827
Repocopy by:	marcus
@
text
@d8 1
a8 1
PORTNAME=	mod_security2
a9 1
PORTREVISION=	1
d12 1
a12 1
DISTNAME=	${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION}
@


1.15
log
@- Add correct support to build always with libxml2.
- Bump PORTREVISION.

Reported by:	Fabien Debuire <yayien@@gmail.com> (via private mail),
		Dariusz Rubinkiewicz <dr@@debesciak.net> (via private mail)
@
text
@@


1.14
log
@- Update to 2.1.7.
- Always build with libxml2 as a dependency. [1]

PR:		ports/122364 [1]
Submitted by:	Julian C. Dunn <jdunn@@aquezada.com> [1]
@
text
@d10 1
a18 1
USE_GNOME=	libxml2
d21 4
@


1.13
log
@- Update to 2.1.6.
@
text
@d9 1
a9 1
PORTVERSION=	2.1.6
d18 1
a56 7
.if defined(WITH_LIBXML2)
AP_EXTRAS+=	-DWITH_LIBXML2
AP_INC=		${LOCALBASE}/include/libxml2
AP_LIB=		${LOCALBASE}/lib
USE_GNOME=	libxml2
.endif

@


1.12
log
@- Update to 2.1.5.

Approved by:	stas (mentor, implicit)
@
text
@d9 1
a9 1
PORTVERSION=	2.1.5
@


1.11
log
@- Update to 2.1.4.

PR:		ports/118371
Submitted by:	Beat Gaetzi <beat@@chruetertee.ch>
Approved by:	stas (mentor, implicit)
@
text
@d9 1
a9 1
PORTVERSION=	2.1.4
@


1.10
log
@- Update to 2.1.3.
- Allow mod_rpaf and mod_extract_forwarded2 to work before ModSecurity.
- Quiet some compiler warnings.
- Cleaned up and clarified some documentation.
- Small performance improvement in memory management for rule execution.

PR:		ports/116414
Submitted by:	Robin Gruyters <r.gruyters@@yirdis.nl>
Approved by:	stas (mentor), maintainer timeout (2 weeks)
@
text
@d9 1
a9 1
PORTVERSION=	2.1.3
d33 1
a33 1
PLIST_DIRS+=	${APACHEETCDIR}/Includes/mod_security2/blocking
d40 1
a40 3
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/blocking/modsecurity_crs_20_protocol_violations.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/blocking/modsecurity_crs_21_protocol_anomalies.conf
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/blocking/modsecurity_crs_40_generic_attacks.conf
d49 5
a53 1
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_55_marketing.conf
@


1.9
log
@Dominic is a new dad, and will be too busy for a while to work on ports.
Congratulations :-)
@
text
@d9 1
a9 1
PORTVERSION=	2.1.1
d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
d25 1
a25 1
DOCS=		CHANGES LICENSE README.TXT modsecurity.conf-minimal doc rules
d80 2
a81 1
	@@(cd ${WRKSRCTOP} && ${TAR} cf - ${DOCS}) | (cd ${DOCSDIR} && ${TAR} xpof -)
@


1.8
log
@- Fix build with Apache 2.2: explicitly depend on pcre library

PR:		ports/110645
Approved by:	maintainer timeout (1 month)
@
text
@d14 1
a14 1
MAINTAINER=	dom@@happygiraffe.net
@


1.7
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
@d63 6
d88 1
a88 1
.include <bsd.port.mk>
@


1.6
log
@- update to 2.1.1

PR:		ports/112685
Submitted by:	Robin Gruyters <r.gruyters@@yirdis.nl>
Approved by:	maintainer (timeout), garga (mentor, implicit)
@
text
@d26 1
a26 1
DOCSDIR=	${TARGETDIR}/share/doc/${MODULENAME}
@


1.5
log
@- Add missing files in previous update
- Correct debug log file name

PR:		pports/110121
Submitted by:	Dominic Mitchell <dom at happygiraffe.net> (maintainer)
Pointy hat to:	rafan
@
text
@d9 1
a9 1
PORTVERSION=	2.1.0
@


1.4
log
@- Update to 2.1.0
- Install core rules in DetectionOnly mode with logging in log files only.
  If you don't want to install rules, define SKIP_RULES

PR:		ports/109855
Submitted by:	Ruben van Staveren <ruben at verweg.com>
Approved by:	Dominic Mitchell <dom at happygiraffe.net> (maintainer)
@
text
@d67 1
a67 1
		s|SecDebugLog.*logs/modsec_debug.log|SecAuditLog /var/log/httpd-modsec2_debug.log|; \
@


1.3
log
@- Fix duplicated LATEST_LINK
- As a side effect, also fix lines generated for httpd.conf.

PR:		ports/106167
Submitted by:	Dominic Mitchell <dom@@happygiraffe.net> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.0.4
d25 1
a25 1
DOCS=		CHANGES LICENSE README.TXT modsecurity.conf-minimal doc
d27 26
d61 10
d76 5
@


1.2
log
@- Update to 2.0.4

PR:             ports/105876
Submitted by:   Yi-Huan Chan <yhchan@@csie.nctu.edu.tw>
Approved by:    maintainer
@
text
@d8 1
a8 1
PORTNAME=	mod_security
d12 1
a12 1
DISTNAME=	${PORTNAME:S/_//}-apache_${PORTVERSION}
@


1.1
log
@New Port: www/mod_security2

ModSecurity is an embeddable web application firewall. It provides
protection from a range of attacks against web applications and allows
for HTTP traffic monitoring and real-time analysis with no changes to
existing infrastructure.

It is also an open source project that aims to make the web application
firewall technology available to everyone.

WWW: http://www.modsecurity.org/

This port will only work with Apache 2.x, this is why it is a new port,
and not an upgrade of the existing www/mod_security.

PR:	ports/105339
Submitted By:		Dominic Mitchell <dom@@happygiraffe.net>
Approved By:		flz (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	2.0.3
d20 1
d26 1
@

