blob: b034e50d9db9b6abc1563b2695f9efd33a934658 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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.5
CATEGORIES= www
MASTER_SITES= http://www.modsecurity.org/download/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
MAINTAINER= ale@FreeBSD.org
COMMENT= An intrusion detection and prevention engine
USE_APACHE= yes
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/apache2/httpd.h)
WITH_APACHE2= yes
.endif
.if defined(WITH_APACHE2)
APWRKSRC?= ${WRKSRC}/apache2
PLIST_SUB= APACHE=apache2
SO= la
.else
APWRKSRC?= ${WRKSRC}/apache1
PLIST_SUB= APACHE=apache
SO= so
.endif
DOCS= CHANGES INSTALL LICENSE README mod_security-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>
|