freebsd-ports/net-mgmt/flow-tools-ng/files/pkg-deinstall.in
Stanislav Sedov 85d740416f - Add a port for flow-tools fork project which is aimed to be
the flow-tools replacement. Volodymyr Kostyrko has kindly
  agreed to maintain this.

  WWW: http://code.google.com/p/flow-tools/

PR:		ports/126252
Submitted by:	Tomoyuki Sakurai <cherry@trombik.org>
2008-11-16 22:36:40 +00:00

37 lines
801 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin
FLOW_CAPTURE_SPOOL="%%FLOW_CAPTURE_SPOOL%%"
FLOW_CAPTURE_USER="%%FLOW_CAPTURE_USER%%"
FLOW_CAPTURE_GROUP="%%FLOW_CAPTURE_GROUP%%"
FLOW_CAPTURE_PIDDIR="%%FLOW_CAPTURE_PIDDIR%%"
post-deinstall() {
rmdir ${FLOW_CAPTURE_SPOOL} > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "WARNING: If you will NOT use this package anymore, please"
echo " remove the following directory manually:"
echo " ${FLOW_CAPTURE_SPOOL}"
echo
echo "Also flow-tools related user accounts and groups were not"
echo "removed (${FLOW_CAPTURE_USER}:${FLOW_CAPTURE_GROUP})."
echo "Do it manually, if needed."
echo
fi
#
# Remove pid directory
#
rm -rf ${FLOW_CAPTURE_PIDDIR} > /dev/null 2>&1
}
case $2 in
POST-DEINSTALL)
post-deinstall
;;
esac