forked from pool/screen
Accepting request 1043751 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1043751 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/screen?expand=0&rev=62
This commit is contained in:
commit
6e6150e26c
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 16 22:18:05 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Use %_pam_vendordir
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 12 14:28:14 UTC 2022 - Stefan Schubert <schubi@suse.com>
|
||||
|
||||
- Migration PAM settings to /usr/etc: Saving user changed
|
||||
configuration files in /etc and restoring them while an RPM
|
||||
update.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 26 11:08:20 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
|
26
screen.spec
26
screen.spec
@ -88,7 +88,11 @@ rm -f %{buildroot}%{_bindir}/screen
|
||||
mv %{buildroot}%{_bindir}/screen-%{version} %{buildroot}%{_bindir}/screen
|
||||
chmod 755 %{buildroot}%{_bindir}/screen
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
%if 0%{?suse_version} > 1500
|
||||
mkdir -p %{buildroot}%{_pam_vendordir}
|
||||
%else
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
||||
%endif
|
||||
mkdir -p %{buildroot}%{_prefix}/lib
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
mkdir -p %{buildroot}%{rundir}/screens
|
||||
@ -96,11 +100,19 @@ chmod 755 %{buildroot}%{rundir}/screens
|
||||
mkdir -p %{buildroot}%{rundir}/uscreens
|
||||
install -m 644 screenrc %{buildroot}%{_sysconfdir}/screenrc
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}
|
||||
%if 0%{?suse_version} > 1500
|
||||
install -m 644 %{SOURCE4} %{buildroot}%{_pam_vendordir}/screen
|
||||
%else
|
||||
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/screen
|
||||
%endif
|
||||
|
||||
%files
|
||||
%config %{_sysconfdir}/screenrc
|
||||
%if 0%{?suse_version} > 1500
|
||||
%{_pam_vendordir}/screen
|
||||
%else
|
||||
%config %{_sysconfdir}/pam.d/screen
|
||||
%endif
|
||||
%attr(555,root,root) %{_bindir}/screen
|
||||
%dir %{_datadir}/screen
|
||||
%{_tmpfilesdir}/screen.conf
|
||||
@ -109,6 +121,20 @@ install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/screen
|
||||
%{_mandir}/man1/screen.1%{?ext_man}
|
||||
%license COPYING
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%pre
|
||||
# Prepare for migration to /usr/etc; save any old .rpmsave
|
||||
for i in pam.d/screen ; do
|
||||
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||
done
|
||||
|
||||
%posttrans
|
||||
# Migration to /usr/etc, restore just created .rpmsave
|
||||
for i in pam.d/screen ; do
|
||||
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||
done
|
||||
%endif
|
||||
|
||||
%post
|
||||
%tmpfiles_create %{_tmpfilesdir}/screen.conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user