git: a732af5ee123 - main - comms/aprsd: use pkg-message to show message on remove

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Wed, 27 Jul 2022 14:27:17 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a732af5ee123c19c52b9254100c008b80798ecd8

commit a732af5ee123c19c52b9254100c008b80798ecd8
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-07-27 13:37:11 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-07-27 14:27:11 +0000

    comms/aprsd: use pkg-message to show message on remove
---
 comms/aprsd/Makefile               | 4 ++--
 comms/aprsd/files/pkg-deinstall.in | 8 --------
 comms/aprsd/files/pkg-message.in   | 8 ++++++++
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile
index 9e51851e9b3f..feb0f8efcbc5 100644
--- a/comms/aprsd/Makefile
+++ b/comms/aprsd/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	aprsd
 PORTVERSION=	2.2.515
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	comms hamradio
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/2.2.5-15
 DISTNAME=	aprsd-2.2.5-15
@@ -13,7 +13,7 @@ LICENSE=	GPLv2
 BROKEN_FreeBSD_12_powerpc64=	fails to link on powerpc64 elfv1: httpserver.o:(.text+0x1074): undefined reference to `convertUpTime(int)'
 
 GNU_CONFIGURE=	yes
-SUB_FILES=	pkg-message pkg-deinstall
+SUB_FILES=	pkg-message
 USE_RC_SUBR=	aprsd
 
 USERS=	aprsd tnc
diff --git a/comms/aprsd/files/pkg-deinstall.in b/comms/aprsd/files/pkg-deinstall.in
deleted file mode 100644
index ce7c22ec7e39..000000000000
--- a/comms/aprsd/files/pkg-deinstall.in
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-cat<<EOF
-If you really want to remove this package completely
-remove what is left in %%LOCALBASE%%/etc/aprsd /var/log/aprsd.
-Also be sure to remove user and groups aprsd and tnc 
-and remember to remove aprsd from dialer group.
-EOF
diff --git a/comms/aprsd/files/pkg-message.in b/comms/aprsd/files/pkg-message.in
index d4272c7fdf0f..c4cf658ce2a9 100644
--- a/comms/aprsd/files/pkg-message.in
+++ b/comms/aprsd/files/pkg-message.in
@@ -9,5 +9,13 @@ logs are kept in /var/log/aprsd
 To enable aprsd you need to add: aprsd_enable="YES" to /etc/rc.conf
 to run aprsd as UID aprsd   add: aprsd_root="NO" to /etc/rc.conf
 EOM
+},
+{ type: remove
+  message: <<EOM
+If you really want to remove this package completely
+remove what is left in %%LOCALBASE%%/etc/aprsd /var/log/aprsd.
+Also be sure to remove user and groups aprsd and tnc 
+and remember to remove aprsd from dialer group.
+EOM
 }
 ]