From a83230a88894067a7ee06bde0a378d25b64610c5 Mon Sep 17 00:00:00 2001 From: edwin Date: Fri, 6 Jun 2003 12:04:54 +0000 Subject: [New Port] www/mod_security ModSecurity is an open source intrustion detection and prevention engine for web applications. It operates embedded into the web server, acting as a powerful umbrella - shielding web applications from attacks. WWW: http://www.modsecurity.org/ It supports both Apache 1.3 and Apache 2.0. PR: ports/52937 Submitted by: Alex Dupre --- www/Makefile | 1 + www/mod_security/Makefile | 54 ++++++++++++++++++++++++++++++++++++++++++++++ www/mod_security/distinfo | 1 + www/mod_security/pkg-descr | 9 ++++++++ www/mod_security/pkg-plist | 12 +++++++++++ 5 files changed, 77 insertions(+) create mode 100644 www/mod_security/Makefile create mode 100644 www/mod_security/distinfo create mode 100644 www/mod_security/pkg-descr create mode 100644 www/mod_security/pkg-plist diff --git a/www/Makefile b/www/Makefile index 45acbc42d1b..f7cd6d95c4a 100644 --- a/www/Makefile +++ b/www/Makefile @@ -222,6 +222,7 @@ SUBDIR += mod_roaming2 SUBDIR += mod_ruby SUBDIR += mod_scgi + SUBDIR += mod_security SUBDIR += mod_sed SUBDIR += mod_sequester SUBDIR += mod_snake diff --git a/www/mod_security/Makefile b/www/mod_security/Makefile new file mode 100644 index 00000000000..a46df01cff8 --- /dev/null +++ b/www/mod_security/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: mod_security +# Date created: 4 June 2003 +# Whom: Alex Dupre +# +# $FreeBSD$ +# + +PORTNAME= mod_security +PORTVERSION= 1.5 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= mod-security +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= sysadmin@alexdupre.com +COMMENT= An intrusion detection and prevention engine + +.include + +.if exists(${LOCALBASE}/include/apache2/apr.h) +WITH_APACHE2= yes +.endif + +APXS?= ${LOCALBASE}/sbin/apxs +.if defined(WITH_APACHE2) +APACHE_PORT?= ${PORTSDIR}/www/apache2 +APWRKSRC?= ${WRKSRC}/apache2 +PLIST_SUB= APACHE=apache2 +.else +APACHE_PORT?= ${PORTSDIR}/www/apache13 +APWRKSRC?= ${WRKSRC}/apache1 +PLIST_SUB= APACHE=apache +.endif + +BUILD_DEPENDS+= ${APXS}:${APACHE_PORT} +RUN_DEPENDS+= ${APXS}:${APACHE_PORT} + +DOCS= CHANGES INSTALL LICENSE README modsecurity-manual-v1.5.pdf + +do-build: + @cd ${APWRKSRC} && ${APXS} -c mod_security.c + +do-install: + ${APXS} -i -a -n security ${APWRKSRC}/mod_security.so + @${MKDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/httpd.conf.example-* ${EXAMPLESDIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for f in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include diff --git a/www/mod_security/distinfo b/www/mod_security/distinfo new file mode 100644 index 00000000000..3fd8da66514 --- /dev/null +++ b/www/mod_security/distinfo @@ -0,0 +1 @@ +MD5 (mod_security_1.5.tar.gz) = fc08325ed088c147d093ffb0a73eb44e diff --git a/www/mod_security/pkg-descr b/www/mod_security/pkg-descr new file mode 100644 index 00000000000..b5047e6b6cb --- /dev/null +++ b/www/mod_security/pkg-descr @@ -0,0 +1,9 @@ +ModSecurity is an open source intrustion detection and +prevention engine for web applications. It operates embedded +into the web server, acting as a powerful umbrella - shielding +web applications from attacks. + +WWW: http://www.modsecurity.org/ + +- Alex Dupre +sysadmin@alexdupre.com diff --git a/www/mod_security/pkg-plist b/www/mod_security/pkg-plist new file mode 100644 index 00000000000..16d43e24a14 --- /dev/null +++ b/www/mod_security/pkg-plist @@ -0,0 +1,12 @@ +libexec/%%APACHE%%/mod_security.so +@exec %D/sbin/apxs -e -a -n security %D/%F +@unexec %D/sbin/apxs -e -A -n security %D/%F +%%PORTDOCS%%share/doc/mod_security/CHANGES +%%PORTDOCS%%share/doc/mod_security/INSTALL +%%PORTDOCS%%share/doc/mod_security/LICENSE +%%PORTDOCS%%share/doc/mod_security/README +%%PORTDOCS%%share/doc/mod_security/modsecurity-manual-v1.5.pdf +share/examples/mod_security/httpd.conf.example-full +share/examples/mod_security/httpd.conf.example-minimal +%%PORTDOCS%%@dirrm share/doc/mod_security +@dirrm share/examples/mod_security -- cgit