2008-05-09 04:24:31 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2008/05/09 08:28:34 mbalmer Exp $
|
2003-11-18 20:33:26 -05:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= Web intrusion detection and prevention engine
|
2003-11-18 20:33:26 -05:00
|
|
|
|
2006-04-17 10:58:02 -04:00
|
|
|
VER= 1.9.3
|
|
|
|
DISTNAME= modsecurity-apache_${VER}
|
2008-05-09 04:24:31 -04:00
|
|
|
PKGNAME= modsecurity-apache-${VER}p2
|
2006-04-17 10:58:02 -04:00
|
|
|
|
2003-11-18 20:33:26 -05:00
|
|
|
CATEGORIES= www
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.modsecurity.org/download/
|
|
|
|
MASTER_SITES0= ${MASTER_SITE_SOURCEFORGE:=mod-security/}
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.modsecurity.org/
|
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODULES+= apache-module
|
|
|
|
|
2003-11-18 20:33:26 -05:00
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODAPACHE_NAME= security
|
|
|
|
|
2003-11-18 20:33:26 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2006-04-17 10:58:02 -04:00
|
|
|
DOCS= CHANGES INSTALL LICENSE README doc/modsecurity-manual.pdf
|
2004-06-15 20:10:38 -04:00
|
|
|
SUBST_VARS= PKGNAME
|
2003-11-18 20:33:26 -05:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/apache1 && /usr/sbin/apxs -Wc,"${CFLAGS}" -c \
|
|
|
|
mod_security.c -o ${WRKBUILD}/mod_security.so
|
2007-06-26 15:19:45 -04:00
|
|
|
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
2003-11-18 20:33:26 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_security
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/httpd.conf.example-* \
|
|
|
|
${PREFIX}/share/examples/mod_security
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_security
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/mod_security
|
|
|
|
.endfor
|
2007-06-26 15:19:45 -04:00
|
|
|
${MODAPACHE_INSTALL}
|
2003-11-18 20:33:26 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|