1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/mail/openwebmail/pkg-install
Yen-Ming Lee a79afefc7e - create directory for addressbook [1]
- bump PORTREVISION [1]
- remove slave-port related settings

Submitted by:	[1] jr at opal.com
2007-02-02 05:02:26 +00:00

21 lines
744 B
Bash

#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/addressbooks
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
chmod 0770 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
mkdir -p ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
chmod 0700 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
chmod 4755 ${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail*pl
for x in addressbooks/global calendar.book; do
if [ ! -s "${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}" ]; then
touch ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}
chmod 0666 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/${x}
fi
done
${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail-tool.pl --init --no