aboutsummaryrefslogtreecommitdiff
path: root/sysutils/munin-master
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-09-02 16:13:40 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-09-02 16:13:40 +0000
commit1fef7a32be1c141ec483e2ec78552adbcb1c865c (patch)
tree7845cb9ccbf1cce3468f50e3820dade6ba638e48 /sysutils/munin-master
parent6dd05dec15a7ec6ee32be3229d1f92abb99616bb (diff)
downloadports-1fef7a32be1c141ec483e2ec78552adbcb1c865c.tar.gz
ports-1fef7a32be1c141ec483e2ec78552adbcb1c865c.zip
- Stage
- Move a few patches around to stay consistent - add a JAVA option to munin-node. Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=367046
Diffstat (limited to 'sysutils/munin-master')
-rw-r--r--sysutils/munin-master/Makefile54
-rw-r--r--sysutils/munin-master/pkg-plist104
2 files changed, 68 insertions, 90 deletions
diff --git a/sysutils/munin-master/Makefile b/sysutils/munin-master/Makefile
index 5e47eda760e8..f78fb8d24328 100644
--- a/sysutils/munin-master/Makefile
+++ b/sysutils/munin-master/Makefile
@@ -3,6 +3,7 @@
PORTNAME= munin
PORTVERSION= ${MUNIN_VERSION}
+PORTREVISION= 1
CATEGORIES= sysutils perl5
MASTER_SITES= ${MUNIN_SITES}
PKGNAMESUFFIX= -master
@@ -45,7 +46,6 @@ USES= gmake perl5
PKGMESSAGE= ${WRKDIR}/pkg-message
-NO_STAGE= yes
.include "${.CURDIR}/../munin-common/munin.mk"
EXTRA_PATCHES= ${MUNIN_PATCHES}
@@ -53,51 +53,15 @@ DISTINFO_FILE= ${MUNIN_DISTINFO}
ALL_TARGET= infiles build-master build-man
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 \
- Munin::Master::LimitsOld.3 \
- 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
-MAN5= munin.conf.5
-MAN8= munin-cron.8 \
- munin-graph.8 \
- munin-html.8 \
- munin-limits.8 \
- munin-update.8
-
-PLIST_SUB= DBDIR=${DBDIR}
SUB_FILES= pkg-message
-
-.include <bsd.port.pre.mk>
-
-pre-install:
- @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGDIR}/pkg-install ${PKGNAME} PRE-INSTALL
+PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
post-install:
- @${CHOWN} ${USERS}:${GROUPS} ${DBDIR} ${STATEDIR} ${WWWDIR}
- @${CHOWN} ${WWWOWN} ${DBDIR}/cgi-tmp
- @${INSTALL_DATA} ${WRKSRC}/build/master/munin.conf \
- ${PREFIX}/etc/munin/munin.conf.sample
- @(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)
- @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
- @${CAT} ${PKGMESSAGE}
+ (cd ${WRKSRC}/build/doc; \
+ ${INSTALL_MAN} munin.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5; \
+ ${INSTALL_MAN} munin-cron.8 munin-graph.8 munin-html.8 munin-limits.8 munin-update.8 ${STAGEDIR}${MAN8PREFIX}/man/man8; \
+ )
+ (cd ${STAGEDIR}${ETCDIR}; for i in `find . -type f`; do mv $$i $$i.sample; done)
+ ${MV} ${STAGEDIR}${WWWDIR}/.htaccess ${STAGEDIR}${WWWDIR}/.htaccess.sample
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/munin-master/pkg-plist b/sysutils/munin-master/pkg-plist
index d671d0bc98b0..5a8e5a77edb4 100644
--- a/sysutils/munin-master/pkg-plist
+++ b/sysutils/munin-master/pkg-plist
@@ -1,40 +1,38 @@
bin/munin-check
bin/munin-cron
-@unexec if cmp -s %D/%%ETCDIR%%/munin.conf.sample %D/%%ETCDIR%%/munin.conf ; then rm -f %D/%%ETCDIR%%/munin.conf ; fi
-%%ETCDIR%%/munin.conf.sample
-@exec if [ ! -f %D/%%ETCDIR%%/munin.conf ] ; then cp -p %D/%%ETCDIR%%/munin.conf.sample %D/%%ETCDIR%%/munin.conf ; fi
-%%ETCDIR%%/static/definitions.html
-%%ETCDIR%%/static/dynazoom.html
-%%ETCDIR%%/static/favicon.ico
-%%ETCDIR%%/static/formatdate.js
-%%ETCDIR%%/static/logo-h.png
-%%ETCDIR%%/static/logo.png
-%%ETCDIR%%/static/querystring.js
-%%ETCDIR%%/static/style-1.2.css
-%%ETCDIR%%/static/style-new.css
-%%ETCDIR%%/static/style.css
-%%ETCDIR%%/static/zoom.js
-%%ETCDIR%%/templates/munin-comparison-day.tmpl
-%%ETCDIR%%/templates/munin-comparison-month.tmpl
-%%ETCDIR%%/templates/munin-comparison-week.tmpl
-%%ETCDIR%%/templates/munin-comparison-year.tmpl
-%%ETCDIR%%/templates/munin-categoryview.tmpl
-%%ETCDIR%%/templates/munin-dynazoom.tmpl
-%%ETCDIR%%/templates/munin-domainview.tmpl
-%%ETCDIR%%/templates/munin-nodeview.tmpl
-%%ETCDIR%%/templates/munin-overview.tmpl
-%%ETCDIR%%/templates/munin-problemview.tmpl
-%%ETCDIR%%/templates/munin-serviceview.tmpl
-%%ETCDIR%%/templates/partial/bottom_navigation.tmpl
-%%ETCDIR%%/templates/partial/footer.tmpl
-%%ETCDIR%%/templates/partial/generated_by.tmpl
-%%ETCDIR%%/templates/partial/head.tmpl
-%%ETCDIR%%/templates/partial/logo_navigation.tmpl
-%%ETCDIR%%/templates/partial/logo_navigation_comparison.tmpl
-%%ETCDIR%%/templates/partial/logo_navigation_problem.tmpl
-%%ETCDIR%%/templates/partial/logo_path.tmpl
-%%ETCDIR%%/templates/partial/navigation.tmpl
-%%ETCDIR%%/templates/partial/path.tmpl
+@sample %%ETCDIR%%/munin.conf.sample
+@sample %%ETCDIR%%/static/definitions.html.sample
+@sample %%ETCDIR%%/static/dynazoom.html.sample
+@sample %%ETCDIR%%/static/favicon.ico.sample
+@sample %%ETCDIR%%/static/formatdate.js.sample
+@sample %%ETCDIR%%/static/logo-h.png.sample
+@sample %%ETCDIR%%/static/logo.png.sample
+@sample %%ETCDIR%%/static/querystring.js.sample
+@sample %%ETCDIR%%/static/style-1.2.css.sample
+@sample %%ETCDIR%%/static/style-new.css.sample
+@sample %%ETCDIR%%/static/style.css.sample
+@sample %%ETCDIR%%/static/zoom.js.sample
+@sample %%ETCDIR%%/templates/munin-categoryview.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-comparison-day.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-comparison-month.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-comparison-week.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-comparison-year.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-domainview.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-dynazoom.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-nodeview.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-overview.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-problemview.tmpl.sample
+@sample %%ETCDIR%%/templates/munin-serviceview.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/bottom_navigation.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/footer.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/generated_by.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/head.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/logo_navigation.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/logo_navigation_comparison.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/logo_navigation_problem.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/logo_path.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/navigation.tmpl.sample
+@sample %%ETCDIR%%/templates/partial/path.tmpl.sample
%%SITE_PERL%%/Munin/Master/Config.pm
%%SITE_PERL%%/Munin/Master/GraphOld.pm
%%SITE_PERL%%/Munin/Master/Group.pm
@@ -50,6 +48,25 @@ bin/munin-cron
%%SITE_PERL%%/Munin/Master/UpdateWorker.pm
%%SITE_PERL%%/Munin/Master/Utils.pm
%%SITE_PERL%%/Munin/Master/Worker.pm
+man/man3/Munin::Master::Config.3.gz
+man/man3/Munin::Master::Group.3.gz
+man/man3/Munin::Master::GroupRepository.3.gz
+man/man3/Munin::Master::HTMLOld.3.gz
+man/man3/Munin::Master::Host.3.gz
+man/man3/Munin::Master::LimitsOld.3.gz
+man/man3/Munin::Master::Logger.3.gz
+man/man3/Munin::Master::Node.3.gz
+man/man3/Munin::Master::ProcessManager.3.gz
+man/man3/Munin::Master::Update.3.gz
+man/man3/Munin::Master::UpdateWorker.3.gz
+man/man3/Munin::Master::Utils.3.gz
+man/man3/Munin::Master::Worker.3.gz
+man/man5/munin.conf.5.gz
+man/man8/munin-cron.8.gz
+man/man8/munin-graph.8.gz
+man/man8/munin-html.8.gz
+man/man8/munin-limits.8.gz
+man/man8/munin-update.8.gz
%%DATADIR%%/DejaVuSans.ttf
%%DATADIR%%/DejaVuSansMono.ttf
%%DATADIR%%/munin-datafile2storable
@@ -58,19 +75,16 @@ bin/munin-cron
%%DATADIR%%/munin-limits
%%DATADIR%%/munin-storable2datafile
%%DATADIR%%/munin-update
-%%WWWDIR%%/.htaccess
www/cgi-bin/munin-cgi-graph
www/cgi-bin/munin-cgi-html
-@dirrmtry www/cgi-bin
-@dirrmtry %%WWWDIR%%
-@dirrmtry %%DATADIR%%
-@dirrm %%SITE_PERL%%/Munin/Master
-@dirrmtry %%SITE_PERL%%/Munin
+@sample %%WWWDIR%%/.htaccess.sample
+@dirrmtry %%ETCDIR%%/munin-conf.d
@dirrmtry %%ETCDIR%%/static
@dirrmtry %%ETCDIR%%/templates/partial
@dirrmtry %%ETCDIR%%/templates
-@exec mkdir -p %D/%%ETCDIR%%/munin-conf.d
-@dirrmtry %%ETCDIR%%/munin-conf.d
@dirrmtry %%ETCDIR%%
-@cwd /var
-@dirrmtry munin/cgi-tmp
+@dirrmtry %%SITE_PERL%%/Munin/Master
+@dirrmtry %%DATADIR%%
+@dirrmtry www/cgi-bin
+@dirrmtry(%%USER%%,%%GROUP%%,) %%WWWDIR%%
+@dirrmtry(%%WWWOWN%%,%%WWWGRP%%,) %%DBDIRNODE%%/cgi-tmp