NetXMS is new and rapidly developing monitoring system, released under GPL2 license. It can be used for monitoring entire IT infrastructure, starting with SNMP-capable hardware (like switches and routers) and ending with applications on your servers. NetXMS is an extremely reliable and powerful monitoring system, enabling you to improve your network availability and service levels. WWW: http://www.netxms.org/ PR: ports/114495 Submitted by: samflanker@gmail.com
35 lines
616 B
Bash
35 lines
616 B
Bash
#! /bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
PATH=/bin:/usr/sbin
|
|
TSHOME=${PKG_PREFIX}/share/netxms
|
|
|
|
USER=netxms
|
|
GROUP=${USER}
|
|
|
|
case "$2" in
|
|
POST-DEINSTALL)
|
|
if pw group show "${GROUP}" 2>/dev/null; then
|
|
if pw groupdel ${GROUP}; then
|
|
echo "Removed group \"${GROUP}\"."
|
|
else
|
|
echo "Removing group \"${GROUP}\" failed..."
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "Group \"${GROUP}\" doesn't exist!"
|
|
fi
|
|
|
|
if pw user show "${USER}" 2>/dev/null; then
|
|
if pw userdel ${USER}; then
|
|
echo "Removed user \"${USER}\"."
|
|
else
|
|
echo "Removing user \"${USER}\" failed..."
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "User \"${USER}\" doesn't exist!"
|
|
fi
|
|
;;
|
|
esac
|