blob: 96d8dfd17f71824e35baa716d0c57539312746d8 (
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
|
# $NetBSD: Makefile,v 1.9 2015/04/05 12:59:39 rodent Exp $
#
DISTNAME= check_spamd-1.6.0
PKGNAME= nagios-plugin-${DISTNAME:S/check_//1}
CATEGORIES= net mail
MASTER_SITES= ${MASTER_SITE_BACKUP}
# http://exchange.nagios.org/components/com_mtree/
EXTRACT_SUFX= .pl
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/SpamAssasin/check_spamd
COMMENT= Nagios plugin for monitoring the SpamAssassin daemon
LICENSE= gnu-gpl-v3
DEPENDS+= nagios-plugins-[0-9]*:../../net/nagios-plugins
DEPENDS+= p5-Time-HiRes-[0-9]*:../../time/p5-Time-HiRes
DEPENDS+= p5-Switch-[0-9]*:../../lang/p5-Switch
DEPENDS+= spamassassin-[0-9]*:../../mail/spamassassin
WRKSRC= ${WRKDIR}
NO_BUILD= yes
USE_TOOLS+= perl:run
REPLACE_PERL+= ${DISTFILES}
PLUGIN_DIR= ${PREFIX}/libexec/nagios
SUBST_CLASSES+= check_spamd
SUBST_STAGE.check_spamd=post-configure
SUBST_FILES.check_spamd=${DISTFILES}
SUBST_MESSAGE.check_spamd=Fixing path to spamc.
SUBST_SED.check_spamd= -e 's|/usr/local/perl/bin/|${PREFIX}/${PERL5_SUB_INSTALLVENDORBIN}|1'
INSTALLATION_DIRS+= ${PLUGIN_DIR}
do-install:
${INSTALL_SCRIPT} "${WRKDIR}/${DISTFILES}" \
"${DESTDIR}${PLUGIN_DIR}/check_spamd"
.include "../../mk/bsd.pkg.mk"
|