freebsd-ports/mail/archiveopteryx/pkg-install
Ashish SHUKLA 70497625fb Archiveopteryx is an Internet mail server, optimised to support
long-term archival storage. It seeks to make it practical not only to
manage large archives, but to use the information therein on a daily
basis instead of relegating it to offline storage.

WWW:	http://www.archiveopteryx.org/

Approved by:	pgj (mentor)
2010-10-03 13:24:47 +00:00

28 lines
486 B
Bash

#!/bin/sh
PKGNAME=$1
TARGET=$2
MKDIR=/bin/mkdir
CHOWN=/usr/sbin/chown
CHMOD=/bin/chmod
AOXGROUP=aox
AOXUSER=aox
if [ $# -ne 2 ]; then
echo "Usage: $0 [PKGNAME] [PRE-INSTALL | POST-INSTALL]"
exit 1
fi
if [ "$TARGET" = POST-INSTALL ]; then
for i in /var/db/aox/jail /var/db/aox/messages; do
${MKDIR} -m 700 -p ${i}
${CHOWN} ${AOXUSER}:${AOXGROUP} ${i}
done
${CHMOD} 700 /var/db/aox
${MKDIR} /var/run/aox
${CHOWN} ${AOXUSER}:${AOXGROUP} /var/db/aox /var/run/aox
fi
exit 0