freebsd-ports/net/smokeping/pkg-deinstall
Jun Kuriyama e20d94225a Add smokeping UID and GID if not exist and use them to be invoked as.
Move configuration file to $PREFIX/etc/smokeping.
Use $PREFIX/var/smokeping for PID file and generated data.
2002-04-01 13:47:18 +00:00

24 lines
656 B
Bash

#!/bin/sh
# $FreeBSD$
#
if [ -f ${PKG_PREFIX}/var/smokeping/smokeping.pid ]; then
if [ -x ${PKG_PREFIX}/etc/rc.d/smokeping.sh ]; then
${PKG_PREFIX}/etc/rc.d/smokeping.sh stop > /dev/null
fi
rm ${PKG_PREFIX}/var/smokeping/smokeping.pid
fi
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
if [ -d ${PKG_PREFIX}/smokeping ]; then
echo "----------------------------------------------------------------"
echo "To delete your custom SmokePing configuration and all collected"
echo "data permanently, use 'rm -R ${PKG_PREFIX}/smokeping'"
echo "----------------------------------------------------------------"
fi
exit 0