RELEASE 0.9.3 ------------- - Fix setting refresh_interval to "Never" in Preferences (#1489286) - Optimized UI behavior for touch devices - Fix purge action in folder manager (#1489280) - Fix base URL resolving on attribute values with no quotes (#1489275) - Fix wrong handling of links with '|' character (#1489276) - Fix colorspace issue on image conversion using ImageMagick (#1489270) - Fix XSS vulnerability when saving HTML signatures (#1489251) - Fix XSS vulnerability when editing a message "as new" or draft (#1489251) - Fix rewrite rule in .htaccess (#1489240) - Fix detecting Turkish language in ISO-8859-9 encoding (#1489252) - Fix identity-selection using Return-Path headers (#1489241) - Fix parsing of links with ... in URL (#1489192) - Fix compose priority selector when opening in new window (#1489257) - Fix bug where signature wasn't changed on identity selection when editing a draft (#1489229) - Fix IMAP SETMETADATA parameters quoting (#1489231) - Fix "could not load message" error on valid empty message body (#1489228) - Fix handling of message/rfc822 attachments on message forward and edit (#1489214) - Fix parsing of square bracket characters in IMAP response strings (#1489223) - Don't clear References and in-Reply-To when a message is "edited as new" (#1489216) - Fix messages list sorting with THREAD=REFS - Remove deprecated (in PHP 5.5) PREG /e modifier usage (#1489174) - Fix empty messages list when register_globals is enabled (#1489157) - Fix so valid and set date.timezone is not required by installer checks (#1489180) - Canonize boolean ini_get() results (#1489189) - Fix so install do not fail when one of DB driver checks fails but other drivers exist (#1489178) - Fix so exported vCard specifies encoding in v3-compatible format (#1489183)
145 lines
5 KiB
Makefile
145 lines
5 KiB
Makefile
# $NetBSD: Makefile,v 1.58 2013/08/22 17:08:10 taca Exp $
|
|
|
|
DISTNAME= roundcubemail-0.9.3-dep
|
|
PKGNAME= ${DISTNAME:S/mail-/-/:S/-dep//}
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/}
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= http://roundcube.net/
|
|
COMMENT= Browser-based multilingual IMAP client
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php-dom
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=4.3.1:../../security/php-mcrypt
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_SMTP>=1.4.2:../../net/pear-Net_SMTP
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_IDNA2>=0.1.1:../../net/pear-Net_IDNA2
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_Mime>=1.8.1:../../mail/pear-Mail_Mime
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_mimeDecode>=1.5.5:../../mail/pear-Mail_mimeDecode
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Auth_SASL>=1.0.3:../../mail/pear-Auth_SASL
|
|
|
|
USE_LANGUAGES= # none
|
|
USE_TOOLS+= pax
|
|
NO_BUILD= yes
|
|
|
|
INSTALLATION_DIRS= ${RCDIR}/plugins ${RCDIR}/program ${RCDIR}/skins
|
|
INSTALLATION_DIRS+= ${RCDIR}/bin ${RCDIR}/SQL ${DOCDIR} ${EGDIR}
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
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
|
|
|
|
CONF_PLUGINS= acl additional_message_headers help \
|
|
http_authentication jqueryui managesieve \
|
|
newmail_notifier password redundant_attachments \
|
|
squirrelmail_usercopy zipdownload
|
|
|
|
MESSAGE_SUBST+= DOCDIR=${DOCDIR} PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
|
MESSAGE_SUBST+= VARBASE=${VARBASE} RCDIR=${RCDIR}
|
|
FILES_SUBST+= RCDIR=${RCDIR}
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}
|
|
OWN_DIRS_PERMS+= ${VARBASE}/log/roundcube \
|
|
${WWW_USER} ${WWW_GROUP} 0755
|
|
OWN_DIRS_PERMS+= ${VARBASE}/spool/roundcube \
|
|
${WWW_USER} ${WWW_GROUP} 0755
|
|
|
|
CONF_FILES= ${EGDIR}/roundcube.conf \
|
|
${PKG_SYSCONFDIR}/roundcube.conf
|
|
CONF_FILES+= ${EGDIR}/mimetypes.php \
|
|
${PKG_SYSCONFDIR}/mimetypes.php
|
|
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
|
|
|
|
.for f in ${CONF_PLUGINS}
|
|
CONF_FILES_PERMS+= ${EGDIR}/plugins/${f}/config.inc.php \
|
|
${RCDIR}/plugins/${f}/config.inc.php \
|
|
${WWW_USER} ${WWW_GROUP} 0640
|
|
.endfor
|
|
|
|
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= /usr/bin/env php
|
|
REPLACE.php.new= ${PREFIX}/bin/php
|
|
REPLACE_FILES.php= bin/cleandb.sh bin/decrypt.sh bin/indexcontacts.sh
|
|
REPLACE_FILES.php+= bin/installto.sh bin/moduserprefs.sh bin/msgexport.sh
|
|
REPLACE_FILES.php+= bin/msgimport.sh bin/update.sh bin/updatecss.sh
|
|
REPLACE_FILES.php+= bin/updatedb.sh
|
|
|
|
REPLACE_PYTHON= plugins/password/helpers/chpass-wrapper.py
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/roundcube.conf ${WRKSRC}/roundcube.conf
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/.htaccess ${DESTDIR}${RCDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/index.php ${DESTDIR}${RCDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${RCDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/SQL/*.sql ${DESTDIR}${RCDIR}/SQL/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/roundcube.conf \
|
|
${DESTDIR}${EGDIR}/roundcube.conf
|
|
${INSTALL_DATA} ${WRKSRC}/config/mimetypes.php \
|
|
${DESTDIR}${EGDIR}/mimetypes.php
|
|
${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
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/*.sh ${DESTDIR}${RCDIR}/bin/
|
|
|
|
.for i in ${PAX_DIRS}
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${RCDIR}/${i}
|
|
cd ${WRKSRC}/${i} && ${FIND} . -type f \! -name "*.orig" -print | \
|
|
${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
|
|
|
|
.for f in ${CONF_PLUGINS}
|
|
${MKDIR} ${DESTDIR}${EGDIR}/plugins/${f}
|
|
${TEST} -f ${DESTDIR}${EGDIR}/plugins/${f}/config.inc.php || \
|
|
${MV} ${DESTDIR}${RCDIR}/plugins/${f}/config.inc.php.dist \
|
|
${DESTDIR}${EGDIR}/plugins/${f}/config.inc.php
|
|
.endfor
|
|
|
|
.include "../../mk/apache.mk"
|
|
.include "options.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|