freebsd-ports/mail/mimedefang/pkg-install
Ying-Chieh Liao 4df11be408 add mimedefang 2.11
Milter based anti-spam and anti-virus filtering program

PR:		38077
Submitted by:	Andrey V. Pevnev <andrey@mgul.ac.ru>
2002-05-23 19:20:58 +00:00

30 lines
469 B
Bash

#!/bin/sh
[ $# != 2 ] && exit 1
[ -z "${PKG_PREFIX}" ] && exit 1
[ -n "${BATCH}" ] && exit 0
PKG_NAME=$1
PKG_ACTION=$2
SPOOLDIR=/var/spool/MIMEDefang
case "$PKG_ACTION" in
POST-INSTALL)
if [ ! -d ${SPOOLDIR} ]; then
mkdir -p ${SPOOLDIR}
chown mailnull:mailnull ${SPOOLDIR}
chmod 700 ${SPOOLDIR}
fi
;;
PRE-INSTALL|POST-DEINSTALL|DEINSTALL)
;;
*)
echo "usage: $0 <PKG_NAME> {PRE-INSTALL|POST-INSTALL|DEINSTALL|POST-DEINSTALL}" >&2
exit 1
;;
esac
exit 0