df48ad08f4
RELEASE 1.1.2 ------------- - Add new plugin hook 'identity_create_after' providing the ID of the inserted identity (#1490358) - Add option to place signature at bottom of the quoted text even in top-posting mode [sig_below] - Fix handling of %-encoded entities in mailto: URLs (#1490346) - Fix zipped messages downloads after selecting all messages in a folder (#1490339) - Fix vpopmaild driver of password plugin - Fix PHP warning: Non-static method PEAR::setErrorHandling() should not be called statically (#1490343) - Fix tables listing routine on mysql and postgres so it skips system or other database tables and views (#1490337) - Fix message list header in classic skin on window resize in Internet Explorer (#1490213) - Fix so text/calendar parts are listed as attachments even if not marked as such (#1490325) - Fix lack of signature separator for plain text signatures in html mode (#1490352) - Fix font artifact in Google Chrome on Windows (#1490353) - Fix bug where forced extwin page reload could exit from the extwin mode (#1490350) - Fix bug where some unrelated attachments in multipart/related message were not listed (#1490355) - Fix mouseup event handling when dragging a list record (#1490359) - Fix bug where preview_pane setting wasn't always saved into user preferences (#1490362) - Fix bug where messages count was not updated after message move/delete with skip_deleted=false (#1490372) - Fix security issue in contact photo handling (#1490379) - Fix possible memcache/apc cache data consistency issues (#1490390) - Fix bug where imap_conn_options were ignored in IMAP connection test (#1490392) - Fix bug where some files could have "executable" extension when stored in temp folder (#1490377) - Fix attached file path unsetting in database_attachments plugin (#1490393) - Fix issues when using moduserprefs.sh without --user argument (#1490399) - Fix potential info disclosure issue by protecting directory access (#1490378) - Fix blank image in html_signature when saving identity changes (#1490412) - Installer: Use openssl_random_pseudo_bytes() (if available) to generate des_key (#1490402) - Fix XSS vulnerability in _mbox argument handling (#1490417)
165 lines
5.9 KiB
Makefile
165 lines
5.9 KiB
Makefile
# $NetBSD: Makefile,v 1.73 2015/06/06 14:14:12 taca Exp $
|
|
|
|
DISTNAME= roundcubemail-1.1.2
|
|
PKGNAME= ${DISTNAME:S/mail-/-/}
|
|
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}-iconv>=${PHP_BASE_VERS}:../../converters/php-iconv
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=${PHP_BASE_VERS}:../../converters/php-mbstring
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-dom>=${PHP_BASE_VERS}:../../textproc/php-dom
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-exif>=${PHP_BASE_VERS}:../../graphics/php-exif
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-intl>=${PHP_BASE_VERS}:../../textproc/php-intl
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-json>=${PHP_BASE_VERS}:../../textproc/php-json
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=${PHP_BASE_VERS}:../../security/php-mcrypt
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_Sieve>=1.3.2:../../net/pear-Net_Sieve
|
|
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
|
|
SQL_DIRS= mssql mysql oracle postgres sqlite
|
|
|
|
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} 0750
|
|
OWN_DIRS_PERMS+= ${VARBASE}/spool/roundcube \
|
|
${WWW_USER} ${WWW_GROUP} 0750
|
|
OWN_DIRS_PERMS+= ${VARBASE}/tmp/roundcube \
|
|
${WWW_USER} ${WWW_GROUP} 0750
|
|
|
|
CONF_FILES= ${EGDIR}/roundcube.conf \
|
|
${PKG_SYSCONFDIR}/roundcube.conf
|
|
CONF_FILES+= ${EGDIR}/mimetypes.php \
|
|
${PKG_SYSCONFDIR}/mimetypes.php
|
|
CONF_FILES_PERMS+= ${EGDIR}/config.inc.php \
|
|
${PKG_SYSCONFDIR}/config.inc.php \
|
|
${WWW_USER} ${WWW_GROUP} 0640
|
|
CONF_FILES_PERMS+= ${EGDIR}/defaults.inc.php \
|
|
${PKG_SYSCONFDIR}/defaults.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
|
|
|
|
.include "../../mk/apache.mk"
|
|
|
|
SUBST_CLASSES+= files
|
|
SUBST_STAGE.files= do-configure
|
|
SUBST_MESSAGE.files= Fixing configuration files.
|
|
SUBST_FILES.files= roundcube.conf
|
|
SUBST_FILES.files+= config/config.inc.php.sample
|
|
SUBST_FILES.files+= installer/index.php
|
|
SUBST_FILES.files+= program/include/iniset.php
|
|
SUBST_FILES.files+= program/lib/Roundcube/rcube_mime.php
|
|
SUBST_SED.files= -e "s|@RCDIR@|${RCDIR}|g"
|
|
SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g"
|
|
SUBST_SED.files+= -e "s|@PKG_EXAMPLES@|${PREFIX}/share/examples/roundcube|g"
|
|
SUBST_SED.files+= -e "s|@PKG_SYSCONFBASE@|${PKG_SYSCONFBASE}|g"
|
|
SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
|
|
.if ${PKG_APACHE} == "apache24"
|
|
SUBST_SED.files+= -e "/Order allow,deny/d"
|
|
SUBST_SED.files+= -e "/Order deny,allow/d"
|
|
SUBST_SED.files+= -e "s,Allow from all,Require all granted,g"
|
|
SUBST_SED.files+= -e "s,Deny from all,Require all denied,g"
|
|
.endif
|
|
|
|
REPLACE_INTERPRETER+= php
|
|
REPLACE.php.old= /usr/bin/env php
|
|
REPLACE.php.new= ${PREFIX}/bin/php
|
|
REPLACE_FILES.php= bin/*.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/
|
|
.for i in ${SQL_DIRS}
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${RCDIR}/SQL/${i}
|
|
${INSTALL_DATA} ${WRKSRC}/SQL/${i}/*.sql ${DESTDIR}${RCDIR}/SQL/${i}
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/roundcube.conf \
|
|
${DESTDIR}${EGDIR}/roundcube.conf
|
|
${INSTALL_DATA} ${WRKSRC}/config/mimetypes.php \
|
|
${DESTDIR}${EGDIR}/mimetypes.php
|
|
${INSTALL_DATA} ${WRKSRC}/config/config.inc.php.sample \
|
|
${DESTDIR}${EGDIR}/config.inc.php
|
|
${INSTALL_DATA} ${WRKSRC}/config/defaults.inc.php \
|
|
${DESTDIR}${EGDIR}/defaults.inc.php
|
|
|
|
${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 "options.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|