aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-06-06 20:04:54 +0800
committeredwin <edwin@FreeBSD.org>2003-06-06 20:04:54 +0800
commita83230a88894067a7ee06bde0a378d25b64610c5 (patch)
tree0714681ce1fa0b56adc6e593caf7254c92982696
parent6808130eee26027a96848f608f7e92c7b17c0e98 (diff)
downloadfreebsd-ports-graphics-a83230a88894067a7ee06bde0a378d25b64610c5.tar.gz
freebsd-ports-graphics-a83230a88894067a7ee06bde0a378d25b64610c5.tar.zst
freebsd-ports-graphics-a83230a88894067a7ee06bde0a378d25b64610c5.zip
[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 <sysadmin@alexdupre.com>
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_security/Makefile54
-rw-r--r--www/mod_security/distinfo1
-rw-r--r--www/mod_security/pkg-descr9
-rw-r--r--www/mod_security/pkg-plist12
5 files changed, 77 insertions, 0 deletions
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 <sysadmin@alexdupre.com>
+#
+# $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 <bsd.port.pre.mk>
+
+.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 <bsd.port.post.mk>
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