ports/74166: Update port: sysutils/munin-node 1.0.3 -> 1.0.4

Lupe Christoph lupe at lupe-christoph.de
Fri Nov 26 07:30:34 UTC 2004


The following reply was made to PR ports/74166; it has been noted by GNATS.

From: Lupe Christoph <lupe at lupe-christoph.de>
To: FreeBSD-gnats-submit at FreeBSD.org
Cc: Sergey Matveychuk <sem at FreeBSD.org>
Subject: Re: ports/74166: Update port: sysutils/munin-node 1.0.3 -> 1.0.4
Date: Fri, 26 Nov 2004 08:22:59 +0100

 Third version of the update patch. Now it has a deinstall message.
 Previously, only munin-node had this, and for both ports. The deinstall
 message in munin-node gets corrected by a correspondingly changed update
 patch. Both messages refer to the other port for common parts.
 
 Lupe Christoph
 --- munin-main-1.0.4.patch begins here ---
 diff -ruN /usr/ports/sysutils/munin-main/Makefile munin-main-1.0.4/Makefile
 --- /usr/ports/sysutils/munin-main/Makefile	Thu Nov 18 06:56:53 2004
 +++ munin-main-1.0.4/Makefile	Wed Nov 24 23:03:19 2004
 @@ -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 @@
  	@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 -ruN /usr/ports/sysutils/munin-main/distinfo munin-main-1.0.4/distinfo
 --- /usr/ports/sysutils/munin-main/distinfo	Thu Nov 18 06:56:53 2004
 +++ munin-main-1.0.4/distinfo	Wed Nov 24 22:59:37 2004
 @@ -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 -ruN /usr/ports/sysutils/munin-main/pkg-plist munin-main-1.0.4/pkg-plist
 --- /usr/ports/sysutils/munin-main/pkg-plist	Sat Jun 12 19:41:59 2004
 +++ munin-main-1.0.4/pkg-plist	Fri Nov 26 07:56:37 2004
 @@ -1,4 +1,6 @@
  bin/munin-cron
 + at 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
 + at 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 @@
  @unexec rmdir %D/share/munin 2>/dev/null || true
  @dirrm etc/munin/templates
  @unexec rmdir %D/etc/munin 2>/dev/null || true
 + at unexec echo
 + at unexec echo '********************************************************************'
 + at unexec echo "If you want to *completely* remove munin-main, you have to"
 + at unexec echo
 + at unexec echo "    rm -rf %D/var/munin/datafile %D/www/data/munin \\"
 + at unexec echo "          "`ls -d /usr/local/var/munin/* | grep -v plugin-state`" \\"
 + at unexec if [ -f %D/etc/munin/munin.conf ]; then echo "           %D/etc/munin/munin.conf \\"; fi
 + at unexec if [ -d %D/etc/munin/templates ]; then echo "           %D/etc/munin/templates \\"; fi
 + at unexec echo "           %D/etc/munin/munin-node.conf %D/etc/munin/plugins \\"
 + at unexec echo "           /var/log/munin"
 + at unexec echo
 + at unexec echo "If you have already deinstalled munin-node, you can also"
 + at unexec echo
 + at unexec echo "    rmdir %D/etc/munin %D/var/munin"
 + at unexec echo
 + at unexec echo "These files and directories have to be left on the system because"
 + at unexec echo "you may be performing an update. This process can't tell."
 + at unexec echo '********************************************************************'
 + at unexec echo
  -- munin-main-1.0.4.patch ends here ---
 -- 
 | lupe at lupe-christoph.de       |           http://www.lupe-christoph.de/ |
 | "... putting a mail server on the Internet without filtering is like   |
 | covering yourself with barbecue sauce and breaking into the Charity    |
 | Home for Badgers with Rabies.                            Michael Lucas |



More information about the freebsd-ports-bugs mailing list