pkgsrc/mail/roundcube/Makefile
schmonz 5b83eeb05f Update to 0.3. From the changelog:
- Fix gn and givenName should be synonymous in LDAP addressbook (#1485892)
- Add mail_domain to LDAP email entries without @ sign (#1485201)
- Fix saving empty values in LDAP contact data (#1485781)
- Fix LDAP contact update when RDN field is changed (#1485788)
- Fix LDAP attributes case senitivity problems (#1485830)
- Fix LDAP addressbook browsing when only one directory is used (#1486022)
- Fix endless loop on error response for APPEND command (#1486060)
- Don't require date.timezone setting in installer (#1485989)
- Fix date sorting problem with Courier IMAP server (#1486065)
- Unselect pressed buttons on mouse up (#1485987)
- Don't set php_value error_log in .htaccess but mention in INSTALL (#1485924)
- Fix too small status/flag/attachment columns in Safari 4 (#1486063)
- Fix selection disabling while dragging splitter in webkit browsers (#1486056)
- Added 'new_messages' plugin hook (#1486005)
- Added 'logout_after' plugin hook (#1486042)
- Added 'message_compose' hook
- Added 'imap_connect' hook (#1485956)
- Fix vcard_attachments plugin (#1486035)
- Updated PEAR::Auth_SASL to 1.0.3 version
- Use sequence names only with PostgreSQL (#1486018)
- Re-designed User Preferences interface
- Fix MS SQL DDL (#1486020)
- Fix rcube_mdb2.php: call to setCharset not implemented in mssql driver (#1486019)
- Added 'display_next' option
- Fix rcube_mdb2::unixtimestamp for MS SQL (#1486015)
- Fix HTML washing to respect character encoding
- Fix endless loop in iil_C_Login() with Courier IMAP (#1486010)
- Fix #messagemenu display on IE (#1486006)
- Speedup UI by using sprites for (toolbar) buttons
- Fix charset names with X- prefix handling
- Fix displaying of HTML messages with unknown/malformed tags (#1486003)

From Fredrik Pettai in pkg/42099.
2009-09-20 02:59:32 +00:00

140 lines
4.6 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2009/09/20 02:59:32 schmonz Exp $
#
DISTNAME= roundcubemail-${RCVERSION}-stable-dep
PKGNAME= ${DISTNAME:S/mail-${RCVERSION}-stable-dep/-${VERSION}/}
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://roundcube.net/
COMMENT= Browser-based multilingual IMAP client
LICENSE= gnu-gpl-v2
USE_TOOLS+= pax
USE_LANGUAGES= # none
NO_BUILD= yes
RCVERSION= 0.3
VERSION= ${RCVERSION:S/-//}
PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= ${RCDIR}/plugins ${RCDIR}/program ${RCDIR}/skins
INSTALLATION_DIRS+= ${EGDIR}/SQL ${DOCDIR} ${RCDIR}/bin
.include "../../mk/bsd.prefs.mk"
.include "../../lang/php/phpversion.mk"
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_SMTP>=1.2.10:../../net/pear-Net_SMTP
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime>=1.3:../../mail/pear-Mail_Mime
DEPENDS+= ${PHP_PKG_PREFIX}-pear-MDB2>=2.4.1:../../databases/pear-MDB2
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Auth_SASL-[0-9]*:../../mail/pear-Auth_SASL
.if ${PKG_PHP_VERSION} == "4"
DEPENDS+= ${PHP_PKG_PREFIX}-domxml>=4.3.3:../../textproc/php4-domxml
.elif ${PKG_PHP_VERSION} == "5"
DEPENDS+= ${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php5-dom
.endif
PKG_SYSCONFSUBDIR?= roundcube
WWW_USER?= ${APACHE_USER}
WWW_GROUP?= ${APACHE_GROUP}
PKG_GROUPS_VARS+= WWW_GROUP
PKG_USERS_VARS+= WWW_USER
BUILD_DEFS+= VARBASE WWW_USER WWW_GROUP APACHE_USER APACHE_GROUP
RCDIR= ${PREFIX}/share/roundcube
EGDIR= ${PREFIX}/share/examples/roundcube
DOCDIR= ${PREFIX}/share/doc/roundcube
PAX_DIRS= plugins program skins installer bin
MESSAGE_SUBST+= DOCDIR=${DOCDIR:Q} PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
MESSAGE_SUBST+= VARBASE=${VARBASE:Q} RCDIR=${RCDIR:Q}
FILES_SUBST+= RCDIR=${RCDIR:Q}
OWN_DIRS+= ${PKG_SYSCONFDIR}
OWN_DIRS_PERMS+= ${VARBASE}/log/roundcube \
${WWW_USER} ${WWW_GROUP} 0755
OWN_DIRS_PERMS+= ${VARBASE}/tmp/roundcube \
${WWW_USER} ${WWW_GROUP} 0755
CONF_FILES= ${EGDIR}/roundcube.conf \
${PKG_SYSCONFDIR}/roundcube.conf
CONF_FILES_PERMS+= ${EGDIR}/db.inc.php.dist \
${PKG_SYSCONFDIR}/db.inc.php \
${WWW_USER} ${WWW_GROUP} 0640
CONF_FILES_PERMS+= ${EGDIR}/main.inc.php.dist \
${PKG_SYSCONFDIR}/main.inc.php \
${WWW_USER} ${WWW_GROUP} 0640
SUBST_CLASSES+= files
SUBST_STAGE.files= do-configure
SUBST_FILES.files= roundcube.conf
SUBST_FILES.files+= config/main.inc.php.dist
SUBST_FILES.files+= installer/index.php
SUBST_FILES.files+= program/include/iniset.php
SUBST_SED.files= -e "s|@RCDIR@|${RCDIR}|g"
SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g"
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.new= ${PREFIX}/bin/php
REPLACE_FILES.php= bin/*.sh
EMPTY_DIRS= plugins/emotions/images \
plugins/emotions/jscripts plugins/media/images \
plugins/media/jscripts plugins/nonbreaking/images \
plugins/nonbreaking/langs plugins/searchreplace/images \
plugins/searchreplace/jscripts plugins/spellchecker/images \
plugins/spellchecker/langs plugins/table/images \
plugins/table/jscripts plugins/visualchars/images \
plugins/visualchars/langs themes/advanced/css \
themes/advanced/docs/en/images themes/advanced/images/xp \
themes/advanced/jscripts themes/advanced/docs/en \
themes/advanced/images themes/advanced/docs
.include "../../mk/apache.mk"
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/roundcube.conf ${WRKSRC}/roundcube.conf
pre-install:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
. for d in ${EMPTY_DIRS}
cd ${WRKSRC}/program/js/tiny_mce && rmdir ${d}
. endfor
do-install:
${INSTALL_DATA} ${WRKSRC}/roundcube.conf \
${DESTDIR}${EGDIR}/roundcube.conf
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/SQL/*.sql ${DESTDIR}${EGDIR}/SQL/
${INSTALL_DATA} ${WRKSRC}/.htaccess ${DESTDIR}${RCDIR}/
${INSTALL_DATA} ${WRKSRC}/index.php ${DESTDIR}${RCDIR}/
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${RCDIR}/
${INSTALL_DATA} ${WRKSRC}/config/db.inc.php.dist \
${DESTDIR}${EGDIR}/db.inc.php.dist
${INSTALL_DATA} ${WRKSRC}/config/main.inc.php.dist \
${DESTDIR}${EGDIR}/main.inc.php.dist
. for i in ${PAX_DIRS}
cd ${WRKSRC}/${i} && ${PAX} -rw . ${DESTDIR}${RCDIR}/${i}
${FIND} ${DESTDIR}${RCDIR}/${i} -type f | \
${XARGS} ${CHMOD} ${SHAREMODE}
${FIND} ${DESTDIR}${RCDIR}/${i} -type d | \
${XARGS} ${CHMOD} ${PKGDIRMODE}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${RCDIR}/${i}
. endfor
.include "../../mk/bsd.pkg.mk"