1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/mail/biffer/pkg-deinstall

15 lines
416 B
Plaintext
Raw Normal View History

#!/bin/sh
if [ x$2 != xDEINSTALL ]; then
exit
fi
echo "Removing biffer from /etc/services ..."
cp /etc/services /etc/services.bak
egrep -v '^biffer' /etc/services.bak > /etc/services
echo "Removing biffer and biffer_comsat from /etc/inetd.conf ..."
cp /etc/inetd.conf /etc/inetd.conf.bak
egrep -v '^biffer' /etc/inetd.conf.bak | egrep -v \
'^comsat[[:space:]]+.*[[:space:]]+biffer_comsat' > /etc/inetd.conf