freebsd-ports/mail/mimedefang/pkg-install
Yen-Ming Lee fcbc3a180a update to mimedefang-2.30
PR:		ports/48287
Submitted by:	Andrey V. Pevnev <andrey@mgul.ac.ru>
2003-02-15 08:51:00 +00:00

30 lines
493 B
Bash

#!/bin/sh
[ $# != 2 ] && exit 1
[ -z "${PKG_PREFIX}" ] && exit 1
[ -n "${BATCH}" ] && exit 0
PKG_NAME=$1
PKG_ACTION=$2
MAILUSER=mailnull
SPOOLDIR=/var/spool/MIMEDefang
case "$PKG_ACTION" in
POST-INSTALL)
if [ ! -d ${SPOOLDIR} ]; then
mkdir -p ${SPOOLDIR}
chown ${MAILUSER}:${MAILUSER} ${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