Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2013 18:08:57 +0000 (UTC)
From:      Florian Smeets <flo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r331876 - head/sysutils/minimunin
Message-ID:  <201310281808.r9SI8vFk065697@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: flo
Date: Mon Oct 28 18:08:56 2013
New Revision: 331876
URL: http://svnweb.freebsd.org/changeset/ports/331876

Log:
  - fix typo on pkg-install [1]
  - provide pkg-deinstall to clean up after deinstall
  
  Submitted by:	maintainer [1]
  Pointyhat to:	flo [1]

Added:
  head/sysutils/minimunin/pkg-deinstall   (contents, props changed)
Modified:
  head/sysutils/minimunin/Makefile
  head/sysutils/minimunin/pkg-install

Modified: head/sysutils/minimunin/Makefile
==============================================================================
--- head/sysutils/minimunin/Makefile	Mon Oct 28 17:53:31 2013	(r331875)
+++ head/sysutils/minimunin/Makefile	Mon Oct 28 18:08:56 2013	(r331876)
@@ -3,6 +3,7 @@
 
 PORTNAME=	minimunin
 PORTVERSION=	0.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://erdgeist.org/arts/software/minimunin/
 

Added: head/sysutils/minimunin/pkg-deinstall
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/minimunin/pkg-deinstall	Mon Oct 28 18:08:56 2013	(r331876)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$2" = "DEINSTALL" ]; then
+	echo "updating /etc/services"
+	cp /etc/services /tmp/services
+	grep -v '^munin           4949/tcp   #munin node$' \
+	/tmp/services > /etc/services
+	rm /tmp/services
+fi

Modified: head/sysutils/minimunin/pkg-install
==============================================================================
--- head/sysutils/minimunin/pkg-install	Mon Oct 28 17:53:31 2013	(r331875)
+++ head/sysutils/minimunin/pkg-install	Mon Oct 28 18:08:56 2013	(r331876)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ "$2" = POSTINSTALL ]; then
+if [ "$2" = "POST-INSTALL" ]; then
 	echo "updating /etc/services"
 	(grep -q '^munin ' /etc/services || \
 	echo "munin           4949/tcp   #munin node"; ) \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310281808.r9SI8vFk065697>