mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
ead009d688
We've released an 0.9.6 version of RAQdevil. The shar last time was apparently quite mangled, so I'm not sure that the current port actually works. Sorry for any miscommunication about that. PR: ports/88308 Submitted by: Devon H. O'Dell <dodell@offmyserver.com>
32 lines
688 B
Bash
32 lines
688 B
Bash
#!/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
|