freebsd-ports/mail/majordomo/pkg-deinstall
Anders Nordby 8a3af76424 Make port build, install and run as package.
Give warning upon installing, majordomo is legacy.

PR:		104686
Submitted by:	erwin, anders
2007-03-01 20:56:42 +00:00

17 lines
428 B
Bash

#!/bin/sh
# $FreeBSD$
MAJORDOMOUSER=majordom
MAJORDOMOGROUP=majordom
case $2 in
POST-DEINSTALL)
if pw groupshow "${MAJORDOMOGROUP}" 2>/dev/null 1>&2; then
echo "To delete ${MAJORDOMOGROUP} group permanently, use 'pw groupdel \"${MAJORDOMOGROUP}\"'"
fi
if pw usershow "${MAJORDOMOUSER}" 2>/dev/null 1>&2; then
echo "To delete ${MAJORDOMOUSER} user permanently, use 'pw userdel \"${MAJORDOMOUSER}\"'"
fi
;;
esac
exit 0