freebsd-ports/net-mgmt/ourmon/pkg-deinstall
Olli Hauer d65f36bb2a - set IS_INTERACTIVE=yes
- use %%WWWDIR%% macro instead hard coded path
- support apache versions > 13
- make sure we use the rc script from port
- use "env" in generated crontab
- make sure crontab entries are removed during deinstall
- sort pkg-plist (use genplist)
- try to uninstall clean

PR:		ports/158779
Submitted by:	ohauer
Approved by:	<manos _at_ cs.pdx.edu> (maintainer)
2011-07-18 21:21:09 +00:00

12 lines
252 B
Bash

#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin
CRONTAB=/etc/crontab
if [ "$2" = "DEINSTALL" ]; then
# delete entries in crontab
sed -i "" -e '/# == ourmon port cron start/,/# == ourmon port cron end/{' \
-e 'd' \
-e '}' ${CRONTAB}
fi