update Sun Jan 17 06:37:00 PST 2010
[pkgsrc.git] / wip / ap2-evasive / Makefile
1 # $NetBSD$
2 #
3
4 .include "../../wip/ap-evasive/Makefile.common"
5
6 PKGNAME=                ap2-evasive-1.10.1
7 PKGREVISION=            3
8 PKG_APACHE_ACCEPTED=    apache2
9
10 APACHE_MODULE=          yes
11 APACHE_MODULE_NAME=     ${DISTNAME:C|_[^_]*$||}20.so
12 APACHE_MODULE_SRC=      ${DISTNAME:C|_[^_]*$||}20.c
13 APACHE_MODULE_LA=       ${DISTNAME:C|_[^_]*$||}20.la
14
15 USE_TOOLS+=             mail
16
17 SUBST_CLASSES+=         mailer
18 SUBST_STAGE.mailer=     post-patch
19 SUBST_FILES.mailer=     mod_evasive.c
20 SUBST_SED.mailer=       -e s,/bin/mail,${MAIL_CMD},
21 SUBST_MESSAGE.mailer=   Fixing mail command path.
22
23 do-build:
24         cd ${WRKSRC} && ${APXS} -c -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_SRC}
25
26 do-install:
27         cd ${WRKSRC} && ${APXS} -i -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_LA}
28
29 .include "../../www/apache2/buildlink3.mk"
30 .include "../../mk/bsd.pkg.mk"