freebsd-ports/sysutils/bacula-server/pkg-deinstall.client
Lars Koeller df365f395d o) Commit changes necessary to get a working -server, -client split of the
port after repro-copy of bacula -> bacula-server.
2004-11-30 19:49:39 +00:00

19 lines
477 B
Bash

#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin
TMPFILE=/tmp/services-$RANDOM-$$
if [ -z "${BACULA_DIR}" ]; then
BACULA_DIR=/var/db/bacula
fi
case "$2" in
"DEINSTALL")
# Delete entries in /etc/services
sed -e '/# Bacula port start/,/# Bacule port end/{' \
-e 'd' \
-e '}' /etc/services > $TMPFILE
mv -f $TMPFILE /etc/services
echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port"
;;
esac