freebsd-ports/www/campsite/files/pkg-deinstall.in
Pav Lucistnik 6b36b7e80e New port: www/campsite - The free and open multilingual web publishing tool for
news sites

PR:		ports/89243
Submitted by:	Ondra Koutek <koutek@o-k.cz>
2005-11-19 20:48:03 +00:00

21 lines
521 B
Bash

#! /bin/sh
#
PATH=/bin:/usr/bin:/usr/sbin
case $2 in
DEINSTALL)
echo "---> Starting deinstall script:"
if /usr/bin/crontab -u root -l | \
/usr/bin/diff - %%PREFIX%%/campsite/etc/crontab.in >/dev/null 2>&1 ; then
echo "---> Zeroing crontab for \"root\""
/usr/bin/crontab -u root /dev/null
else
echo "---> Crontab for \"root\" not removed: please deinstall"
echo "---> manually if you no-longer wish to use Campsite. eg:"
echo "---> /usr/bin/crontab -u root -r"
fi
esac