- fix typo on pkg-install [1]

- provide pkg-deinstall to clean up after deinstall

Submitted by:	maintainer [1]
Pointyhat to:	flo [1]
This commit is contained in:
Florian Smeets 2013-10-28 18:08:56 +00:00
parent a67a8e5b6e
commit 540d80ded1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331876
3 changed files with 11 additions and 1 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= minimunin
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://erdgeist.org/arts/software/minimunin/

View file

@ -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

View file

@ -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"; ) \