summaryrefslogtreecommitdiff
path: root/sysutils/munin-contrib/Makefile
blob: fe3f3094bf971417f2fa0b49ff8d7aae5cccc617 (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
43
44
45
46
47

PORTNAME=	contrib
DISTVERSION=	git.2019-06-28
PORTREVISION=	1
CATEGORIES=	sysutils
PKGNAMEPREFIX=	munin-

MAINTAINER=	mat@FreeBSD.org
COMMENT=	Contributed plugins and other for munin

LICENSE=	GPLv2

RUN_DEPENDS=	munin-node>=0:sysutils/munin-node

USES=		python:env shebangfix uniquefiles:dirs

USE_GITHUB=	yes
GH_ACCOUNT=	munin-monitoring
GH_TAGNAME=	33270dd
GH_TUPLE=	shuque:bind9stats:a920ded:bind9stats

SHEBANG_REGEX=	./(${EXAMPLES_DIRS:ts|})/.*
SHEBANG_LANG=	expect gawk python3 zsh
python3_CMD=	${LOCALBASE}/bin/python${PYTHON3_DEFAULT}
zsh_CMD=	${LOCALBASE}/bin/zsh
ruby_OLD_CMD=	/opt/csw/bin/ruby

# Most of the installed files are scripts, so give them a "correct" mode.
BINMODE=	755

NO_ARCH=	yes
NO_BUILD=	yes

SUB_FILES=	pkg-message

EXAMPLES_DIRS=	plugins samples templates tools

post-extract:
	@${MV} ${WRKSRC_bind9stats}/bind9stats.py ${WRKSRC}/plugins/bind9stats

do-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${COPYTREE_BIN} ${EXAMPLES_DIRS:Q} ${STAGEDIR}${EXAMPLESDIR}
	@cd ${STAGEDIR}${PREFIX} && ${FIND} -f * '(' -type f -o -type l ')' >> ${TMPPLIST}

.include <bsd.port.mk>