diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-23 19:20:58 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-23 19:20:58 +0000 |
commit | 4df11be408c38b864a3ae0ceda174dbaf28ceee7 (patch) | |
tree | 7738ea1d2045812a3b3e478e84419ffb5a96f152 /mail/mimedefang/pkg-install | |
parent | b7280bf91d76ef501ccdfec21c94523d6c0eaf93 (diff) | |
download | ports-4df11be408c38b864a3ae0ceda174dbaf28ceee7.tar.gz ports-4df11be408c38b864a3ae0ceda174dbaf28ceee7.zip |
Notes
Diffstat (limited to 'mail/mimedefang/pkg-install')
-rw-r--r-- | mail/mimedefang/pkg-install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/mimedefang/pkg-install b/mail/mimedefang/pkg-install new file mode 100644 index 000000000000..80d3b95a908e --- /dev/null +++ b/mail/mimedefang/pkg-install @@ -0,0 +1,29 @@ +#!/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 |