git: 6b44583fe4ce - main - irc/ircproxy: Remove useless pkg-deinstall
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Mar 2024 13:51:02 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6b44583fe4ce656d090b3b99509d491d343752b0
commit 6b44583fe4ce656d090b3b99509d491d343752b0
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-03-02 13:48:09 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-03-02 13:50:02 +0000
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.
---
irc/ircproxy/Makefile | 4 +---
irc/ircproxy/files/pkg-deinstall.in | 40 -------------------------------------
2 files changed, 1 insertion(+), 43 deletions(-)
diff --git a/irc/ircproxy/Makefile b/irc/ircproxy/Makefile
index e2a2428f87aa..1cf0df5f0e49 100644
--- a/irc/ircproxy/Makefile
+++ b/irc/ircproxy/Makefile
@@ -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
diff --git a/irc/ircproxy/files/pkg-deinstall.in b/irc/ircproxy/files/pkg-deinstall.in
deleted file mode 100644
index 1ea52d8dba1f..000000000000
--- a/irc/ircproxy/files/pkg-deinstall.in
+++ /dev/null
@@ -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