mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
[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>
This commit is contained in:
parent
0f56f72b44
commit
b447dbb310
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82352
@ -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
|
||||
|
54
www/mod_security/Makefile
Normal file
54
www/mod_security/Makefile
Normal file
@ -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>
|
1
www/mod_security/distinfo
Normal file
1
www/mod_security/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mod_security_1.5.tar.gz) = fc08325ed088c147d093ffb0a73eb44e
|
9
www/mod_security/pkg-descr
Normal file
9
www/mod_security/pkg-descr
Normal file
@ -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
|
12
www/mod_security/pkg-plist
Normal file
12
www/mod_security/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user