diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-06-06 12:04:54 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-06-06 12:04:54 +0000 |
commit | b447dbb3106aa444cc2036432da17b209a521d1e (patch) | |
tree | a320b0acda64bb2eeabe99a602ae7b8a24bee9b8 /www | |
parent | Update to version 0.43. (diff) |
[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>
Notes
Notes:
svn path=/head/; revision=82352
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/mod_security/Makefile | 54 | ||||
-rw-r--r-- | www/mod_security/distinfo | 1 | ||||
-rw-r--r-- | www/mod_security/pkg-descr | 9 | ||||
-rw-r--r-- | www/mod_security/pkg-plist | 12 |
5 files changed, 77 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 45acbc42d1bb..f7cd6d95c4a4 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 000000000000..a46df01cff80 --- /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 000000000000..3fd8da66514f --- /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 000000000000..b5047e6b6cbd --- /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 000000000000..16d43e24a148 --- /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 |