2003-06-06 14:04:54 +02:00
|
|
|
# New ports collection makefile for: mod_security
|
|
|
|
# Date created: 4 June 2003
|
|
|
|
# Whom: Alex Dupre <sysadmin@alexdupre.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_security
|
2004-01-07 17:34:00 +01:00
|
|
|
PORTVERSION= 1.7.4
|
2003-06-06 14:04:54 +02:00
|
|
|
CATEGORIES= www
|
2003-10-21 14:49:48 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
|
2003-06-06 14:04:54 +02:00
|
|
|
|
|
|
|
MAINTAINER= sysadmin@alexdupre.com
|
|
|
|
COMMENT= An intrusion detection and prevention engine
|
2003-11-12 12:50:08 +01:00
|
|
|
|
2003-11-07 10:12:58 +01:00
|
|
|
USE_APACHE= yes
|
2003-06-06 14:04:54 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/include/apache2/apr.h)
|
|
|
|
WITH_APACHE2= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
APWRKSRC?= ${WRKSRC}/apache2
|
|
|
|
PLIST_SUB= APACHE=apache2
|
2003-06-06 14:43:14 +02:00
|
|
|
SO= la
|
2003-06-06 14:04:54 +02:00
|
|
|
.else
|
|
|
|
APWRKSRC?= ${WRKSRC}/apache1
|
|
|
|
PLIST_SUB= APACHE=apache
|
2003-06-06 14:43:14 +02:00
|
|
|
SO= so
|
2003-06-06 14:04:54 +02:00
|
|
|
.endif
|
|
|
|
|
2004-01-07 17:34:00 +01:00
|
|
|
DOCS= CHANGES INSTALL LICENSE README modsecurity-manual-${PORTVERSION}.pdf
|
|
|
|
PLIST_SUB+= VER=${PORTVERSION}
|
2003-06-06 14:04:54 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${APWRKSRC} && ${APXS} -c mod_security.c
|
|
|
|
|
|
|
|
do-install:
|
2003-06-06 14:43:14 +02:00
|
|
|
${APXS} -i -a -n security ${APWRKSRC}/mod_security.${SO}
|
2003-06-06 14:04:54 +02:00
|
|
|
@${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>
|