commit f01e4ee02ea13f8825231bc1a5eb0405146fdbe4
parent e223541e0c0b3121cb0d7f246a14bd9492a4e27d
Author: Yosl <yosl@seattlemesh.net>
Date: Wed, 13 May 2020 18:57:48 -0400
Copies the nss plugins to the appropriate location
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/rpmbuild/SPECS/gnunet-fedora.spec b/rpmbuild/SPECS/gnunet-fedora.spec
@@ -252,6 +252,9 @@ mkdir -p /%{_sysconfdir}/%{name}
touch /%{_sysconfdir}/%{name}/gnunet.conf
mkdir -p ~/.config
touch ~/.config/gnunet.conf
+cp %{_libdir}/%{name}/nss/libnss_gns.so.2 %{_libdir}/%{name}/
+cp %{_libdir}/%{name}/nss/libnss_gns4.so.2 %{_libdir}/%{name}/
+cp %{_libdir}/%{name}/nss/libnss_gns6.so.2 %{_libdir}/%{name}/
authselect select sssd
awk -i inplace '/hosts: files/ && !x {print "hosts: files gns [NOTFOUND=return] dns mdns4_minimal mdns4"; x=1} 1' /%{_sysconfdir}/authselect/user-nsswitch.conf
authselect apply-changes