diff options
Diffstat (limited to 'mail/roundcube/Makefile')
-rw-r--r-- | mail/roundcube/Makefile | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/mail/roundcube/Makefile b/mail/roundcube/Makefile index b4ca8d98a58..f0c531e171a 100644 --- a/mail/roundcube/Makefile +++ b/mail/roundcube/Makefile @@ -1,18 +1,25 @@ -# $NetBSD: Makefile,v 1.36 2011/09/16 05:46:24 obache Exp $ +# $NetBSD: Makefile,v 1.37 2012/01/14 15:36:24 taca Exp $ -DISTNAME= roundcubemail-0.5.4-dep +DISTNAME= roundcubemail-0.7.1-dep PKGNAME= ${DISTNAME:S/mail-/-/:S/-dep//} -PKGREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/} -MAINTAINER= pettai@NetBSD.org +MAINTAINER= taca@NetBSD.org HOMEPAGE= http://roundcube.net/ COMMENT= Browser-based multilingual IMAP client -LICENSE= gnu-gpl-v2 +LICENSE= gnu-gpl-v3 PKG_DESTDIR_SUPPORT= user-destdir +DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_SMTP>=1.4.2:../../net/pear-Net_SMTP +DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime>=1.8.1:../../mail/pear-Mail_Mime +DEPENDS+= ${PHP_PKG_PREFIX}-pear-MDB2>=2.5.0:../../databases/pear-MDB2 +DEPENDS+= ${PHP_PKG_PREFIX}-pear-Auth_SASL>=1.0.3:../../mail/pear-Auth_SASL +DEPENDS+= ${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php-dom +DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json +DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_IDNA2>=0.1.1:../../net/pear-Net_IDNA2 + USE_LANGUAGES= # none USE_TOOLS+= pax NO_BUILD= yes @@ -23,15 +30,7 @@ INSTALLATION_DIRS+= ${EGDIR}/SQL ${DOCDIR} ${RCDIR}/bin .include "../../mk/bsd.prefs.mk" .include "../../lang/php/phpversion.mk" -DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_IDNA2>=0.1.0:../../net/pear-Net_IDNA2 -DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_SMTP>=1.4.2:../../net/pear-Net_SMTP -DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime>=1.7:../../mail/pear-Mail_Mime -DEPENDS+= ${PHP_PKG_PREFIX}-pear-MDB2>=2.5.0:../../databases/pear-MDB2 -DEPENDS+= ${PHP_PKG_PREFIX}-pear-Auth_SASL-[0-9]*:../../mail/pear-Auth_SASL -DEPENDS+= ${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php-dom -DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json - -PKG_SYSCONFSUBDIR= roundcube +PKG_SYSCONFSUBDIR?= roundcube WWW_USER?= ${APACHE_USER} WWW_GROUP?= ${APACHE_GROUP} @@ -45,6 +44,10 @@ EGDIR= ${PREFIX}/share/examples/roundcube DOCDIR= ${PREFIX}/share/doc/roundcube PAX_DIRS= plugins program skins installer bin +CONF_PLUGINS= acl additional_message_headers enigma help \ + jqueryui managesieve newmail_notifier password \ + redundant_attachments squirrelmail_usercopy + MESSAGE_SUBST+= DOCDIR=${DOCDIR} PKG_SYSCONFDIR=${PKG_SYSCONFDIR} MESSAGE_SUBST+= VARBASE=${VARBASE} RCDIR=${RCDIR} FILES_SUBST+= RCDIR=${RCDIR} @@ -52,7 +55,7 @@ FILES_SUBST+= RCDIR=${RCDIR} OWN_DIRS+= ${PKG_SYSCONFDIR} OWN_DIRS_PERMS+= ${VARBASE}/log/roundcube \ ${WWW_USER} ${WWW_GROUP} 0755 -OWN_DIRS_PERMS+= ${VARBASE}/tmp/roundcube \ +OWN_DIRS_PERMS+= ${VARBASE}/spool/roundcube \ ${WWW_USER} ${WWW_GROUP} 0755 CONF_FILES= ${EGDIR}/roundcube.conf \ @@ -66,6 +69,12 @@ CONF_FILES_PERMS+= ${EGDIR}/main.inc.php.dist \ ${PKG_SYSCONFDIR}/main.inc.php \ ${WWW_USER} ${WWW_GROUP} 0640 +.for f in ${CONF_PLUGINS} +CONF_FILES_PERMS+= ${EGDIR}/plugins/${f}/config.inc.php \ + ${RCDIR}/plugins/${f}/config.iplnc.php \ + ${WWW_USER} ${WWW_GROUP} 0640 +.endfor + SUBST_CLASSES+= files SUBST_STAGE.files= do-configure SUBST_FILES.files= roundcube.conf @@ -78,7 +87,7 @@ SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" SUBST_MESSAGE.files= Fixing configuration files. REPLACE_INTERPRETER+= php -REPLACE.php.old= .*/bin/php +REPLACE.php.old= /usr/bin/env php REPLACE.php.new= ${PREFIX}/bin/php REPLACE_FILES.php= bin/*.sh @@ -121,4 +130,10 @@ do-install: ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${RCDIR}/${i} .endfor +.for f in ${CONF_PLUGINS} + ${MKDIR} ${DESTDIR}${EGDIR}/plugins/${f} + ${MV} ${DESTDIR}${RCDIR}/plugins/${f}/config.inc.php.dist \ + ${DESTDIR}${EGDIR}/plugins/${f}/config.inc.php +.endfor + .include "../../mk/bsd.pkg.mk" |