freebsd-ports/www/mod_security/Makefile
Sergey A. Osokin 8becacbbe9 Update to 1.7.
Submitted by:	Alex Dupre <sysadmin@alexdupre.com> (maintainer)
PR:		58307
2003-10-21 12:49:48 +00:00

56 lines
1.3 KiB
Makefile

# New ports collection makefile for: mod_security
# Date created: 4 June 2003
# Whom: Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#
PORTNAME= mod_security
PORTVERSION= 1.7
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
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
SO= la
.else
APACHE_PORT?= ${PORTSDIR}/www/apache13
APWRKSRC?= ${WRKSRC}/apache1
PLIST_SUB= APACHE=apache
SO= so
.endif
BUILD_DEPENDS+= ${APXS}:${APACHE_PORT}
RUN_DEPENDS+= ${APXS}:${APACHE_PORT}
DOCS= CHANGES INSTALL LICENSE README modsecurity-manual-${PORTVERSION}.pdf
PLIST_SUB+= VER=${PORTVERSION}
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>