aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 14:20:35 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 14:27:13 +0000
commit88c8cb129858a8d8fd0382d40d46c176e6008174 (patch)
tree230258d023b8ccb591de2721213aa426bc559a79
parenta418a01b1f2af140f7cfc5b4c4dd7c57de9ff174 (diff)
downloadports-88c8cb129858a8d8fd0382d40d46c176e6008174.tar.gz
ports-88c8cb129858a8d8fd0382d40d46c176e6008174.zip
sysutils/freebsd-snapshot: use pkg-message to show message on remove
-rw-r--r--sysutils/freebsd-snapshot/Makefile4
-rw-r--r--sysutils/freebsd-snapshot/files/pkg-deinstall.in13
-rw-r--r--sysutils/freebsd-snapshot/files/pkg-message.in11
3 files changed, 13 insertions, 15 deletions
diff --git a/sysutils/freebsd-snapshot/Makefile b/sysutils/freebsd-snapshot/Makefile
index f721abcde137..e61b75dd5a25 100644
--- a/sysutils/freebsd-snapshot/Makefile
+++ b/sysutils/freebsd-snapshot/Makefile
@@ -1,6 +1,6 @@
PORTNAME= freebsd-snapshot
DISTVERSION= 20091208.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= https://people.freebsd.org/~rse/dist/
@@ -12,7 +12,7 @@ LICENSE= BSD2CLAUSE
NO_BUILD= yes
NO_ARCH= yes
-SUB_FILES= pkg-message pkg-deinstall
+SUB_FILES= pkg-message
PLIST_FILES= etc/amd.map.snap man/man8/periodic-snapshot.8.gz \
man/man8/snapshot.8.gz sbin/periodic-snapshot sbin/snapshot
diff --git a/sysutils/freebsd-snapshot/files/pkg-deinstall.in b/sysutils/freebsd-snapshot/files/pkg-deinstall.in
deleted file mode 100644
index ad85fb081528..000000000000
--- a/sysutils/freebsd-snapshot/files/pkg-deinstall.in
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-case $2 in
- POST-DEINSTALL)
- echo "If you completly remove this port, do not forget"
- echo "then remove lines included by you in:"
- echo ""
- echo "crontab"
- echo "periodic.conf"
- echo "rc.conf"
- echo ""
- ;;
-esac
diff --git a/sysutils/freebsd-snapshot/files/pkg-message.in b/sysutils/freebsd-snapshot/files/pkg-message.in
index a98d6b65f5ad..6abd7b58a218 100644
--- a/sysutils/freebsd-snapshot/files/pkg-message.in
+++ b/sysutils/freebsd-snapshot/files/pkg-message.in
@@ -28,5 +28,16 @@ Edit your rc.conf and include this:
amd_enable="YES"
amd_flags="-a /.am -c 1800 -w 60 -l syslog /snap %%PREFIX%%/etc/amd.map.snap"
EOM
+},
+{ type: remove
+ message: <<EOM
+If you completly remove this port, do not forget
+then remove lines included by you in:
+
+crontab
+periodic.conf
+rc.conf
+
+EOM
}
]