irc/ircproxy: Remove useless pkg-deinstall
The "you need to remove users" message is shown automatically. We also don't shutdown rc services during deinstall/upgrade.
This commit is contained in:
parent
d3720279f2
commit
6b44583fe4
2 changed files with 1 additions and 43 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= ircproxy
|
||||
DISTVERSION= 1.3.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= irc
|
||||
MASTER_SITES= https://codeberg.org/BSDforge/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
|
||||
|
||||
|
@ -16,9 +17,6 @@ USES= autoreconf localbase:ldflags
|
|||
GNU_CONFIGURE= yes
|
||||
LDFLAGS+= -lcrypto
|
||||
|
||||
SUB_FILES= pkg-deinstall
|
||||
SUB_LIST= IRC_USR=${USERS} IRC_GRP=${GROUPS}
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USERS= ircproxyd
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $2 in
|
||||
POST-DEINSTALL)
|
||||
cat <<EOMSG
|
||||
|
||||
Note:
|
||||
The ircproxy related user accounts and groups were not removed.
|
||||
|
||||
To remove the %%IRC_USR%% user and the %%IRC_GRP%% group which were
|
||||
created by a default installation of this package, run:
|
||||
|
||||
# pw groupdel %%IRC_GRP%%
|
||||
# pw userdel %%IRC_USR%%
|
||||
|
||||
EOMSG
|
||||
|
||||
PIDFILE="/var/run/ircproxyd.pid"
|
||||
|
||||
if [ -f $PIDFILE ] && [ -r $PIDFILE ] ; then
|
||||
PID=`cat "$PIDFILE"`
|
||||
ps -p "$PID" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
for count in 1 2 3 4 5 6 7 8 9 10; do
|
||||
if [ $count -ge 5 ]; then
|
||||
kill -KILL "$PID" || break
|
||||
break
|
||||
fi
|
||||
kill -TERM "$PID" || break
|
||||
sleep 2
|
||||
ps -p "$PID" >/dev/null 2>&1
|
||||
if [ ! $? -eq 0 ]; then
|
||||
break;
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
echo
|
||||
;;
|
||||
esac
|
Loading…
Reference in a new issue