From beb5c301567f67f96633c8c5a67340c3b57bbf0f Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Wed, 26 Nov 2014 20:42:35 +0000 Subject: [PATCH] - missing pam.d symlink + rm sesman.ini before install to be sure we get correct version packaged --- xrdp.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xrdp.spec b/xrdp.spec index f665ad2..5ed0c3c 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -82,6 +82,9 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name},pam.d,rc.d/init.d} install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/xrdp install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/sesman +%{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/xrdp-sesman +%{__ln} -s sesman $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/xrdp-sesman +%{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/sesman.ini install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/sesman.ini %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.{a,la,so} @@ -109,6 +112,7 @@ rm -rf $RPM_BUILD_ROOT %doc README.TLD %doc README.TLD.pl %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sesman +%attr(640,root,root) /etc/pam.d/xrdp-sesman %attr(754,root,root) /etc/rc.d/init.d/xrdp %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/xrdp.ini -- 2.46.0