- Use USE_RC_SUBR / USE_RCORDER for amavis.sh. - Use SUB_FILES / SUB_LIST for pkg-* files. - Add new MILTER option. - Probably some other fixes I've forgot. PR: ports/82423 Reported by: Petr Rehor <prehor@gmail.com> Submitted by: maintainer
28 lines
633 B
Bash
28 lines
633 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
USER=%%AMAVISUSER%%
|
|
GROUP=%%AMAVISGROUP%%
|
|
DIR=%%AMAVISDIR%%
|
|
QUARANTINE=%%AMAVISQUARANTINE%%
|
|
|
|
if [ "$2" = "POST-DEINSTALL" ]; then
|
|
|
|
if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then
|
|
echo "You should manually remove the \"${GROUP}\" group."
|
|
fi
|
|
|
|
if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then
|
|
echo "You should manually remove the \"${USER}\" user."
|
|
fi
|
|
|
|
if [ -e ${DIR} ]; then
|
|
echo "You should manually remove the \"${DIR}\" directory."
|
|
fi
|
|
|
|
if [ -e ${QUARANTINE} ]; then
|
|
echo "You should manually remove the \"${QUARANTINE}\" directory."
|
|
fi
|
|
fi
|