2005-11-03 17:25:24 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2005/11/03 22:25:24 david Exp $
|
2003-11-18 20:33:26 -05:00
|
|
|
|
|
|
|
COMMENT= "Web intrusion detection and prevention engine"
|
|
|
|
|
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
|
|
# and has Apache that supports DSO's.
|
2004-11-23 18:23:47 -05:00
|
|
|
SHARED_ONLY= Yes
|
2003-11-18 20:33:26 -05:00
|
|
|
|
2005-11-03 17:25:24 -05:00
|
|
|
DISTNAME= modsecurity-1.8.7
|
|
|
|
PKGNAME= ${DISTNAME}
|
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/
|
|
|
|
MAINTAINER= David Krause <david@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2004-10-26 14:11:19 -04:00
|
|
|
DOCS= CHANGES INSTALL LICENSE README 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
|
|
|
|
sed 's,!!PREFIX!!,${PREFIX},' < ${FILESDIR}/mod_security-enable \
|
|
|
|
> ${WRKBUILD}/mod_security-enable
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_security
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/mod_security.so ${PREFIX}/lib
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/mod_security-enable ${PREFIX}/sbin
|
|
|
|
${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
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|