freebsd-ports/mail/archiveopteryx/pkg-install
Jason Helfman 739e434436 - drop invalid post-deinstall target, and adjust pkg-{de}install, respectively
PR:	ports/166060
Submitted by:	jgh@
Approved by:	maintainer, feld@feld.me
Feature safe:	yes
2012-03-14 17:55:59 +00:00

18 lines
380 B
Bash

#!/bin/sh
MKDIR=/bin/mkdir
CHOWN=/usr/sbin/chown
CHMOD=/bin/chmod
AOXGROUP=aox
AOXUSER=aox
if [ "$2" = POST-INSTALL ]; then
for i in /var/db/aox/jail /var/db/aox/messages; do
${MKDIR} -m 700 -p ${i}
done
${CHOWN} root:wheel /var/db/aox/jail
${CHMOD} 700 /var/db/aox
${MKDIR} /var/run/aox
${CHOWN} ${AOXUSER}:${AOXGROUP} /var/db/aox /var/run/aox /var/db/aox/messages
fi