1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/www/raqdevil/pkg-install
Edwin Groothuis ead009d688 [patch] Update www/raqdevil to 0.9.6
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>
2005-11-02 02:11:52 +00:00

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