openbsd-ports/archivers/gtar/pkg/DEINSTALL

26 lines
602 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2002/08/10 23:48:38 nino 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