freebsd-ports/sysutils/bsdsar/pkg-deinstall
Akinori MUSHA b733011372 Add bsdsar, System Activity Reporter for FreeBSD.
PR:		ports/33702
Submitted by:	Yen-Ming Lee <leeym@utopia.leeym.com>
Reviewed and fixed by:	knu
2002-01-22 04:47:23 +00:00

28 lines
515 B
Bash

#!/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