From 27365eb3159b62e6591a16b02f3c602496548322bbfdbf3786f66a40d7e0e378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Sun, 8 Feb 2015 12:50:42 +0000 Subject: [PATCH] file PAM dir OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=14 --- cockpit.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cockpit.spec b/cockpit.spec index 17a7250..68090f3 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -211,6 +211,10 @@ mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/%{name}/html ln -sf /sbin/service $RPM_BUILD_ROOT/usr/sbin/rc%{name} # no firewalld on SUSE rm -rf %{buildroot}%{_prefix}/lib/firewalld +# PAM security +install -d %{_lib}/security +mv %{buildroot}%{_libdir}/security/pam_reauthorize.so %{buildroot}%{_lib}/security +rm -rf %{_libdir}/security %endif %files @@ -235,9 +239,10 @@ rm -rf %{buildroot}%{_prefix}/lib/firewalld %{_bindir}/cockpit-bridge %attr(4755, -, -) %{_libexecdir}/cockpit-polkit %if 0%{?suse_version} -%dir %{_libdir}/security -%endif +%{_lib}/security/pam_reauthorize.so +%else %{_libdir}/security/pam_reauthorize.so +%endif %files daemon %if 0%{?suse_version}