1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net/siproxd/pkg-deinstall
Sergey Matveychuk 3662c512b5 - Respect PREFIX
PR:		ports/87661
Submitted by:	maintainer
2005-10-20 16:54:48 +00:00

12 lines
233 B
Bash

#!/bin/sh
SIPROXD_HOME=${PKG_PREFIX}/siproxd
SIPROXD_PID=${SIPROXD_HOME}/siproxd.pid
case $2 in
DEINSTALL)
[ -r ${SIPROXD_PID} ] && kill `cat ${SIPROXD_PID}`
rm -f ${SIPROXD_HOME}/* && rmdir ${SIPROXD_HOME}
;;
esac