#!/bin/sh PREF=${PREFIX:-$PKG_PREFIX} PATH=/bin:/usr/sbin case $2 in POST-INSTALL) GROUP=users if pw group show "${GROUP}" 2>/dev/null; then echo "You already have a group \"${GROUP}\", so I will use it." else if pw groupadd ${GROUP}; then echo "Added group \"${GROUP}\"." else echo "Adding group \"${GROUP}\" failed..." exit 1 fi fi /usr/bin/touch /etc/mail/access mkdir -p ${PREF}/raqdevil/ui/web/base/sitestats/img; chown www:wheel ${PREF}/raqdevil/ui/web/base/sitestats/img; mkdir -p ${PREF}/raqdevil/skel/spam; mkdir -p ${PREF}/raqdevil/skel/quarantine; mkdir -p ${PREF}/raqdevil/sessions; ( cd /etc/namedb; sh /etc/namedb/make-localhost ) ;; esac