mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 10:56:27 -04:00
- 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:
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
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= minimunin
|
||||
PORTVERSION= 0.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://erdgeist.org/arts/software/minimunin/
|
||||
|
||||
|
|
9
sysutils/minimunin/pkg-deinstall
Normal file
9
sysutils/minimunin/pkg-deinstall
Normal 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
|
|
@ -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"; ) \
|
||||
|
|
Loading…
Add table
Reference in a new issue