2012-10-06 22:10:55 +00:00
|
|
|
# Created by: Lupe Christoph <lupe@lupe-christoph.de>
|
2004-03-02 15:52:48 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= munin
|
2012-09-13 22:00:33 +00:00
|
|
|
PORTVERSION= ${MUNIN_VERSION}
|
2004-03-02 15:52:48 +00:00
|
|
|
CATEGORIES= sysutils perl5
|
2012-09-13 22:00:33 +00:00
|
|
|
MASTER_SITES= ${MUNIN_SITES}
|
2010-02-23 13:55:00 +00:00
|
|
|
PKGNAMESUFFIX= -master
|
2004-03-02 15:52:48 +00:00
|
|
|
|
2011-02-13 15:43:44 +00:00
|
|
|
MAINTAINER= flo@FreeBSD.org
|
2004-03-02 15:52:48 +00:00
|
|
|
COMMENT= Collector part of Munin
|
|
|
|
|
2012-07-01 14:14:22 +00:00
|
|
|
BUILD_DEPENDS= p5-Module-Build>=0:${PORTSDIR}/devel/p5-Module-Build \
|
|
|
|
munin-common>=0:${PORTSDIR}/sysutils/munin-common \
|
|
|
|
rrdtool>=0:${PORTSDIR}/databases/rrdtool \
|
|
|
|
p5-Storable>=0:${PORTSDIR}/devel/p5-Storable \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-CGI.pm>=0:${PORTSDIR}/www/p5-CGI.pm \
|
2012-07-01 14:14:22 +00:00
|
|
|
p5-DateTime-HiRes>=0:${PORTSDIR}/devel/p5-DateTime-HiRes \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-File-Copy-Recursive>=0:${PORTSDIR}/devel/p5-File-Copy-Recursive \
|
2012-07-01 14:14:22 +00:00
|
|
|
p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
|
|
|
|
p5-HTML-Template>=0:${PORTSDIR}/www/p5-HTML-Template \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 \
|
2012-07-01 14:14:22 +00:00
|
|
|
p5-Log-Log4perl>=0:${PORTSDIR}/devel/p5-Log-Log4perl \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay \
|
|
|
|
p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate \
|
2012-07-01 14:14:22 +00:00
|
|
|
p5-Text-Balanced>=0:${PORTSDIR}/textproc/p5-Text-Balanced
|
|
|
|
RUN_DEPENDS= munin-common>=0:${PORTSDIR}/sysutils/munin-common \
|
|
|
|
rrdtool>=0:${PORTSDIR}/databases/rrdtool \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-CGI.pm>=0:${PORTSDIR}/www/p5-CGI.pm \
|
2012-07-01 14:14:22 +00:00
|
|
|
p5-Storable>=0:${PORTSDIR}/devel/p5-Storable \
|
|
|
|
p5-DateTime-HiRes>=0:${PORTSDIR}/devel/p5-DateTime-HiRes \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-File-Copy-Recursive>=0:${PORTSDIR}/devel/p5-File-Copy-Recursive \
|
2012-07-01 14:14:22 +00:00
|
|
|
p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
|
|
|
|
p5-HTML-Template>=0:${PORTSDIR}/www/p5-HTML-Template \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 \
|
2012-07-01 14:14:22 +00:00
|
|
|
p5-Log-Log4perl>=0:${PORTSDIR}/devel/p5-Log-Log4perl \
|
2012-09-13 22:00:33 +00:00
|
|
|
p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay \
|
|
|
|
p5-Params-Validate>=0:${PORTSDIR}/devel/p5-Params-Validate \
|
2012-09-19 16:23:55 +00:00
|
|
|
p5-Text-Balanced>=0:${PORTSDIR}/textproc/p5-Text-Balanced \
|
|
|
|
p5-URI>=0:${PORTSDIR}/net/p5-URI \
|
2012-12-06 14:27:28 +00:00
|
|
|
p5-Date-Manip>=0:${PORTSDIR}/devel/p5-Date-Manip \
|
|
|
|
p5-FCGI>=0:${PORTSDIR}/www/p5-FCGI
|
2004-03-02 15:52:48 +00:00
|
|
|
|
2010-02-23 13:55:00 +00:00
|
|
|
USE_PERL5= yes
|
2004-03-02 15:52:48 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2010-02-25 12:15:38 +00:00
|
|
|
.include "${.CURDIR}/../munin-common/munin.mk"
|
2010-02-24 20:18:51 +00:00
|
|
|
|
2012-09-13 22:00:33 +00:00
|
|
|
EXTRA_PATCHES= ${MUNIN_PATCHES}
|
|
|
|
DISTINFO_FILE= ${MUNIN_DISTINFO}
|
|
|
|
ALL_TARGET= infiles build-master build-man
|
2010-02-23 13:55:00 +00:00
|
|
|
INSTALL_TARGET= install-master-prime
|
|
|
|
|
|
|
|
MAN3= Munin::Master::Config.3 \
|
|
|
|
Munin::Master::Group.3 \
|
|
|
|
Munin::Master::GroupRepository.3 \
|
|
|
|
Munin::Master::HTMLOld.3 \
|
|
|
|
Munin::Master::Host.3 \
|
2013-02-16 13:30:41 +00:00
|
|
|
Munin::Master::LimitsOld.3 \
|
2010-02-23 13:55:00 +00:00
|
|
|
Munin::Master::Logger.3 \
|
|
|
|
Munin::Master::Node.3 \
|
|
|
|
Munin::Master::ProcessManager.3 \
|
|
|
|
Munin::Master::Update.3 \
|
|
|
|
Munin::Master::UpdateWorker.3 \
|
|
|
|
Munin::Master::Utils.3 \
|
|
|
|
Munin::Master::Worker.3
|
2004-03-02 15:52:48 +00:00
|
|
|
MAN5= munin.conf.5
|
2010-02-23 13:55:00 +00:00
|
|
|
MAN8= munin-cron.8 \
|
|
|
|
munin-graph.8 \
|
|
|
|
munin-html.8 \
|
|
|
|
munin-limits.8 \
|
|
|
|
munin-update.8
|
2005-03-04 17:45:10 +00:00
|
|
|
|
2010-02-24 20:18:51 +00:00
|
|
|
PLIST_SUB= DBDIR=${DBDIR}
|
2010-02-23 13:55:00 +00:00
|
|
|
SUB_FILES= pkg-message
|
2004-03-02 15:52:48 +00:00
|
|
|
|
2010-09-21 16:08:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500703
|
|
|
|
RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
|
|
|
|
BUILD_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
|
|
|
|
.endif
|
|
|
|
|
2004-03-02 15:52:48 +00:00
|
|
|
pre-install:
|
2010-02-24 20:18:51 +00:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGDIR}/pkg-install ${PKGNAME} PRE-INSTALL
|
2004-03-02 15:52:48 +00:00
|
|
|
|
|
|
|
post-install:
|
2010-02-25 12:15:38 +00:00
|
|
|
@${CHOWN} ${USERS}:${GROUPS} ${DBDIR} ${STATEDIR} ${WWWDIR}
|
2012-09-13 22:00:33 +00:00
|
|
|
@${CHOWN} ${WWWOWN} ${DBDIR}/cgi-tmp
|
2010-02-25 12:15:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/build/master/munin.conf \
|
|
|
|
${PREFIX}/etc/munin/munin.conf.sample
|
2010-02-23 13:55:00 +00:00
|
|
|
@(cd ${WRKSRC}/master/blib/libdoc && for man in ${MAN3}; do \
|
|
|
|
${INSTALL_MAN} -C $$man ${PREFIX}/man/man3; \
|
|
|
|
done)
|
|
|
|
@(cd ${WRKSRC}/build/doc && for man in ${MAN5}; do \
|
|
|
|
${INSTALL_MAN} -C $$man ${PREFIX}/man/man5; \
|
|
|
|
done)
|
|
|
|
@(cd ${WRKSRC}/build/doc && for man in ${MAN8}; do \
|
|
|
|
${INSTALL_MAN} -C $$man ${PREFIX}/man/man8; \
|
|
|
|
done)
|
2010-02-24 20:18:51 +00:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
2004-03-02 15:52:48 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2010-09-21 16:08:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|