#!/bin/sh -
#
# $FreeBSD: ports/irc/bitlbee/files/pkg-deinstall.in,v 1.1 2008/05/19 16:10:14 brix Exp $
#

BITLBEEUSER=bitlbee
BITLBEEGROUP=bitlbee

if [ "$2" = "POST-DEINSTALL" ]; then
  if /usr/sbin/pw group show "${BITLBEEGROUP}" 2>&1 >/dev/null; then
    echo "You should manually remove the \"${BITLBEEGROUP}\" group."
  fi

  if /usr/sbin/pw user show "${BITLBEEUSER}" 2>&1 >/dev/null; then
    echo "You should manually remove the \"${BITLBEEUSER}\" user."
  fi
fi
