summaryrefslogtreecommitdiff
path: root/net/nagios-plugin-spamd/Makefile
blob: 6aedd3f7096de0ae3057fcb9190dad4c67a374e4 (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
# $NetBSD: Makefile,v 1.7 2014/05/29 23:37:05 wiz Exp $
#

DISTNAME=	check_spamd-1.4.pl
PKGNAME=	nagios-plugin-spamd-${DISTNAME:S/check_spamd-//:S/.pl//}
PKGREVISION=	3
CATEGORIES=	net mail
MASTER_SITES=	# ftp://jhweiss.de/pub/users/weiss/nagios/plugins/
EXTRACT_SUFX=	# empty

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.jhweiss.de/software/nagios.html
COMMENT=	Nagios plugin for monitoring the SpamAssassin daemon

DEPENDS+=		nagios-plugins-[0-9]*:../../net/nagios-plugins

WRKSRC=			${WRKDIR}
NO_BUILD=		yes

USE_TOOLS+=		perl:run

REPLACE_PERL+=		${DISTNAME}

PLUGIN_DIR=		${PREFIX}/libexec/nagios

SUBST_CLASSES+=		check_spamd
SUBST_STAGE.check_spamd=post-configure
SUBST_FILES.check_spamd=${DISTNAME}
SUBST_SED.check_spamd=	-e 's,/usr/local/nagios/libexec,${PLUGIN_DIR},'

INSTALLATION_DIRS+=	${PLUGIN_DIR}

do-extract:
	cp "${DISTDIR}/${DISTNAME}" "${WRKDIR}"

do-install:
	${INSTALL_SCRIPT} "${WRKDIR}/${DISTNAME}" \
		"${DESTDIR}${PLUGIN_DIR}/check_spamd"

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