summaryrefslogtreecommitdiff
path: root/sysutils/cbsd/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 16:18:56 +0200
committerBaptiste Daroussin <bapt@FreeBSD.org>2022-07-27 16:27:13 +0200
commita418a01b1f2af140f7cfc5b4c4dd7c57de9ff174 (patch)
tree6c3f78bef614c80f664393fc32c591f15e05c4fb /sysutils/cbsd/files
parentsecurity/pks: use pkg-message to show message on remove (diff)
sysutils/cbsd: use pkg-message to show message on remove
Diffstat (limited to 'sysutils/cbsd/files')
-rw-r--r--sysutils/cbsd/files/pkg-deinstall.in23
-rw-r--r--sysutils/cbsd/files/pkg-message.in22
2 files changed, 22 insertions, 23 deletions
diff --git a/sysutils/cbsd/files/pkg-deinstall.in b/sysutils/cbsd/files/pkg-deinstall.in
deleted file mode 100644
index 4bf3facc595b..000000000000
--- a/sysutils/cbsd/files/pkg-deinstall.in
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-case $2 in
-POST-DEINSTALL)
- echo
- echo "The cbsd package has been deleted."
- echo
- echo "If you are *not* upgrading this package, you may want to"
- echo "remove the following to complete the deinstallation process:"
- echo
- echo "1) Records in /etc/rc.conf"
- echo
- echo " cbsdrsyncd_enable=\"YES\""
- echo " cbsdrsyncd_flags=\"--config=\$workdir/etc/rsyncd.conf\""
- echo " cbsdd_enable=\"YES\""
- echo " devfs_load_rulesets=\"YES\""
- echo " cbsd_workdir=\"\$workdir\""
- echo " rcshutdown_timeout=\"900\""
- echo " sshd_flags=\"-oPort=22222\""
- echo
- echo "2) Remove %%LOCALBASE%%/etc/sudoers.d/cbsd_sudoers"
- echo
- ;;
-esac
diff --git a/sysutils/cbsd/files/pkg-message.in b/sysutils/cbsd/files/pkg-message.in
index e1ddcadd7bf4..d78189ebe990 100644
--- a/sysutils/cbsd/files/pkg-message.in
+++ b/sysutils/cbsd/files/pkg-message.in
@@ -13,5 +13,27 @@ For upgrading an existing installation, run:
cbsd initenv
EOM
+},
+{ type: remove
+ message: <<EOM
+
+The cbsd package has been deleted."
+
+If you are *not* upgrading this package, you may want to"
+remove the following to complete the deinstallation process:"
+
+1) Records in /etc/rc.conf"
+
+ cbsdrsyncd_enable="YES"
+ cbsdrsyncd_flags="--config=\$workdir/etc/rsyncd.conf"
+ cbsdd_enable="YES"
+ devfs_load_rulesets="YES"
+ cbsd_workdir="$workdir"
+ rcshutdown_timeout="900"
+ sshd_flags="-oPort=22222"
+
+2) Remove %%LOCALBASE%%/etc/sudoers.d/cbsd_sudoers
+
+EOM
}
]