summaryrefslogtreecommitdiffstats
path: root/sysutils/bsdsar/pkg-deinstall
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-01-22 04:47:23 +0000
committerknu <knu@FreeBSD.org>2002-01-22 04:47:23 +0000
commit0c8e05a86019de1ac0dc1ee640fa772066a58327 (patch)
tree8f8bc7dd36f93daf1b05727271c61fc685d9d29b /sysutils/bsdsar/pkg-deinstall
parent1bed3f7c612b1e5e6202664549917a45f1533410 (diff)
downloadFreeBSD-ports-0c8e05a86019de1ac0dc1ee640fa772066a58327.zip
FreeBSD-ports-0c8e05a86019de1ac0dc1ee640fa772066a58327.tar.gz
Add bsdsar, System Activity Reporter for FreeBSD.
PR: ports/33702 Submitted by: Yen-Ming Lee <leeym@utopia.leeym.com> Reviewed and fixed by: knu
Diffstat (limited to 'sysutils/bsdsar/pkg-deinstall')
-rw-r--r--sysutils/bsdsar/pkg-deinstall28
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/bsdsar/pkg-deinstall b/sysutils/bsdsar/pkg-deinstall
new file mode 100644
index 0000000..c25cf65
--- /dev/null
+++ b/sysutils/bsdsar/pkg-deinstall
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+
+# Verify proper execution
+#
+if [ $# -ne 2 ]; then
+ echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2
+ exit 1
+fi
+
+# Verify/process the command
+#
+case $2 in
+ DEINSTALL)
+ cat /etc/crontab | /usr/bin/sed -e '/bsdsar/d' > /tmp/crontab.bsdsar
+ mv /tmp/crontab.bsdsar /etc/crontab
+ ;;
+ POST-DEINSTALL)
+ : nothing to post-deinstall for this port
+ ;;
+ *)
+ echo "usage: $0 distname { DEINSTALL | POST-DEINSTALL }" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
OpenPOWER on IntegriCloud