1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/mail/mimedefang/pkg-install
Daichi GOTO 6511cbbf06 update mail/mimedefang: 2.33 -> 2.34
PR:		53792
Submitted by:	Andrey V. Pevnev <andrey@mgul.ac.ru> (maintainer)
2003-06-27 04:19:24 +00:00

37 lines
678 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
QUARANTINEDIR=/var/spool/MD-Quarantine
case "$PKG_ACTION" in
POST-INSTALL)
if [ ! -d ${SPOOLDIR} ]; then
mkdir -p ${SPOOLDIR}
chown ${MAILUSER}:${MAILUSER} ${SPOOLDIR}
chmod 700 ${SPOOLDIR}
fi
if [ ! -d ${QUARANTINEDIR} ]; then
mkdir -p ${QUARANTINEDIR}
chown ${MAILUSER}:${MAILUSER} ${QUARANTINEDIR}
chmod 700 ${QUARANTINEDIR}
fi
;;
PRE-INSTALL|POST-DEINSTALL|DEINSTALL)
;;
*)
echo "usage: $0 <PKG_NAME> {PRE-INSTALL|POST-INSTALL|DEINSTALL|POST-DEINSTALL}" >&2
exit 1
;;
esac
exit 0