openbsd-ports/archivers/gtar/pkg/DEINSTALL
2000-07-19 09:31:17 +00:00

26 lines
600 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2000/07/19 09:31:17 brad Exp $
#
# gtar de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
if [ X`readlink /etc/rmt` = X${PREFIX}/libexec/grmt ]; then
rm -f /etc/rmt
echo
echo "+---------------"
echo "| You should reset the /etc/rmt link to whatever it was
echo "| before gtar was installed, perhaps /usr/sbin/rmt
echo "| Try these steps as root:"
echo "|"
echo "| cd /etc"
echo "| ln -s /usr/sbin/rmt"
echo "|"
echo "+---------------"
echo
fi
exit 0