diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2005-05-12 08:47:44 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2005-05-12 08:47:44 +0000 |
commit | c42bd9ae065d2484f77bbd8eafc88ec5bebac239 (patch) | |
tree | 5c6b1ae83933fa1fb9b7ccf7ba830fb824bd427a /mail/openwebmail | |
parent | 5bfc4aea0e727c54e8f9c6e487445e83320c50ce (diff) | |
download | ports-c42bd9ae065d2484f77bbd8eafc88ec5bebac239.tar.gz ports-c42bd9ae065d2484f77bbd8eafc88ec5bebac239.zip |
- do initialization tasks in pkg-install instead
Notes
Notes:
svn path=/head/; revision=135118
Diffstat (limited to 'mail/openwebmail')
-rw-r--r-- | mail/openwebmail/Makefile | 1 | ||||
-rw-r--r-- | mail/openwebmail/pkg-install | 3 |
2 files changed, 3 insertions, 1 deletions
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 |