freebsd-ports/net/xorp/pkg-deinstall
Bruce M Simpson 967ce18b9b Merge a number of fixes for the XORP port:
Expand %%PREFIX%% in the rc script.
 Create the group 'xorp' when the package is installed.
 Fix the snmpd configure check and MIB module installation.
 Fix the pkg-plist.

Note that as the XORP automake install target does not adhere to
hier(7), it may be desirable to specify PREFIX when building and/or
installing the port.

PR:		ports/103879
Submitted by:	Benjamin Black <ben@layer8.net>
2006-10-05 17:01:12 +00:00

22 lines
330 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
PATH=/bin:/usr/sbin
if [ -z "${XORP_GROUP}" ]; then
XORP_GROUP=xorp
fi
case $2 in
POST-DEINSTALL)
if pw group show ${XORP_GROUP} 2>/dev/null
then
echo "Deleting group ${XORP_GROUP}..."
pw groupdel -n ${XORP_GROUP} 2>/dev/null
else
echo "Group ${XORP_GROUP} not found!"
fi
;;
esac