From c42bd9ae065d2484f77bbd8eafc88ec5bebac239 Mon Sep 17 00:00:00 2001 From: Yen-Ming Lee Date: Thu, 12 May 2005 08:47:44 +0000 Subject: - do initialization tasks in pkg-install instead --- mail/openwebmail/Makefile | 1 - mail/openwebmail/pkg-install | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/openwebmail') diff --git a/mail/openwebmail/Makefile b/mail/openwebmail/Makefile index a60abc306228..fdd2eefe6903 100644 --- a/mail/openwebmail/Makefile +++ b/mail/openwebmail/Makefile @@ -205,7 +205,6 @@ do-install: .if defined(WITHOUT_SPEEDYCGI) @${PERL} ${OWCGIDIR}/misc/tools/wrapsuid/wrapsuid.pl ${OWCGIDIR} 2>/dev/null .endif - @${OWCGIDIR}/openwebmail-tool.pl --init --no post-install: @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/mail/openwebmail/pkg-install b/mail/openwebmail/pkg-install index 53c5ab67c94a..fc74006d6cea 100644 --- a/mail/openwebmail/pkg-install +++ b/mail/openwebmail/pkg-install @@ -3,6 +3,9 @@ if [ "$2" != "POST-INSTALL" ]; then exit 0 fi +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 +${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail-tool.pl --init --no -- cgit