diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-12-13 07:56:34 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-12-13 08:01:21 +0000 |
commit | 50084ab88607c2bdcd535af30a9cd8292032eb08 (patch) | |
tree | 25e0f95b710fee5873dceef8af04f4e17e4e4c87 | |
parent | 7bdc07ac82d728c3a7b22befdbd8f1bbfdaf7f17 (diff) | |
download | alpine_aports-50084ab88607c2bdcd535af30a9cd8292032eb08.tar.bz2 alpine_aports-50084ab88607c2bdcd535af30a9cd8292032eb08.tar.xz alpine_aports-50084ab88607c2bdcd535af30a9cd8292032eb08.zip |
community/nextcloud: upgrade to 14.0.4
Edge (v3.9) will be moved to Nextcloud 15.
v3.7 has been moved to Nextcloud 13.
-rw-r--r-- | community/nextcloud/APKBUILD | 20 | ||||
-rw-r--r-- | community/nextcloud/app-encryption-info-add-mcrypt.patch | 9 | ||||
-rw-r--r-- | community/nextcloud/disable-integrity-check-as-default.patch | 8 | ||||
-rw-r--r-- | community/nextcloud/iconv-ascii-translit-not-supported.patch | 2 | ||||
-rw-r--r-- | community/nextcloud/nextcloud-1202-fix-6028.patch | 22 | ||||
-rw-r--r-- | community/nextcloud/nextcloud.logrotate | 2 | ||||
-rw-r--r-- | community/nextcloud/nextcloud14-dont-chmod.patch (renamed from community/nextcloud/nextcloud10-dont-chmod.patch) | 14 |
7 files changed, 28 insertions, 49 deletions
diff --git a/community/nextcloud/APKBUILD b/community/nextcloud/APKBUILD index 73d2b58d0a..d28bfd03e0 100644 --- a/community/nextcloud/APKBUILD +++ b/community/nextcloud/APKBUILD | |||
@@ -1,15 +1,15 @@ | |||
1 | # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> | 1 | # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> |
2 | # Contributor: Jakub Jirutka <jakub@jirutka.cz> | 2 | # Contributor: Jakub Jirutka <jakub@jirutka.cz> |
3 | pkgname=nextcloud | 3 | pkgname=nextcloud |
4 | pkgver=13.0.8 | 4 | pkgver=14.0.4 |
5 | pkgrel=0 | 5 | pkgrel=0 |
6 | pkgdesc="A safe home for all your data" | 6 | pkgdesc="A safe home for all your data" |
7 | url="http://nextcloud.com" | 7 | url="http://nextcloud.com" |
8 | arch="noarch" | 8 | arch="noarch" |
9 | license="AGPL-3.0-only" | 9 | license="AGPL-3.0-only" |
10 | _php=php7 | 10 | _php=php7 |
11 | _php_mods="-ctype -curl -dom -gd -fileinfo -iconv -json -mbstring -openssl | 11 | _php_mods="-ctype -curl -dom -gd -fileinfo -iconv -intl -json -mbstring -openssl |
12 | -pcntl -posix -session -simplexml -xml -xmlreader -xmlwriter -zlib -zip" | 12 | -pcntl -posix -session -simplexml -xml -xmlreader -xmlwriter -zip" |
13 | depends="ca-certificates $_php ${_php_mods//-/$_php-}" | 13 | depends="ca-certificates $_php ${_php_mods//-/$_php-}" |
14 | makedepends="xmlstarlet" | 14 | makedepends="xmlstarlet" |
15 | provides="$pkgname-dav=$pkgver-r$pkgrel | 15 | provides="$pkgname-dav=$pkgver-r$pkgrel |
@@ -21,7 +21,7 @@ install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-upgrade | |||
21 | subpackages="$pkgname-doc $pkgname-initscript $pkgname-mysql $pkgname-pgsql $pkgname-sqlite | 21 | subpackages="$pkgname-doc $pkgname-initscript $pkgname-mysql $pkgname-pgsql $pkgname-sqlite |
22 | $pkgname-default-apps:_default_apps" | 22 | $pkgname-default-apps:_default_apps" |
23 | source="https://download.nextcloud.com/server/releases/$pkgname-$pkgver.zip | 23 | source="https://download.nextcloud.com/server/releases/$pkgname-$pkgver.zip |
24 | nextcloud10-dont-chmod.patch | 24 | nextcloud14-dont-chmod.patch |
25 | dont-update-htaccess.patch | 25 | dont-update-htaccess.patch |
26 | disable-integrity-check-as-default.patch | 26 | disable-integrity-check-as-default.patch |
27 | app-encryption-info-add-mcrypt.patch | 27 | app-encryption-info-add-mcrypt.patch |
@@ -223,15 +223,15 @@ _package_app() { | |||
223 | mv "$pkgdir"/$_appsdir/$appname "$subpkgdir"/$_appsdir/ | 223 | mv "$pkgdir"/$_appsdir/$appname "$subpkgdir"/$_appsdir/ |
224 | } | 224 | } |
225 | 225 | ||
226 | sha512sums="091f69776718adfab54fff92de983f6c94c0d686640b2b2afe22997823db632555f15a90365d336d911d87b06cafffda6497b5e56bc8a92d06421b99042ae3a3 nextcloud-13.0.8.zip | 226 | sha512sums="6c0fec7693388f9ad4217206956ab85275cce752cbdcbecc78db85e777e9ea1c10f228ad41a1c5f4d9e6fc4b1f69e04c893970ca0384a7b97f273204f2efcb10 nextcloud-14.0.4.zip |
227 | 9c20237c4952ff543171768160c17c3608cc43ad9592fecccaeb337787d566f039f27f30f118359dfff7db58cd12d811c05be15e5994efee57a9ed75787d71f5 nextcloud10-dont-chmod.patch | 227 | 63690b8d8ffe6d4896c5b666aa9d493b501aa3e171c6557e7a003599049f0d36f266a2a257a9535dea055bca1e84208b219c6cd5e4ecd70dd064e1dd1007203a nextcloud14-dont-chmod.patch |
228 | aef3c92497d738d6968e0f0b0d415b4953500db24ae14af41ef972665cf7eff00cb6c53dc953845fdbb389c3c965a75b8b14b9247513c05cf4130fe1cfc61731 dont-update-htaccess.patch | 228 | aef3c92497d738d6968e0f0b0d415b4953500db24ae14af41ef972665cf7eff00cb6c53dc953845fdbb389c3c965a75b8b14b9247513c05cf4130fe1cfc61731 dont-update-htaccess.patch |
229 | 04783385ca35be9e8b895e91294b082cd2a1f50c4e17dc195901885ecd421db9a6fe45360d7eac623873ae4efad80b92f31ebde59f4ed76d832c8cac450dac85 disable-integrity-check-as-default.patch | 229 | d2100a837fef1eeae5f706650ab4c985d9e00f61efa5526ef76c7c1f5811c3906eb6c3c13c151eff9677a0c303faab64411a5a84d6792728bc520d2c618d7d5b disable-integrity-check-as-default.patch |
230 | d6f951cbcb7ca48beb88d77e02a8669677e87bc32189b1eb7e63edc29c293bd6e1ee471c37b622e6b38fd2baf6cf198c872f92b256ffab17c92c31a3a05b5aa0 app-encryption-info-add-mcrypt.patch | 230 | baa9d671643cc27cf0b3259ac25ad97811523aab223c35a30f23776ba4866156f7b04e39511b98e5fc0e7f12774ed44d510b9ce50fc8ccac51a17c70020aa0e6 app-encryption-info-add-mcrypt.patch |
231 | 7d60ba2f1c012b0a1cded30f757b7ec0efe7fc4bfa7b5c6879f35eb80711ac1d5e6c894356346222a0de68b0808c99bac358aaae1c69124a855da2a98cdff6ec iconv-ascii-translit-not-supported.patch | 231 | de1b433c2fb2582b599cb25e718e454fc4b93543a5a60eee39a03bcccf35d281594611395bdebe02319bedd9a894507eef97010ebdfca381e0f1a09df283d375 iconv-ascii-translit-not-supported.patch |
232 | 478f5cd7c5d30380ea619d3e8ec623217a06a09b27534266f00297545c7d276b068c5d984673eebc5676e8bac7f45112549498944ce3fa678ac8a69541d7c430 use-external-docs-if-local-not-avail.patch | 232 | 478f5cd7c5d30380ea619d3e8ec623217a06a09b27534266f00297545c7d276b068c5d984673eebc5676e8bac7f45112549498944ce3fa678ac8a69541d7c430 use-external-docs-if-local-not-avail.patch |
233 | 5f73cd9399fa484ef15bd47e803c93381deffbc7699eceadbb5c27e43b20156806d74e5021a64d28f0165ef87b519e962780651711a37bceb9f0b04455dfdce1 nextcloud-config.php | 233 | 5f73cd9399fa484ef15bd47e803c93381deffbc7699eceadbb5c27e43b20156806d74e5021a64d28f0165ef87b519e962780651711a37bceb9f0b04455dfdce1 nextcloud-config.php |
234 | f224d72799ee5819979089eb58978225454223bee597c938681a4f6279eb49297fe9250ac54ccf8bcb33ae262bce43d085affb77723492ee662263710d4008c9 nextcloud.logrotate | 234 | 7388458a9e8b7afd3d3269718306410ffa59c3c23da4bef367a4d7f6d2570136fae9dd421b19c1441e7ffb15a5405e18bb5da67b1a15f9f45e8b98d3fda532ba nextcloud.logrotate |
235 | dcc57735d7d4af4a7ebbdd1186d301e51d2ae4675022aea6bf1111222dfa188a3a490ebd6e7c8a7ac30046cb7d93f81cec72a51acbc60d0c10b7fb64630c637a nextcloud.confd | 235 | dcc57735d7d4af4a7ebbdd1186d301e51d2ae4675022aea6bf1111222dfa188a3a490ebd6e7c8a7ac30046cb7d93f81cec72a51acbc60d0c10b7fb64630c637a nextcloud.confd |
236 | edb699ea6127b231793254115b334006c2d50a0d2ecc846188c3521ddffc3c0e19c5e2944f03cae81e6c645c859258380691081b1c522a22d40939b31db36e8a nextcloud.cron | 236 | edb699ea6127b231793254115b334006c2d50a0d2ecc846188c3521ddffc3c0e19c5e2944f03cae81e6c645c859258380691081b1c522a22d40939b31db36e8a nextcloud.cron |
237 | ee9073a6df4286cba2d1d855cf40863968f20677729b2c7848ab50a70d4915b8e84c957a850a03a707231256c11312e5792e7817dd50afbf73efe767fef2112d fpm-pool.conf | 237 | ee9073a6df4286cba2d1d855cf40863968f20677729b2c7848ab50a70d4915b8e84c957a850a03a707231256c11312e5792e7817dd50afbf73efe767fef2112d fpm-pool.conf |
diff --git a/community/nextcloud/app-encryption-info-add-mcrypt.patch b/community/nextcloud/app-encryption-info-add-mcrypt.patch index 35b7557ab5..025dee9368 100644 --- a/community/nextcloud/app-encryption-info-add-mcrypt.patch +++ b/community/nextcloud/app-encryption-info-add-mcrypt.patch | |||
@@ -4,12 +4,11 @@ dependencies can be read in info.xml). | |||
4 | 4 | ||
5 | --- a/apps/encryption/appinfo/info.xml | 5 | --- a/apps/encryption/appinfo/info.xml |
6 | +++ b/apps/encryption/appinfo/info.xml | 6 | +++ b/apps/encryption/appinfo/info.xml |
7 | @@ -25,6 +25,7 @@ | 7 | @@ -31,6 +31,7 @@ |
8 | </types> | 8 | |
9 | <dependencies> | 9 | <dependencies> |
10 | <lib>openssl</lib> | 10 | <lib>openssl</lib> |
11 | + <lib>mcrypt</lib> | 11 | + <lib>mcrypt</lib> |
12 | <nextcloud min-version="13" max-version="13" /> | 12 | <nextcloud min-version="14" max-version="14" /> |
13 | </dependencies> | 13 | </dependencies> |
14 | <settings> | 14 | |
15 | |||
diff --git a/community/nextcloud/disable-integrity-check-as-default.patch b/community/nextcloud/disable-integrity-check-as-default.patch index 87108c600a..54ea7a51e0 100644 --- a/community/nextcloud/disable-integrity-check-as-default.patch +++ b/community/nextcloud/disable-integrity-check-as-default.patch | |||
@@ -4,12 +4,12 @@ check doesn't add any value. | |||
4 | 4 | ||
5 | --- a/lib/private/IntegrityCheck/Checker.php | 5 | --- a/lib/private/IntegrityCheck/Checker.php |
6 | +++ b/lib/private/IntegrityCheck/Checker.php | 6 | +++ b/lib/private/IntegrityCheck/Checker.php |
7 | @@ -109,7 +109,7 @@ class Checker { | 7 | @@ -111,7 +111,7 @@ |
8 | * too prominent. So please do not add it to config.sample.php. | ||
9 | */ | 8 | */ |
9 | $isIntegrityCheckDisabled = false; | ||
10 | if ($this->config !== null) { | 10 | if ($this->config !== null) { |
11 | - $isIntegrityCheckDisabled = $this->config->getSystemValue('integrity.check.disabled', false); | 11 | - $isIntegrityCheckDisabled = $this->config->getSystemValue('integrity.check.disabled', false); |
12 | + $isIntegrityCheckDisabled = $this->config->getSystemValue('integrity.check.disabled', true); | 12 | + $isIntegrityCheckDisabled = $this->config->getSystemValue('integrity.check.disabled', true); |
13 | } else { | ||
14 | $isIntegrityCheckDisabled = false; | ||
15 | } | 13 | } |
14 | if ($isIntegrityCheckDisabled === true) { | ||
15 | return false; | ||
diff --git a/community/nextcloud/iconv-ascii-translit-not-supported.patch b/community/nextcloud/iconv-ascii-translit-not-supported.patch index f599a1b020..bb13a9514a 100644 --- a/community/nextcloud/iconv-ascii-translit-not-supported.patch +++ b/community/nextcloud/iconv-ascii-translit-not-supported.patch | |||
@@ -1,3 +1,5 @@ | |||
1 | iconv on Alpine does not support conversion to ASCII//TRANSLIT | ||
2 | |||
1 | --- a/apps/user_ldap/lib/Access.php | 3 | --- a/apps/user_ldap/lib/Access.php |
2 | +++ b/apps/user_ldap/lib/Access.php | 4 | +++ b/apps/user_ldap/lib/Access.php |
3 | @@ -1318,7 +1318,7 @@ | 5 | @@ -1318,7 +1318,7 @@ |
diff --git a/community/nextcloud/nextcloud-1202-fix-6028.patch b/community/nextcloud/nextcloud-1202-fix-6028.patch deleted file mode 100644 index bc7f64f796..0000000000 --- a/community/nextcloud/nextcloud-1202-fix-6028.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | --- a/lib/private/Template/CSSResourceLocator.php | ||
2 | +++ b/lib/private/Template/CSSResourceLocator.php | ||
3 | @@ -117,7 +117,7 @@ | ||
4 | parent::append($root, $file, $webRoot, $throw); | ||
5 | } else { | ||
6 | if (!$webRoot) { | ||
7 | - $tmpRoot = realpath($root); | ||
8 | + $tmpRoot = $root; | ||
9 | /* | ||
10 | * traverse the potential web roots upwards in the path | ||
11 | * | ||
12 | --- a/lib/private/Template/ResourceLocator.php | ||
13 | +++ b/lib/private/Template/ResourceLocator.php | ||
14 | @@ -125,7 +125,7 @@ | ||
15 | } | ||
16 | |||
17 | if (!$webRoot) { | ||
18 | - $tmpRoot = realpath($root); | ||
19 | + $tmpRoot = $root; | ||
20 | /* | ||
21 | * traverse the potential web roots upwards in the path | ||
22 | * | ||
diff --git a/community/nextcloud/nextcloud.logrotate b/community/nextcloud/nextcloud.logrotate index c5981ccb88..19e17fdf4d 100644 --- a/community/nextcloud/nextcloud.logrotate +++ b/community/nextcloud/nextcloud.logrotate | |||
@@ -1,6 +1,6 @@ | |||
1 | /var/log/nextcloud/*.log { | 1 | /var/log/nextcloud/*.log { |
2 | daily | 2 | daily |
3 | rotate 7 | ||
4 | compress | 3 | compress |
5 | copytruncate | 4 | copytruncate |
5 | su nextcloud www-data | ||
6 | } | 6 | } |
diff --git a/community/nextcloud/nextcloud10-dont-chmod.patch b/community/nextcloud/nextcloud14-dont-chmod.patch index 0a3b11975e..13b5e3efbf 100644 --- a/community/nextcloud/nextcloud10-dont-chmod.patch +++ b/community/nextcloud/nextcloud14-dont-chmod.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | --- a/lib/private/Config.php | 1 | --- a/lib/private/Config.php |
2 | +++ b/lib/private/Config.php | 2 | +++ b/lib/private/Config.php |
3 | @@ -229,9 +229,6 @@ | 3 | @@ -240,9 +240,6 @@ |
4 | touch ($this->configFilePath); | 4 | touch ($this->configFilePath); |
5 | $filePointer = fopen($this->configFilePath, 'r+'); | 5 | $filePointer = fopen($this->configFilePath, 'r+'); |
6 | 6 | ||
@@ -12,19 +12,19 @@ | |||
12 | // TODO fix this via DI once it is very clear that this doesn't cause side effects due to initialization order | 12 | // TODO fix this via DI once it is very clear that this doesn't cause side effects due to initialization order |
13 | --- a/lib/private/Log/File.php | 13 | --- a/lib/private/Log/File.php |
14 | +++ b/lib/private/Log/File.php | 14 | +++ b/lib/private/Log/File.php |
15 | @@ -130,9 +130,6 @@ | 15 | @@ -134,9 +134,6 @@ |
16 | } | 16 | } |
17 | $entry = json_encode($entry, JSON_PARTIAL_OUTPUT_ON_ERROR); | 17 | $entry = json_encode($entry, JSON_PARTIAL_OUTPUT_ON_ERROR); |
18 | $handle = @fopen(self::$logFile, 'a'); | 18 | $handle = @fopen($this->logFile, 'a'); |
19 | - if ((fileperms(self::$logFile) & 0777) != 0640) { | 19 | - if ((fileperms($this->logFile) & 0777) != 0640) { |
20 | - @chmod(self::$logFile, 0640); | 20 | - @chmod($this->logFile, 0640); |
21 | - } | 21 | - } |
22 | if ($handle) { | 22 | if ($handle) { |
23 | fwrite($handle, $entry."\n"); | 23 | fwrite($handle, $entry."\n"); |
24 | fclose($handle); | 24 | fclose($handle); |
25 | --- a/lib/private/TempManager.php | 25 | --- a/lib/private/TempManager.php |
26 | +++ b/lib/private/TempManager.php | 26 | +++ b/lib/private/TempManager.php |
27 | @@ -94,7 +94,6 @@ | 27 | @@ -95,7 +95,6 @@ |
28 | if($postFix !== '') { | 28 | if($postFix !== '') { |
29 | $fileNameWithPostfix = $this->buildFileNameWithSuffix($file, $postFix); | 29 | $fileNameWithPostfix = $this->buildFileNameWithSuffix($file, $postFix); |
30 | touch($fileNameWithPostfix); | 30 | touch($fileNameWithPostfix); |
@@ -34,7 +34,7 @@ | |||
34 | } | 34 | } |
35 | --- a/lib/private/legacy/util.php | 35 | --- a/lib/private/legacy/util.php |
36 | +++ b/lib/private/legacy/util.php | 36 | +++ b/lib/private/legacy/util.php |
37 | @@ -965,7 +965,6 @@ | 37 | @@ -1008,7 +1008,6 @@ |
38 | . ' cannot be listed by other users.'); | 38 | . ' cannot be listed by other users.'); |
39 | $perms = substr(decoct(@fileperms($dataDirectory)), -3); | 39 | $perms = substr(decoct(@fileperms($dataDirectory)), -3); |
40 | if (substr($perms, -1) !== '0') { | 40 | if (substr($perms, -1) !== '0') { |