head	1.16;
access;
symbols
	RELEASE_5_EOL:1.15
	RELEASE_7_0_0:1.10
	RELEASE_6_3_0:1.10
	PRE_XORG_7:1.5
	RELEASE_4_EOL:1.3;
locks; strict;
comment	@# @;


1.16
date	2008.06.23.02.06.09;	author araujo;	state dead;
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.16
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
@# New ports collection makefile for:	mod_security2
# Date created:				9 November 2006
# Whom:					Dominic Mitchell <dom@@happygiraffe.net>
#
# $FreeBSD: ports/www/mod_security2/Makefile,v 1.15 2008/04/11 14:33:37 araujo Exp $
#

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

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

USE_APACHE=	2.0+
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.0:${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.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
@d5 1
a5 1
# $FreeBSD$
@


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
@

