Summary(pl.UTF-8): Klastrowy system przechowywania plików skalujący się do petabajtów
Name: glusterfs
Version: 10.3
-Release: 2
+Release: 3
License: LGPL v3+ or GPL v2 (libraries), GPL v3+ (programs)
Group: Applications/System
Source0: https://download.gluster.org/pub/gluster/glusterfs/10/%{version}/glusterfs-%{version}.tar.gz
# Source0-md5: 9c795c8479f244e81bca5b2499a480cc
Source1: glusterfsd.init
+Patch0: ssl_paths.patch
URL: https://www.gluster.org/
BuildRequires: acl-devel
BuildRequires: autoconf >= 2.50
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
%{_mandir}/man8/glusterfs.8*
%{_mandir}/man8/glusterfsd.8*
+
+%dir %{_var}/lib/glusterd
%dir %{_var}/log/glusterfs
%files libs
%{_mandir}/man8/gluster-setgfid2path.8*
%{_mandir}/man8/glusterd.8*
-%dir %{_var}/lib/glusterd
%dir %{_var}/lib/glusterd/groups
%config(noreplace) %verify(not md5 mtime size) %{_var}/lib/glusterd/groups/db-workload
%config(noreplace) %verify(not md5 mtime size) %{_var}/lib/glusterd/groups/distributed-virt
--- /dev/null
+diff -ur glusterfs-10.3.orig/rpc/rpc-transport/socket/src/socket.c glusterfs-10.3/rpc/rpc-transport/socket/src/socket.c
+--- glusterfs-10.3.orig/rpc/rpc-transport/socket/src/socket.c 2022-09-20 12:24:29.656820924 +0200
++++ glusterfs-10.3/rpc/rpc-transport/socket/src/socket.c 2023-02-15 16:02:26.665973455 +0100
+@@ -46,20 +46,12 @@
+ #define SSL_CRL_PATH_OPT "transport.socket.ssl-crl-path"
+ #define OWN_THREAD_OPT "transport.socket.own-thread"
+
+-#if !defined(DEFAULT_CERT_PATH)
+-#define DEFAULT_CERT_PATH SSL_CERT_PATH "/glusterfs.pem"
+-#endif
+-#if !defined(DEFAULT_KEY_PATH)
+-#define DEFAULT_KEY_PATH SSL_CERT_PATH "/glusterfs.key"
+-#endif
+-#if !defined(DEFAULT_CA_PATH)
+-#define DEFAULT_CA_PATH SSL_CERT_PATH "/glusterfs.ca"
+-#endif
+-#if !defined(DEFAULT_VERIFY_DEPTH)
++#define DEFAULT_CERT_PATH "/etc/glusterfs/glusterfs.pem"
++#define DEFAULT_KEY_PATH "/etc/glusterfs/glusterfs.key"
++#define DEFAULT_CA_PATH "/etc/glusterfs/glusterfs.ca"
+ #define DEFAULT_VERIFY_DEPTH 1
+-#endif
+ #define DEFAULT_CIPHER_LIST "EECDH:EDH:HIGH:!3DES:!RC4:!DES:!MD5:!aNULL:!eNULL"
+-#define DEFAULT_DH_PARAM SSL_CERT_PATH "/dhparam.pem"
++#define DEFAULT_DH_PARAM "/etc/glusterfs/dhparam.pem"
+ #define DEFAULT_EC_CURVE "prime256v1"
+
+ #define POLL_MASK_INPUT (POLLIN | POLLPRI)