aboutsummaryrefslogtreecommitdiff
path: root/sysutils/munin-main
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-12-14 01:43:10 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-12-14 01:43:10 +0000
commitd1fe1cbc7c11aea833498ee115fe885fad59b5ba (patch)
tree4c41ab291f7080400f711fdaa6d10fe3e76dc001 /sysutils/munin-main
parent034f017174bf2e99f64a5f331f70797a651f8664 (diff)
downloadports-d1fe1cbc7c11aea833498ee115fe885fad59b5ba.tar.gz
ports-d1fe1cbc7c11aea833498ee115fe885fad59b5ba.zip
Notes
Diffstat (limited to 'sysutils/munin-main')
-rw-r--r--sysutils/munin-main/Makefile8
-rw-r--r--sysutils/munin-main/distinfo4
-rw-r--r--sysutils/munin-main/pkg-plist21
3 files changed, 30 insertions, 3 deletions
diff --git a/sysutils/munin-main/Makefile b/sysutils/munin-main/Makefile
index 343247fe5a36..8cb6cc8873f2 100644
--- a/sysutils/munin-main/Makefile
+++ b/sysutils/munin-main/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= munin
-PORTVERSION= 1.0.3
+PORTVERSION= 1.0.4
CATEGORIES= sysutils perl5
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= munin
@@ -44,6 +44,12 @@ pre-install:
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL
post-install:
+ @if [ ! -f ${PREFIX}/www/data/munin/style.css ]; then \
+ ${INSTALL_DATA} ${PREFIX}/etc/munin/templates/style.css ${PREFIX}/www/data/munin/style.css; \
+ fi
+ @if [ ! -f ${PREFIX}/www/data/munin/logo.png ]; then \
+ ${INSTALL_DATA} ${PREFIX}/etc/munin/templates/logo.png ${PREFIX}/www/data/munin/logo.png; \
+ fi
@${INSTALL_MAN} -C ${WRKSRC}/build/doc/munin.conf.5 ${PREFIX}/man/man5
@${INSTALL_MAN} -C ${WRKSRC}/build/doc/munin-cron.8 ${PREFIX}/man/man8
@${INSTALL_MAN} -C ${WRKSRC}/build/doc/munin-graph.8 ${PREFIX}/man/man8
diff --git a/sysutils/munin-main/distinfo b/sysutils/munin-main/distinfo
index a13f89708501..1db411157e37 100644
--- a/sysutils/munin-main/distinfo
+++ b/sysutils/munin-main/distinfo
@@ -1,2 +1,2 @@
-MD5 (munin_1.0.3.tar.gz) = 8114e4d716e0ec7ac70357a697af28cf
-SIZE (munin_1.0.3.tar.gz) = 214362
+MD5 (munin_1.0.4.tar.gz) = 00721181e1ff81be85ad89307457d998
+SIZE (munin_1.0.4.tar.gz) = 214902
diff --git a/sysutils/munin-main/pkg-plist b/sysutils/munin-main/pkg-plist
index a498e3827aee..e2242997fa46 100644
--- a/sysutils/munin-main/pkg-plist
+++ b/sysutils/munin-main/pkg-plist
@@ -1,4 +1,6 @@
bin/munin-cron
+@unexec if cmp -s %D/etc/munin/templates/style.css %D/www/data-dist/munin/style.css; then rm -f %D/www/data-dist/munin/style.css; fi
+@unexec if cmp -s %D/etc/munin/templates/logo.png %D/www/data-dist/munin/logo.png; then rm -f %D/www/data-dist/munin/logo.png; fi
etc/munin/munin.conf
etc/munin/templates/logo.png
etc/munin/templates/munin-domainview.tmpl
@@ -18,3 +20,22 @@ share/munin/munin-update
@unexec rmdir %D/share/munin 2>/dev/null || true
@dirrm etc/munin/templates
@unexec rmdir %D/etc/munin 2>/dev/null || true
+@unexec echo
+@unexec echo '********************************************************************'
+@unexec echo "If you want to *completely* remove munin-main, you have to"
+@unexec echo
+@unexec echo " rm -rf %D/var/munin/datafile %D/www/data/munin \\"
+@unexec echo " "`ls -d /usr/local/var/munin/* | grep -v plugin-state`" \\"
+@unexec if [ -f %D/etc/munin/munin.conf ]; then echo " %D/etc/munin/munin.conf \\"; fi
+@unexec if [ -d %D/etc/munin/templates ]; then echo " %D/etc/munin/templates \\"; fi
+@unexec echo " %D/etc/munin/munin-node.conf %D/etc/munin/plugins \\"
+@unexec echo " /var/log/munin"
+@unexec echo
+@unexec echo "If you have already deinstalled munin-node, you can also"
+@unexec echo
+@unexec echo " rmdir %D/etc/munin %D/var/munin"
+@unexec echo
+@unexec echo "These files and directories have to be left on the system because"
+@unexec echo "you may be performing an update. This process can't tell."
+@unexec echo '********************************************************************'
+@unexec echo