]> TLD Linux GIT Repositories - packages/xrdp.git/commitdiff
- missing pam.d symlink + rm sesman.ini before install to be sure
authorMarcin Krol <hawk@tld-linux.org>
Wed, 26 Nov 2014 20:42:35 +0000 (20:42 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Wed, 26 Nov 2014 20:42:35 +0000 (20:42 +0000)
  we get correct version packaged

xrdp.spec

index f665ad2f1abf0aa1a2a941d10cb739ef419b98c7..5ed0c3c231a876d40d93ffedfb93d64601f06cab 100644 (file)
--- 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