ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/sysutils/munin-node/Makefile
Revision: 23603
Committed: Sun Jul 1 18:03:54 2018 UTC (5 years, 10 months ago) by laffer1
File size: 3421 byte(s)
Log Message:
add libwww

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= munin
4 PORTVERSION= ${MUNIN_VERSION}
5 PORTREVISION= 3
6 CATEGORIES= sysutils perl5
7 MASTER_SITES= ${MUNIN_SITES}
8 PKGNAMESUFFIX= -node
9
10 MAINTAINER= ports@MidnightBSD.org
11 COMMENT= Node-specific part of Munin
12
13 LICENSE= gpl2
14
15 BUILD_DEPENDS= p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build \
16 p5-DateTime-HiRes>=0:${PORTSDIR}/devel/p5-DateTime-HiRes \
17 munin-common>=0:${PORTSDIR}/sysutils/munin-common \
18 p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
19 bash:${PORTSDIR}/shells/bash
20 RUN_DEPENDS= p5-Cache-Cache>=0:${PORTSDIR}/devel/p5-Cache-Cache \
21 p5-DateTime-HiRes>=0:${PORTSDIR}/devel/p5-DateTime-HiRes \
22 munin-common>=0:${PORTSDIR}/sysutils/munin-common \
23 p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
24 p5-Net-CIDR>=0:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
25 p5-libwww>=0:www/p5-libwww \
26 bash:${PORTSDIR}/shells/bash
27
28 EXTRA_PATCHES+= ${MUNIN_PATCHES}
29 USE_PERL5= yes
30 USES= gmake perl5 shebangfix cpe
31 PKGMESSAGE= ${WRKDIR}/pkg-message
32 REINPLACE_ARGS= -i ""
33 SHEBANG_FILES= node/sbin/munin-node node/sbin/munin-sched \
34 node/sbin/munin-run node/sbin/munin-node-configure
35
36 .include "${.CURDIR}/../munin-common/munin.mk"
37
38 ALL_TARGET= build-node build-plugins build/node/_bin/munin-async build/node/_bin/munin-asyncd
39 INSTALL_TARGET= install-node-prime install-async-prime install-plugins-prime
40 NO_ARCH= yes
41
42 OPTIONS_DEFINE= SNMP PERL JAVA
43 OPTIONS_DEFAULT= SNMP PERL
44 OPTIONS_SUB= yes
45 SNMP_DESC= Include SNMP plugins
46 PERL_DESC= Include all Perl modules (adds dependencies)
47 JAVA_DESC= Include JAVA plugins
48
49 SNMP_BUILD_DEPENDS= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
50 SNMP_RUN_DEPENDS= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
51 PERL_RUN_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg \
52 p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
53 p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
54 p5-XML-LibXML>=0:${PORTSDIR}/textproc/p5-XML-LibXML
55 JAVA_USE= java=yes
56 JAVA_INSTALL_TARGET= install-plugins-java
57 JAVA_BUILD= yes
58 JAVA_RUN= yes
59
60 SUB_FILES= pkg-message plugins.conf
61 USE_RC_SUBR= munin-asyncd munin-node munin-sched
62
63 post-patch:
64 @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
65 ${WRKSRC}/node/sbin/munin-node \
66 ${WRKSRC}/node/sbin/munin-node-configure \
67 ${WRKSRC}/node/sbin/munin-run
68 @${REINPLACE_CMD} \
69 -e 's|^\(BASH[[:space:]]*:=\).*|\1 ${bash_CMD}|' \
70 -e 's|^\(JAVARUN[[:space:]]*:=\).*|\1 ${java_CMD}|' \
71 -e 's|^\(PERL[[:space:]]*:=\).*|\1 ${perl_CMD}|' \
72 -e 's|^\(PYTHON[[:space:]]*:=\).*|\1 ${python_CMD}|' \
73 -e 's|^\(RUBY[[:space:]]*:=\).*|\1 ${ruby_CMD}|' \
74 ${WRKSRC}/Makefile.config
75 @${FIND} ${WRKSRC}/node/sbin -type f -name "*.orig" -delete
76 ${CP} -r ${WRKSRC}/plugins/node.d.freebsd ${WRKSRC}/plugins/node.d.midnightbsd
77
78 post-install:
79 ${MKDIR} ${STAGEDIR}${DBDIR}/plugin-state ${STAGEDIR}${SPOOLDIR}/async
80 ${INSTALL_SCRIPT} ${.CURDIR}/plugins/* ${STAGEDIR}${DATADIR}/plugins/
81 ${INSTALL_DATA} ${WRKSRC}/build/node/munin-node.conf \
82 ${STAGEDIR}${ETCDIR}/munin-node.conf.sample
83 ${INSTALL_DATA} ${WRKDIR}/plugins.conf \
84 ${STAGEDIR}${ETCDIR}/plugin-conf.d/plugins.conf.sample
85 (cd ${WRKSRC}/node/blib/bindoc; \
86 ${INSTALL_MAN} munin-node-configure.1 munin-node.1 munin-run.1 munin-sched.1 munindoc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1; \
87 )
88 (cd ${WRKSRC}/build/doc; \
89 ${INSTALL_MAN} munin-node.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5; \
90 ${INSTALL_MAN} munin.8 ${STAGEDIR}${MAN8PREFIX}/man/man8; \
91 )
92
93 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H