todo.txt (785B)
1 Proper postinst with authselect: 2 3 %post 4 mkdir -p /%{_sysconfdir}/%{name} 5 touch /%{_sysconfdir}/%{name}/gnunet.conf 6 mkdir -p ~/.config 7 touch ~/.config/gnunet.conf 8 # FIXME: This needs to be done using authselect 9 # See also https://fedoraproject.org/wiki/Changes/Make_Authselect_Mandatory#Detailed_Description 10 #cp -p %{_libdir}/%{name}/nss/libnss_gns.so.2 %{_libdir}/%{name}/ 11 #cp -p %{_libdir}/%{name}/nss/libnss_gns4.so.2 %{_libdir}/%{name}/ 12 #cp -p %{_libdir}/%{name}/nss/libnss_gns6.so.2 %{_libdir}/%{name}/ 13 #authselect select -f sssd 14 #touch /%{_sysconfdir}/authselect/user-nsswitch.conf 15 #awk -i inplace '/hosts: files/ && !x {print "hosts: files gns [NOTFOUND=return] dns mdns4_minimal mdns4"; x=1} 1' /%{_sysconfdir}/authselect/user-nsswitch.conf 16 #authselect apply-changes 17