aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 13:37:11 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 14:27:11 +0000
commita732af5ee123c19c52b9254100c008b80798ecd8 (patch)
treec2302df9c7d88ef80ac314bc56971a2376d9df24
parent9636cde2213c259225e82563cead59721090a610 (diff)
downloadports-a732af5ee123c19c52b9254100c008b80798ecd8.tar.gz
ports-a732af5ee123c19c52b9254100c008b80798ecd8.zip
comms/aprsd: use pkg-message to show message on remove
-rw-r--r--comms/aprsd/Makefile4
-rw-r--r--comms/aprsd/files/pkg-deinstall.in8
-rw-r--r--comms/aprsd/files/pkg-message.in8
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
}
]