comply with http://fedoraproject.org/wiki/Packaging:Tmpfiles.d (#1112016)
This commit is contained in:
parent
44921d754e
commit
268419043f
15
screen.spec
15
screen.spec
@ -4,7 +4,7 @@
|
||||
Summary: A screen manager that supports multiple logins on one terminal
|
||||
Name: screen
|
||||
Version: 4.2.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: http://www.gnu.org/software/screen
|
||||
@ -95,8 +95,8 @@ install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/screen
|
||||
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/screen
|
||||
|
||||
# And tell systemd to recreate it on start with tmpfs
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
|
||||
cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/screen.conf
|
||||
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
|
||||
cat <<EOF > $RPM_BUILD_ROOT%{_tmpfilesdir}/screen.conf
|
||||
# screen needs directory in /var/run
|
||||
%if %{with multiuser}
|
||||
d %{_localstatedir}/run/screen 0755 root root
|
||||
@ -133,16 +133,19 @@ fi
|
||||
%{_datadir}/screen
|
||||
%config(noreplace) %{_sysconfdir}/screenrc
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/screen
|
||||
%{_sysconfdir}/tmpfiles.d/screen.conf
|
||||
%{_tmpfilesdir}/screen.conf
|
||||
%if %{with multiuser}
|
||||
%attr(4755,root,root) %{_bindir}/screen
|
||||
%ghost %attr(755,root,root) %{_localstatedir}/run/screen
|
||||
%attr(755,root,root) %{_localstatedir}/run/screen
|
||||
%else
|
||||
%attr(2755,root,screen) %{_bindir}/screen
|
||||
%ghost %attr(775,root,screen) %{_localstatedir}/run/screen
|
||||
%attr(775,root,screen) %{_localstatedir}/run/screen
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Jun 23 2014 Rex Dieter <rdieter@fedoraproject.org> 4.2.1-3
|
||||
- comply with http://fedoraproject.org/wiki/Packaging:Tmpfiles.d (#1112016)
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user