Resolves: #1429174 - update spec file

epel9
Josef Ridky 8 years ago
parent 63e73c5621
commit bf9ee85a9c

@ -62,7 +62,7 @@ support multiple logins on one terminal.
--with-pty-mode=0620 \
--with-pty-group=$(getent group tty | cut -d : -f 3) \
--with-sys-screenrc="%{_sysconfdir}/screenrc" \
--with-socket-dir="%{_localstatedir}/run/screen"
--with-socket-dir="%{_rundir}/screen"
# We would like to have braille support.
sed -i -e 's/.*#.*undef.*HAVE_BRAILLE.*/#define HAVE_BRAILLE 1/;' config.h
@ -93,16 +93,16 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/screen
# Create the socket dir
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/screen
mkdir -p $RPM_BUILD_ROOT%{_rundir}/screen
# And tell systemd to recreate it on start with tmpfs
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
cat <<EOF > $RPM_BUILD_ROOT%{_tmpfilesdir}/screen.conf
# screen needs directory in /var/run
# screen needs directory in /run
%if %{with multiuser}
d %{_localstatedir}/run/screen 0755 root root
d %{_rundir}/screen 0755 root root
%else
d %{_localstatedir}/run/screen 0775 root screen
d %{_rundir}/screen 0775 root screen
%endif
EOF
@ -131,16 +131,17 @@ fi
%doc README doc/FAQ doc/README.DOTSCREEN ChangeLog
%license COPYING
%{_mandir}/man1/screen.*
%{_infodir}/screen.info*
%{_datadir}/screen
%config(noreplace) %{_sysconfdir}/screenrc
%config(noreplace) %{_sysconfdir}/pam.d/screen
%{_tmpfilesdir}/screen.conf
%if %{with multiuser}
%attr(4755,root,root) %{_bindir}/screen
%attr(755,root,root) %{_localstatedir}/run/screen
%attr(755,root,root) %{_rundir}/screen
%else
%attr(2755,root,screen) %{_bindir}/screen
%attr(775,root,screen) %{_localstatedir}/run/screen
%attr(775,root,screen) %{_rundir}/screen
%endif
%changelog

Loading…
Cancel
Save