[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / nagios-plugin-spamd

File: [cvs.NetBSD.org] / pkgsrc / net / nagios-plugin-spamd / Makefile (download)

Revision 1.12, Sun Sep 3 08:53:12 2017 UTC (19 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-
Changes since 1.11: +2 -2 lines

Follow some redirects.

# $NetBSD: Makefile,v 1.12 2017/09/03 08:53:12 wiz Exp $
#

DISTNAME=	check_spamd-1.6.0
PKGNAME=	nagios-plugin-${DISTNAME:S/check_//1}
PKGREVISION=	2
CATEGORIES=	net mail
MASTER_SITES=	${MASTER_SITE_BACKUP}
		# http://exchange.nagios.org/components/com_mtree/
EXTRACT_SUFX=	.pl

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://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"