summaryrefslogtreecommitdiff
path: root/security/ap-modsecurity/Makefile
blob: f65e4fa8b36c3225a34811130e6f045fa1625fce (plain)
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
# $NetBSD: Makefile,v 1.4 2006/10/21 12:36:07 adrianp Exp $
#

DISTNAME=	modsecurity-apache_1.9.4
PKGNAME=	${APACHE_PKG_PREFIX}-modsecurity-1.9.4
CATEGORIES=	www security
MASTER_SITES=	http://www.modsecurity.org/download/

MAINTAINER=	adrianp@NetBSD.org
HOMEPAGE=	http://www.modsecurity.org/
COMMENT=	Intrusion detection and prevention engine for web applications

.include "../../mk/apache.mk"

.if ${PKG_APACHE} == "apache2"
APACHE_DIR=	apache2
MOD_EXTN=	la
.else
APACHE_DIR=	apache1
MOD_EXTN=	so
.endif
PTHREAD_OPTS+=	require

.include "../../mk/pthread.buildlink3.mk"

do-build:
	cd ${WRKSRC}/${APACHE_DIR} && \
		${SETENV} PATH=${PATH:Q} \
		${APXS} ${CPPFLAGS} ${LDFLAGS} -c mod_security.c

do-install:
	cd ${WRKSRC}/${APACHE_DIR} && \
		${SETENV} PATH=${PATH:Q} \
		${APXS} ${CPPFLAGS} ${LDFLAGS} -i mod_security.${MOD_EXTN}

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ap-security
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ap-security

	${INSTALL_DATA} ${WRKSRC}/httpd.conf.example-minimal \
		${PREFIX}/share/examples/ap-security
	cd ${WRKSRC}/doc && ${PAX} -rw . ${PREFIX}/share/doc/ap-security

.include "../../mk/bsd.pkg.mk"