commit 550baa7bcfdf9e7409d096e589e35f1b469887c6
Author: Simone Caronni <negativo17(a)gmail.com>
Date: Fri Jan 18 22:06:29 2019 +0100
Update firewall definitions
README.Fedora | 4 ++--
steam.xml => steam-streaming.xml | 5 +++--
steam.spec | 21 ++++++++++++++++-----
3 files changed, 21 insertions(+), 9 deletions(-)
---
diff --git a/README.Fedora b/README.Fedora
index 7674a84..184fe19 100644
--- a/README.Fedora
+++ b/README.Fedora
@@ -60,8 +60,8 @@ example, on my system, to get the firewall zone I’m using:
Then enable it permanently (i.e. at reboot) and immediately with these commands:
- # firewall-cmd --zone=public --add-service=steam --permanent
- # firewall-cmd --zone=public --add-service=steam
+ # firewall-cmd --zone=public --add-service=steam-streaming --permanent
+ # firewall-cmd --zone=public --add-service=steam-streaming
Now start up two Steam clients with your user on the same network, and you
should see games installed on both systems as available for playing in both
diff --git a/steam.xml b/steam-streaming.xml
similarity index 65%
rename from steam.xml
rename to steam-streaming.xml
index 369b25f..0e0aca6 100644
--- a/steam.xml
+++ b/steam-streaming.xml
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>Steam In-Home Streaming</short>
- <description>Steam in-home streaming allows you to play a game on one computer
when the game process is actually running on another computer elsewhere in your home.
Through Steam, game audio and video is captured on the remote computer and sent to the
player’s computer. The game input (keyboard, mouse or gamepad) is sent from the player’s
computer to the game process on the remote computer.</description>
+ <description>Steam in-home streaming allows you to play a game on one computer
when the game process is actually running on another computer elsewhere in your home.
Through Steam, game audio and video is captured on the remote computer and sent to the
player's computer. The game input (keyboard, mouse or gamepad) is sent from the
player's computer to the game process on the remote computer.</description>
<port protocol="tcp" port="27036"/>
<port protocol="tcp" port="27037"/>
- <port protocol="udp" port="27031-27036"/>
+ <port protocol="udp" port="27031"/>
+ <port protocol="udp" port="27036"/>
</service>
diff --git a/steam.spec b/steam.spec
index 7666be2..c666995 100644
--- a/steam.spec
+++ b/steam.spec
@@ -3,7 +3,7 @@
Name: steam
Version: 1.0.0.59
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Installer for the Steam software distribution service
# Redistribution and repackaging for Linux is allowed, see license file
License: Steam License Agreement
@@ -13,7 +13,7 @@ ExclusiveArch: i686
Source0:
http://repo.steampowered.com/%{name}/pool/%{name}/s/%{name}/%{name}_%{ver...
Source1: %{name}.sh
Source2: %{name}.csh
-Source3: %{name}.xml
+Source3: %{name}-streaming.xml
Source4: %{name}.appdata.xml
# Ghost touches in Big Picture mode:
@@ -97,7 +97,7 @@ Requires(post): firewalld-filesystem
# Required for hardware decoding during In-Home Streaming (intel)
# Since libva-intel-driver on f28+ there is hw detection with appstream
-%if (0%{?fedora} && 0%{?fedora} < 28) || 0%{?rhel} == 7
+%if 0%{?rhel} == 7
Requires: libva-intel-driver%{?_isa}
%else
Requires: libva%{?_isa}
@@ -148,8 +148,10 @@ install -m 644 -p lib/udev/rules.d/* \
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+%if 0%{?fedora} && 0%{?fedora} < 29 || 0%{?rhel} == 7
install -D -m 644 -p %{SOURCE3} \
- %{buildroot}%{_prefix}/lib/firewalld/services/steam.xml
+ %{buildroot}%{_prefix}/lib/firewalld/services/%{name}-streaming.xml
+%endif
# Environment files
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
@@ -173,7 +175,9 @@ install -m 644 -p %{SOURCE11}
%{buildroot}%{_prefix}/lib/systemd/user.conf.d/
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
%endif
+%if 0%{?fedora} && 0%{?fedora} < 29 || 0%{?rhel} == 7
%firewalld_reload
+%endif
%if 0%{?rhel} == 7
@@ -201,10 +205,13 @@ fi
%{_datadir}/pixmaps/%{name}_tray_mono.png
%{_libdir}/%{name}/
%{_mandir}/man6/%{name}.*
-%{_prefix}/lib/firewalld/services/%{name}.xml
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.*sh
%{_udevrulesdir}/*
+%if 0%{?fedora} && 0%{?fedora} < 29 || 0%{?rhel} == 7
+%{_prefix}/lib/firewalld/services/%{name}-streaming.xml
+%endif
+
# Since F30 (systemd 240) we don't need to raise NOFILE limit
%if 0%{?fedora} && 0%{?fedora} < 30
%{_prefix}/lib/systemd/system.conf.d/
@@ -214,6 +221,10 @@ fi
%endif
%changelog
+* Fri Jan 18 2019 Simone Caronni <negativo17(a)gmail.com> - 1.0.0.59-5
+- Firewall definitions already bundled in firewalld 0.6.2 on Fedora 29+.
+- Update firewall definitions to align with Fedora 29+.
+
* Wed Jan 16 2019 Simone Caronni <negativo17(a)gmail.com> - 1.0.0.59-4
- Fix Nvidia Shield Portable streaming with SteamLink.