mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
New package: nextcloud-client 2.6.0
This commit is contained in:
parent
0214b4a75a
commit
027330c529
5 changed files with 81 additions and 0 deletions
1
srcpkgs/nextcloud-client-devel
Symbolic link
1
srcpkgs/nextcloud-client-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
nextcloud-client
|
1
srcpkgs/nextcloud-client-dolphin
Symbolic link
1
srcpkgs/nextcloud-client-dolphin
Symbolic link
|
@ -0,0 +1 @@
|
|||
nextcloud-client
|
2
srcpkgs/nextcloud-client/INSTALL.msg
Normal file
2
srcpkgs/nextcloud-client/INSTALL.msg
Normal file
|
@ -0,0 +1,2 @@
|
|||
NextCloud client end-to-end encryption (e2e) is currently unavailable
|
||||
(LibreSSL 2.9.2 does not provide EVP_PKEY_CTX_set_rsa_oaep_md primitive)
|
|
@ -0,0 +1,23 @@
|
|||
source: https://github.com/nextcloud/desktop/issues/738
|
||||
|
||||
--- src/libsync/clientsideencryption.cpp.ORIG 2019-07-25 12:20:49.000000000 +0200
|
||||
+++ src/libsync/clientsideencryption.cpp 2019-07-28 12:56:18.813514323 +0200
|
||||
@@ -35,6 +35,18 @@
|
||||
|
||||
#include "wordlist.h"
|
||||
|
||||
+/* libessl 2.92 does not provide EVP_PKEY_CTX_set_rsa_oaep_md
|
||||
+ * So with LibreSSL EVP_PKEY_CTX_ctrl() should explicitly return an error
|
||||
+ * "operation not supported" when you try to use e2e
|
||||
+ */
|
||||
+#ifndef EVP_PKEY_CTX_set_rsa_oaep_md
|
||||
+#define EVP_PKEY_CTRL_RSA_OAEP_MD (EVP_PKEY_ALG_CTRL + 9)
|
||||
+#define EVP_PKEY_CTRL_GET_RSA_OAEP_MD (EVP_PKEY_ALG_CTRL + 11)
|
||||
+#define EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \
|
||||
+ EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \
|
||||
+ EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md))
|
||||
+#endif
|
||||
+
|
||||
QDebug operator<<(QDebug out, const std::string& str)
|
||||
{
|
||||
out << QString::fromStdString(str);
|
54
srcpkgs/nextcloud-client/template
Normal file
54
srcpkgs/nextcloud-client/template
Normal file
|
@ -0,0 +1,54 @@
|
|||
# Template file for 'nextcloud-client'
|
||||
pkgname=nextcloud-client
|
||||
version=2.6.0
|
||||
revision=1
|
||||
wrksrc="desktop-${version}"
|
||||
build_style=cmake
|
||||
configure_args="-Wno-dev"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="qt5-tools-devel qt5-webengine-devel qt5-declarative-devel
|
||||
qt5-webchannel-devel qt5-location-devel qtkeychain-qt5-devel sqlite-devel
|
||||
qt5-webkit-devel libcloudproviders-devel $(vopt_if dolphin 'extra-cmake-modules kio-devel')"
|
||||
conf_files="/etc/Nextcloud/sync-exclude.lst"
|
||||
short_desc="NextCloud Desktop client"
|
||||
maintainer="yopito <pierre.bourgin@free.fr>"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://nextcloud.com/clients/"
|
||||
distfiles="https://github.com/nextcloud/desktop/archive/v${version}.tar.gz"
|
||||
checksum=7b3f3c14d2e44826a5183fd59a7412c6dd5ed00296873e35c566f75c14c3a3ea
|
||||
|
||||
build_options="dolphin"
|
||||
desc_option_dolphin="Build KDE dolphin support"
|
||||
build_options_default="dolphin"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
armv6*|armv7*) broken="qt5-tools-devel unavailable" ;;
|
||||
esac
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" qt5-qmake qt5-host-tools qt5-tools"
|
||||
# provides desktoptojson
|
||||
hostmakedepends+=" $(vopt_if dolphin 'kcoreaddons')"
|
||||
fi
|
||||
|
||||
if [ $build_option_dolphin ]; then
|
||||
nextcloud-client-dolphin_package() {
|
||||
short_desc+=" - KDE dolphin integration"
|
||||
depends="nextcloud-client>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/libnextclouddolphinpluginhelper.so
|
||||
vmove usr/lib/qt5
|
||||
vmove usr/share/kservices5
|
||||
}
|
||||
}
|
||||
fi
|
||||
|
||||
nextcloud-client-devel_package() {
|
||||
depends="nextcloud-client>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/libnextcloudsync.so
|
||||
vmove "usr/lib/nextcloud/*.so"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue