2002-07-11 22:52:31 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2002-07-12 01:31:41 -04:00
|
|
|
if [ -n "${PACKAGE_BUILDING}" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2002-07-11 22:52:31 -04:00
|
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
USER=sfs
|
|
|
|
GROUP=sfs
|
2002-07-12 01:31:41 -04:00
|
|
|
PW=/usr/sbin/pw
|
2002-07-11 22:52:31 -04:00
|
|
|
|
|
|
|
SFSDIR=/var/spool/sfs
|
|
|
|
|
2002-07-12 01:31:41 -04:00
|
|
|
if ${PW} groupshow "${GROUP}" >/dev/null 2>&1; then
|
2002-07-11 22:52:31 -04:00
|
|
|
echo "If you're done with SFS permanently, delete the sfs group manually: pw groupdel ${GROUP}" | fmt
|
|
|
|
fi
|
|
|
|
|
2002-07-12 01:31:41 -04:00
|
|
|
if ${PW} usershow "${USER}" >/dev/null 2>&1; then
|
2002-07-11 22:52:31 -04:00
|
|
|
echo
|
|
|
|
echo "If you're done with SFS permanently, delete the sfs user manually: pw userdel ${USER}" | fmt
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$PKG_PREFIX/etc/sfs" ] && ! rmdir $PKG_PREFIX/etc/sfs 2>/dev/null; then
|
|
|
|
echo
|
|
|
|
echo "You may wish to investigate the contents of $PKG_PREFIX/etc/sfs and delete the directory if you're done with SFS permanently." | fmt
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$SFSDIR" ] && ! rmdir $SFSDIR 2>/dev/null; then
|
|
|
|
echo
|
|
|
|
echo "You may wish to investigate the contents of $SFSDIR and delete the directory if you're done with SFS permanently." | fmt
|
|
|
|
fi
|