Pullup ticket #6231 - requested by taca mail/roundcube: security fix Revisions pulled up: - mail/roundcube-plugin-password/distinfo 1.18-1.19 - mail/roundcube/Makefile 1.93 - mail/roundcube/Makefile.common 1.18-1.19 - mail/roundcube/distinfo 1.69-1.70 - mail/roundcube/options.mk 1.17 - mail/roundcube/patches/patch-program_lib_Roundcube_rcube__mime.php 1.3 - mail/roundcube/patches/patch-rcube_mime_default deleted --- Module Name: pkgsrc Committed By: taca Date: Sun Jun 7 22:07:04 UTC 2020 Modified Files: pkgsrc/mail/roundcube: Makefile Makefile.common distinfo options.mk Added Files: pkgsrc/mail/roundcube/patches: patch-program_lib_Roundcube_rcube__mime.php Removed Files: pkgsrc/mail/roundcube/patches: patch-rcube_mime_default Log Message: mail/roundcube: update to 1.4.5 Update roundcube to 1.4.5, including some security fixes. pkgsrc change: * Proper replace PHP interpreter. * Fix php-sockets option to work. RELEASE 1.4.5 ------------- - Fix bug in extracting required plugins from composer.json that led to spurious error in log (#7364) - Fix so the database setup description is compatible with MySQL 8 (#7340) - Markasjunk: Fix regression in jsevent driver (#7361) - Fix missing flag indication on collapsed thread in Larry and Elastic (#7366) - Fix default keyservers (use keys.openpgp.org), add note about CORS (#7373, #7367) - Mailvelope: Use sender's address to find pubkeys to check signatures (#7348) - Mailvelope: Fix Encrypt button hidden in Elastic (#7353) - Fix PHP warning: count(): Parameter must be an array or an object... in ID command handler (#7392) - Fix error when user-configured skin does not exist anymore (#7271) - Elastic: Fix aspect ratio of a contact photo in mail preview (#7339) - Fix bug where PDF attachments marked as inline could have not been attached on mail forward (#7382) - Security: Fix a couple of XSS issues in Installer (#7406) - Security: Fix XSS issue in template object 'username' (#7406) - Security: Better fix for CVE-2020-12641 - Security: Fix cross-site scripting (XSS) via malicious XML attachment --- Module Name: pkgsrc Committed By: taca Date: Sun Jun 7 22:08:37 UTC 2020 Modified Files: pkgsrc/mail/roundcube-plugin-password: distinfo Log Message: mail/roundcube-plugin-password: update to 1.4.5 Update roundcube-plugin-password to 1.4.5 RELEASE 1.4.5 ------------- - Password: Fix issue with Modoboa driver (#7372) --- Module Name: pkgsrc Committed By: taca Date: Tue Jun 9 00:25:19 UTC 2020 Modified Files: pkgsrc/mail/roundcube: Makefile.common distinfo pkgsrc/mail/roundcube-plugin-password: distinfo Log Message: mail/roundcube: update to 1.14.6 Update roundcube to 1.14.6. RELEASE 1.4.6 ------------- - Installer: Fix regression in SMTP test section (#7417)diff -r1.92 -r1.92.2.1 pkgsrc/mail/roundcube/Makefile
(bsiegert)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.92 2020/01/14 14:30:00 taca Exp $ | 1 | # $NetBSD: Makefile,v 1.92.2.1 2020/06/09 11:51:49 bsiegert Exp $ | |
2 | 2 | |||
3 | DISTNAME= roundcubemail-${RC_VERS} | 3 | DISTNAME= roundcubemail-${RC_VERS} | |
4 | PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME:S/mail-/-/:S/-complete//} | 4 | PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME:S/mail-/-/:S/-complete//} | |
5 | 5 | |||
6 | MAINTAINER= taca@NetBSD.org | 6 | MAINTAINER= taca@NetBSD.org | |
7 | COMMENT= Browser-based multilingual IMAP client | 7 | COMMENT= Browser-based multilingual IMAP client | |
8 | LICENSE= gnu-gpl-v3 AND mit AND gnu-lgpl-v2.1 | 8 | LICENSE= gnu-gpl-v3 AND mit AND gnu-lgpl-v2.1 | |
9 | 9 | |||
10 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=${PHP_BASE_VERS}:../../converters/php-mbstring | 10 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=${PHP_BASE_VERS}:../../converters/php-mbstring | |
11 | DEPENDS+= ${PHP_PKG_PREFIX}-exif>=${PHP_BASE_VERS}:../../graphics/php-exif | 11 | DEPENDS+= ${PHP_PKG_PREFIX}-exif>=${PHP_BASE_VERS}:../../graphics/php-exif | |
12 | DEPENDS+= ${PHP_PKG_PREFIX}-intl>=${PHP_BASE_VERS}:../../textproc/php-intl | 12 | DEPENDS+= ${PHP_PKG_PREFIX}-intl>=${PHP_BASE_VERS}:../../textproc/php-intl | |
13 | DEPENDS+= ${PHP_PKG_PREFIX}-json>=${PHP_BASE_VERS}:../../textproc/php-json | 13 | DEPENDS+= ${PHP_PKG_PREFIX}-json>=${PHP_BASE_VERS}:../../textproc/php-json | |
14 | DEPENDS+= ${PHP_PKG_PREFIX}-zip>=${PHP_BASE_VERS}:../../archivers/php-zip | 14 | DEPENDS+= ${PHP_PKG_PREFIX}-zip>=${PHP_BASE_VERS}:../../archivers/php-zip | |
@@ -34,51 +34,58 @@ OWN_DIRS_PERMS+= ${VARBASE}/spool/roundc | @@ -34,51 +34,58 @@ OWN_DIRS_PERMS+= ${VARBASE}/spool/roundc | |||
34 | ${WWW_USER} ${WWW_GROUP} 0750 | 34 | ${WWW_USER} ${WWW_GROUP} 0750 | |
35 | OWN_DIRS_PERMS+= ${VARBASE}/tmp/roundcube \ | 35 | OWN_DIRS_PERMS+= ${VARBASE}/tmp/roundcube \ | |
36 | ${WWW_USER} ${WWW_GROUP} 0750 | 36 | ${WWW_USER} ${WWW_GROUP} 0750 | |
37 | 37 | |||
38 | CONF_FILES+= ${PREFIX}/${EGDIR}/mimetypes.php \ | 38 | CONF_FILES+= ${PREFIX}/${EGDIR}/mimetypes.php \ | |
39 | ${PKG_SYSCONFDIR}/mimetypes.php | 39 | ${PKG_SYSCONFDIR}/mimetypes.php | |
40 | CONF_FILES_PERMS+= ${PREFIX}/${EGDIR}/config.inc.php \ | 40 | CONF_FILES_PERMS+= ${PREFIX}/${EGDIR}/config.inc.php \ | |
41 | ${PKG_SYSCONFDIR}/config.inc.php \ | 41 | ${PKG_SYSCONFDIR}/config.inc.php \ | |
42 | ${WWW_USER} ${WWW_GROUP} 0640 | 42 | ${WWW_USER} ${WWW_GROUP} 0640 | |
43 | CONF_FILES_PERMS+= ${PREFIX}/${EGDIR}/defaults.inc.php \ | 43 | CONF_FILES_PERMS+= ${PREFIX}/${EGDIR}/defaults.inc.php \ | |
44 | ${PKG_SYSCONFDIR}/defaults.inc.php \ | 44 | ${PKG_SYSCONFDIR}/defaults.inc.php \ | |
45 | ${WWW_USER} ${WWW_GROUP} 0640 | 45 | ${WWW_USER} ${WWW_GROUP} 0640 | |
46 | 46 | |||
47 | CONF_PLUGINS= acl additional_message_headers database_attachments \ | |||
48 | emoticons help http_authentication jqueryui \ | |||
49 | krb_authentication managesieve markasjunk \ | |||
50 | new_user_identity newmail_notifier \ | |||
51 | redundant_attachments squirrelmail_usercopy | |||
52 | RC_DOCS= CHANGELOG INSTALL LICENSE README.md UPGRADING | |||
53 | REPLACE_PHP= cleandb.sh decrypt.sh deluser.sh gc.sh \ | |||
54 | indexcontacts.sh initdb.sh installto.sh \ | |||
55 | moduserprefs.sh msgexport.sh msgimport.sh \ | |||
56 | update.sh updatecss.sh updatedb.sh | |||
57 | ||||
58 | REPLACE_INTERPRETER+= php | |||
59 | REPLACE.php.old= .*php[^ ]* | |||
60 | REPLACE.php.new= ${PREFIX}/bin/php | |||
61 | .for f in ${REPLACE_PHP} | |||
62 | REPLACE_FILES.php+= bin/${f} | |||
63 | .endfor | |||
64 | ||||
47 | SUBST_CLASSES+= files | 65 | SUBST_CLASSES+= files | |
48 | SUBST_STAGE.files= do-configure | 66 | SUBST_STAGE.files= do-configure | |
49 | SUBST_MESSAGE.files= Fixing configuration files. | 67 | SUBST_MESSAGE.files= Fixing configuration files. | |
50 | SUBST_FILES.files= apache.conf lighttpd.conf nginx.conf | 68 | SUBST_FILES.files= apache.conf lighttpd.conf nginx.conf | |
51 | SUBST_FILES.files+= config/config.inc.php.sample | 69 | SUBST_FILES.files+= config/config.inc.php.sample | |
52 | SUBST_FILES.files+= program/include/iniset.php | 70 | SUBST_FILES.files+= program/include/iniset.php | |
53 | SUBST_FILES.files+= program/lib/Roundcube/rcube_mime.php | 71 | SUBST_FILES.files+= program/lib/Roundcube/rcube_mime.php | |
54 | SUBST_VARS.files= RCDIR VARBASE PKG_EXAMPLES PKG_SYSCONFBASE PKG_SYSCONFDIR | 72 | SUBST_VARS.files= RCDIR VARBASE PKG_EXAMPLES PKG_SYSCONFBASE PKG_SYSCONFDIR | |
55 | SUBST_VARS.files+= RCDIR | 73 | SUBST_VARS.files+= RCDIR | |
56 | SUBST_VARS.files+= VARBASE | 74 | SUBST_VARS.files+= VARBASE | |
57 | SUBST_SED.files+= -e "s|@PKG_EXAMPLES@|${PREFIX}/share/examples/roundcube|g" | 75 | SUBST_SED.files+= -e "s|@PKG_EXAMPLES@|${PREFIX}/share/examples/roundcube|g" | |
58 | SUBST_VARS.files+= PKG_SYSCONFBASE | 76 | SUBST_VARS.files+= PKG_SYSCONFBASE | |
59 | SUBST_VARS.files+= PKG_SYSCONFDIR | 77 | SUBST_VARS.files+= PKG_SYSCONFDIR | |
60 | 78 | |||
61 | CONF_PLUGINS= acl additional_message_headers database_attachments \ | |||
62 | emoticons help http_authentication jqueryui \ | |||
63 | krb_authentication managesieve markasjunk \ | |||
64 | new_user_identity newmail_notifier \ | |||
65 | redundant_attachments squirrelmail_usercopy | |||
66 | RC_DOCS= CHANGELOG INSTALL LICENSE README.md UPGRADING | |||
67 | REPLACE_PHP= cleandb.sh decrypt.sh deluser.sh gc.sh \ | |||
68 | indexcontacts.sh initdb.sh installto.sh \ | |||
69 | moduserprefs.sh msgexport.sh msgimport.sh \ | |||
70 | update.sh updatecss.sh updatedb.sh | |||
71 | ||||
72 | pre-configure: | 79 | pre-configure: | |
73 | ${CP} ${FILESDIR}/apache.conf ${WRKSRC}/apache.conf | 80 | ${CP} ${FILESDIR}/apache.conf ${WRKSRC}/apache.conf | |
74 | ${CP} ${FILESDIR}/lighttpd.conf ${WRKSRC}/lighttpd.conf | 81 | ${CP} ${FILESDIR}/lighttpd.conf ${WRKSRC}/lighttpd.conf | |
75 | ${CP} ${FILESDIR}/nginx.conf ${WRKSRC}/nginx.conf | 82 | ${CP} ${FILESDIR}/nginx.conf ${WRKSRC}/nginx.conf | |
76 | 83 | |||
77 | pre-install: | 84 | pre-install: | |
78 | cd ${WRKSRC}/plugins && ${RM} -fr enigma password zipdownload | 85 | cd ${WRKSRC}/plugins && ${RM} -fr enigma password zipdownload | |
79 | 86 | |||
80 | do-install: | 87 | do-install: | |
81 | .for i in ${RC_DOCS} | 88 | .for i in ${RC_DOCS} | |
82 | ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR} | 89 | ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR} | |
83 | .endfor | 90 | .endfor | |
84 | ${INSTALL_DATA} ${WRKSRC}/.htaccess ${DESTDIR}${PREFIX}/${RCDIR} | 91 | ${INSTALL_DATA} ${WRKSRC}/.htaccess ${DESTDIR}${PREFIX}/${RCDIR} |
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.16.2.1 2020/05/08 19:17:54 bsiegert Exp $ | 1 | # $NetBSD: Makefile.common,v 1.16.2.2 2020/06/09 11:51:49 bsiegert Exp $ | |
2 | # | 2 | # | |
3 | # used by mail/roundcube/Makefile | 3 | # used by mail/roundcube/Makefile | |
4 | # used by mail/roundcube/plugins.mk | 4 | # used by mail/roundcube/plugins.mk | |
5 | 5 | |||
6 | DISTNAME= roundcubemail-${RC_VERS}-complete | 6 | DISTNAME= roundcubemail-${RC_VERS}-complete | |
7 | CATEGORIES= mail | 7 | CATEGORIES= mail | |
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=roundcube/} | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=roundcube/} | |
9 | GITHUB_PROJECT= roundcubemail | 9 | GITHUB_PROJECT= roundcubemail | |
10 | GITHUB_RELEASE= ${RC_VERS} | 10 | GITHUB_RELEASE= ${RC_VERS} | |
11 | HOMEPAGE= https://roundcube.net/ | 11 | HOMEPAGE= https://roundcube.net/ | |
12 | 12 | |||
13 | RC_VERS= 1.4.4 | 13 | RC_VERS= 1.4.6 | |
14 | 14 | |||
15 | USE_LANGUAGES= # none | 15 | USE_LANGUAGES= # none | |
16 | USE_TOOLS+= pax | 16 | USE_TOOLS+= pax | |
17 | EXTRACT_USING= bsdtar | 17 | EXTRACT_USING= bsdtar | |
18 | NO_BUILD= yes | 18 | NO_BUILD= yes | |
19 | WRKNAME= ${DISTNAME:S/-complete//} | 19 | WRKNAME= ${DISTNAME:S/-complete//} | |
20 | WRKSRC= ${WRKDIR}/${WRKNAME} | 20 | WRKSRC= ${WRKDIR}/${WRKNAME} | |
21 | 21 | |||
22 | DISTINFO_FILE?= ${PKGDIR}/../../mail/roundcube/distinfo | 22 | DISTINFO_FILE?= ${PKGDIR}/../../mail/roundcube/distinfo | |
23 | 23 | |||
24 | PKG_SYSCONFSUBDIR?= roundcube | 24 | PKG_SYSCONFSUBDIR?= roundcube | |
25 | 25 | |||
26 | PKG_GROUPS_VARS+= WWW_GROUP | 26 | PKG_GROUPS_VARS+= WWW_GROUP |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.66.2.2 2020/05/08 19:17:54 bsiegert Exp $ | 1 | $NetBSD: distinfo,v 1.66.2.3 2020/06/09 11:51:49 bsiegert Exp $ | |
2 | 2 | |||
3 | SHA1 (roundcubemail-1.4.4-complete.tar.gz) = 4e425263f5bec27d39c07bde524f421bda205c07 | 3 | SHA1 (roundcubemail-1.4.6-complete.tar.gz) = 44961ef62bb9c9875141ca34704bbc7d6f36373d | |
4 | RMD160 (roundcubemail-1.4.4-complete.tar.gz) = 43c3ea4da074337c4b8826420eab9a799fd46e1a | 4 | RMD160 (roundcubemail-1.4.6-complete.tar.gz) = 51e323bf7def448b55f57b9279745b5779690ab3 | |
5 | SHA512 (roundcubemail-1.4.4-complete.tar.gz) = ddea321b5266c547f67c010147e9aa1457bea4802bec37f9e9d87e691bdc8df27f5c90cff8770de2458822160b85f7359f62742072ae1d642a040b9d88651519 | 5 | SHA512 (roundcubemail-1.4.6-complete.tar.gz) = e86763ced58cfa8174f71d33ae45cd62f26a58853b9361b800003fa5bf883a4106c957f66b6b17b03172a3ee595ca74d7c19ac38e449a23377defd77cf555742 | |
6 | Size (roundcubemail-1.4.4-complete.tar.gz) = 7029864 bytes | 6 | Size (roundcubemail-1.4.6-complete.tar.gz) = 7031573 bytes | |
7 | SHA1 (patch-af) = 7f29b0310a2a6b2e71858787e08b025e30d8bd12 | 7 | SHA1 (patch-af) = 7f29b0310a2a6b2e71858787e08b025e30d8bd12 | |
8 | SHA1 (patch-config_config.inc.php.sample) = 92a48a97b16fe3f5f4b9441fce762a559d8daca7 | 8 | SHA1 (patch-config_config.inc.php.sample) = 92a48a97b16fe3f5f4b9441fce762a559d8daca7 | |
9 | SHA1 (patch-rcube_mime_default) = b1e9479d575b7fd61c413e2b76ee36c06ece7a5c | 9 | SHA1 (patch-program_lib_Roundcube_rcube__mime.php) = b1e9479d575b7fd61c413e2b76ee36c06ece7a5c |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.16 2018/05/16 08:14:40 triaxx Exp $ | 1 | # $NetBSD: options.mk,v 1.16.14.1 2020/06/09 11:51:49 bsiegert Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.roundcube | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.roundcube | |
4 | 4 | |||
5 | PKG_OPTIONS_REQUIRED_GROUPS= db webserver | 5 | PKG_OPTIONS_REQUIRED_GROUPS= db webserver | |
6 | PKG_OPTIONS_GROUP.db= mysql pgsql sqlite | 6 | PKG_OPTIONS_GROUP.db= mysql pgsql sqlite | |
7 | PKG_OPTIONS_GROUP.webserver= apache lighttpd nginx | 7 | PKG_OPTIONS_GROUP.webserver= apache lighttpd nginx | |
8 | 8 | |||
9 | PKG_SUPPORTED_OPTIONS= ldap iconv php-sockets gd | 9 | PKG_SUPPORTED_OPTIONS= ldap iconv php-sockets gd | |
10 | PKG_SUGGESTED_OPTIONS= mysql iconv php-sockets gd apache | 10 | PKG_SUGGESTED_OPTIONS= mysql iconv php-sockets gd apache | |
11 | 11 | |||
12 | PKG_OPTIONS_LEGACY_OPTS+= sockets:php-sockets | 12 | PKG_OPTIONS_LEGACY_OPTS+= sockets:php-sockets | |
13 | 13 | |||
14 | .include "../../mk/bsd.options.mk" | 14 | .include "../../mk/bsd.options.mk" | |
@@ -70,23 +70,23 @@ WWW_GROUP?= nginx | @@ -70,23 +70,23 @@ WWW_GROUP?= nginx | |||
70 | .endif | 70 | .endif | |
71 | 71 | |||
72 | ### | 72 | ### | |
73 | ### Use OpenLDAP for storing data. | 73 | ### Use OpenLDAP for storing data. | |
74 | ### | 74 | ### | |
75 | .if !empty(PKG_OPTIONS:Mldap) | 75 | .if !empty(PKG_OPTIONS:Mldap) | |
76 | DEPENDS+= ${PHP_PKG_PREFIX}-ldap>=4.3.1:../../databases/php-ldap | 76 | DEPENDS+= ${PHP_PKG_PREFIX}-ldap>=4.3.1:../../databases/php-ldap | |
77 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_LDAP3-[0-9]*:../../net/pear-Net_LDAP3 | 77 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-Net_LDAP3-[0-9]*:../../net/pear-Net_LDAP3 | |
78 | .endif | 78 | .endif | |
79 | 79 | |||
80 | ### | 80 | ### | |
81 | ### Use sockets, required by managesieve and password plugins. | 81 | ### Use sockets, required by managesieve and password plugins. | |
82 | ### | 82 | ### | |
83 | .if !empty(PKG_OPTIONS:Msockets) | 83 | .if !empty(PKG_OPTIONS:Mphp-sockets) | |
84 | DEPENDS+= ${PHP_PKG_PREFIX}-sockets>=4.3.1:../../net/php-sockets | 84 | DEPENDS+= ${PHP_PKG_PREFIX}-sockets>=4.3.1:../../net/php-sockets | |
85 | .endif | 85 | .endif | |
86 | 86 | |||
87 | ### | 87 | ### | |
88 | ### Add support for gd | 88 | ### Add support for gd | |
89 | ### | 89 | ### | |
90 | .if !empty(PKG_OPTIONS:Mgd) | 90 | .if !empty(PKG_OPTIONS:Mgd) | |
91 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.1:../../graphics/php-gd | 91 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.1:../../graphics/php-gd | |
92 | .endif | 92 | .endif |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.17.2.3 2020/05/08 19:17:54 bsiegert Exp $ | 1 | $NetBSD: distinfo,v 1.17.2.4 2020/06/09 11:51:49 bsiegert Exp $ | |
2 | 2 | |||
3 | SHA1 (roundcubemail-1.4.4-complete.tar.gz) = 4e425263f5bec27d39c07bde524f421bda205c07 | 3 | SHA1 (roundcubemail-1.4.6-complete.tar.gz) = 44961ef62bb9c9875141ca34704bbc7d6f36373d | |
4 | RMD160 (roundcubemail-1.4.4-complete.tar.gz) = 43c3ea4da074337c4b8826420eab9a799fd46e1a | 4 | RMD160 (roundcubemail-1.4.6-complete.tar.gz) = 51e323bf7def448b55f57b9279745b5779690ab3 | |
5 | SHA512 (roundcubemail-1.4.4-complete.tar.gz) = ddea321b5266c547f67c010147e9aa1457bea4802bec37f9e9d87e691bdc8df27f5c90cff8770de2458822160b85f7359f62742072ae1d642a040b9d88651519 | 5 | SHA512 (roundcubemail-1.4.6-complete.tar.gz) = e86763ced58cfa8174f71d33ae45cd62f26a58853b9361b800003fa5bf883a4106c957f66b6b17b03172a3ee595ca74d7c19ac38e449a23377defd77cf555742 | |
6 | Size (roundcubemail-1.4.4-complete.tar.gz) = 7029864 bytes | 6 | Size (roundcubemail-1.4.6-complete.tar.gz) = 7031573 bytes | |
7 | SHA1 (patch-plugins_password_helpers_passwd-expect) = 15e427a3c90bf7c0437a023b3f099abb5a139165 | 7 | SHA1 (patch-plugins_password_helpers_passwd-expect) = 15e427a3c90bf7c0437a023b3f099abb5a139165 |
$NetBSD: patch-program_lib_Roundcube_rcube__mime.php,v 1.3.2.2 2020/06/09 11:51:50 bsiegert Exp $
Fix path to /etc/.
--- program/lib/Roundcube/rcube_mime.php.orig 2018-04-11 11:06:18.000000000 +0000
+++ program/lib/Roundcube/rcube_mime.php
@@ -790,12 +790,12 @@ class rcube_mime
$file_paths[] = 'C:/xampp/apache/conf/mime.types.';
}
else {
- $file_paths[] = '/etc/mime.types';
- $file_paths[] = '/etc/httpd/mime.types';
- $file_paths[] = '/etc/httpd2/mime.types';
- $file_paths[] = '/etc/apache/mime.types';
- $file_paths[] = '/etc/apache2/mime.types';
- $file_paths[] = '/etc/nginx/mime.types';
+ $file_paths[] = '@PKG_SYSCONFBASE@/mime.types';
+ $file_paths[] = '@PKG_SYSCONFBASE@/httpd/mime.types';
+ $file_paths[] = '@PKG_SYSCONFBASE@/httpd2/mime.types';
+ $file_paths[] = '@PKG_SYSCONFBASE@/apache/mime.types';
+ $file_paths[] = '@PKG_SYSCONFBASE@/apache2/mime.types';
+ $file_paths[] = '@PKG_SYSCONFBASE@/nginx/mime.types';
$file_paths[] = '/usr/local/etc/httpd/conf/mime.types';
$file_paths[] = '/usr/local/etc/apache/conf/mime.types';
$file_paths[] = '/usr/local/etc/apache24/mime.types';