#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2004/03/11 20:33:11 lebel Exp $
#
# freebsd_lib de-installation

set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}/emul/freebsd

if [ -L /emul/freebsd -a x`readlink /emul/freebsd` = x"$PREFIX" ]; then
    rm -f /emul/freebsd
fi

exit 0
