From d462c6e2d4268d19836ce33ecfb4126aec6c94c7 Mon Sep 17 00:00:00 2001 From: lawrance Date: Wed, 8 Feb 2006 14:57:05 +0000 Subject: Add another master site. Convert to USE_PHP. Improve checks for php4-db GDBM support. PR: ports/92225 Submitted by: Stefan Bethke Approved by: voisine@yahoo.com (maintainer, timeout 14 days) --- mail/silkymail/Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'mail/silkymail') diff --git a/mail/silkymail/Makefile b/mail/silkymail/Makefile index 9d2a2ddc084d..8ef6589e2df0 100644 --- a/mail/silkymail/Makefile +++ b/mail/silkymail/Makefile @@ -9,7 +9,8 @@ PORTNAME= silkymail PORTVERSION= 1.1.10 PORTREVISION= 1 CATEGORIES= mail www -MASTER_SITES= ftp://ftp.cyrusoft.com/pub/SilkyMail/%SUBDIR%/ +MASTER_SITES= http://alkoholix.tallence.de/FreeBSD/ports/distfiles-local/silkymail/%SUBDIR%/ \ + ftp://ftp.cyrusoft.com/pub/SilkyMail/%SUBDIR%/ MASTER_SITE_SUBDIR= v${PORTVERSION:S/./_/g} DISTNAME= ${PORTNAME} EXTRACT_SUFX= .tgz @@ -17,11 +18,12 @@ EXTRACT_SUFX= .tgz MAINTAINER= voisine@yahoo.com COMMENT= A webmail system which accesses mail over IMAP -RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +USE_PHP= dba imap +WANT_PHP_MOD= YES WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= YES -NO_PACKAGE= "Requires IMAP/IMAP_SSL enabled in www/mod_php4" +NO_PACKAGE= requires GDBM support in databases/php4-dba, which is off by default SILKYMAILDIR= ${LOCALBASE}/www/${PORTNAME} @@ -31,15 +33,9 @@ do-install: @${CHOWN} www:www ${SILKYMAILDIR}/silkymail/imp/data pre-install: - @if ! ${LDCONFIG} -r | ${GREP} -q -e "c-client4.8"; then \ + @if ! /usr/bin/ldd -a ${LOCALBASE}/lib/php/20020429/dba.so | ${GREP} -q -e "libgdbm.so"; then \ ${ECHO_MSG} "" ; \ - ${ECHO_MSG} "Please configure mod_php4 with IMAP or IMAP-SSL support." ; \ - ${ECHO_MSG} "" ; \ - ${FALSE} ; \ - fi - @if ! ${LDCONFIG} -r | ${GREP} -q -e "gdbm.3"; then \ - ${ECHO_MSG} "" ; \ - ${ECHO_MSG} "Please configure mod_php4 with GDBM support." ; \ + ${ECHO_MSG} "databases/php4-dba needs to be built with GDBM support." ; \ ${ECHO_MSG} "" ; \ ${FALSE} ; \ fi -- cgit