pkgsrc-wip/ap2-evasive/Makefile

33 lines
823 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.7 2012/09/24 16:56:36 asau Exp $
#
PKG_DESTDIR_SUPPORT= none
.include "../../wip/ap-evasive/Makefile.common"
PKGNAME= ap2-evasive-1.10.1
PKGREVISION= 3
PKG_APACHE_ACCEPTED= apache2
APACHE_MODULE= yes
2006-09-07 17:01:30 +02:00
APACHE_MODULE_NAME= ${DISTNAME:C|_[^_]*$||}20.so
APACHE_MODULE_SRC= ${DISTNAME:C|_[^_]*$||}20.c
APACHE_MODULE_LA= ${DISTNAME:C|_[^_]*$||}20.la
USE_TOOLS+= mail
SUBST_CLASSES+= mailer
SUBST_STAGE.mailer= post-patch
SUBST_FILES.mailer= mod_evasive.c
SUBST_SED.mailer= -e s,/bin/mail,${MAIL_CMD},
2006-01-17 10:13:36 +01:00
SUBST_MESSAGE.mailer= Fixing mail command path.
2006-09-07 17:01:30 +02:00
do-build:
cd ${WRKSRC} && ${APXS} -c -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_SRC}
do-install:
cd ${WRKSRC} && ${APXS} -i -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_LA}
.include "../../www/apache2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"