freebsd-ports/security/sancp/pkg-deinstall
Pav Lucistnik a17d44ae20 - Update MASTER_SITES
- Add two vendor patches
- Fix config file handling
- Use SUB_FILES for pkg-message and better of USE_RC_SUBR

PR:		ports/89178
Submitted by:	Paul Schmehl <pauls@utdallas.edu> (maintainer)
2005-11-17 18:13:11 +00:00

28 lines
526 B
Bash

#!/bin/sh
PATH=/bin:/usr/sbin
USER=sancp
GROUP=${USER}
LOG_DIR=/var/log/sancp
# Remove the log directory
if [ -d ${LOG_DIR} ];
then
rmdir ${LOG_DIR} >/dev/null 2>&1;
fi
if pw user show "${USER}" >/dev/null 2>&1; then
if ! pw userdel ${USER} ;
then
echo "Unable to remove user: ${USER}, remove it manually"
fi
fi
if pw group show "${GROUP}" >/dev/null 2>&1; then
if ! pw groupdel ${GROUP} ;
then
echo "Unable to remove group: ${GROUP}, remove it manually"
fi
fi