From 561103978a4e670ddd3b07914d33d47f254252824e5e2821259aad6da22d6f5e Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sat, 15 Aug 2015 20:57:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=26 --- syncthing.changes | 6 ++++++ syncthing.firewall | 6 +++++- syncthing.spec | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/syncthing.changes b/syncthing.changes index 0693a39..a2473d7 100644 --- a/syncthing.changes +++ b/syncthing.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 15 19:43:27 UTC 2015 - sor.alexei@meowr.ru + +- Fix systemd service for openSUSE Leap 42.x and openSUSE 13.2. +- Fix SUSEfirewall rule by setting UDP ports as UDP ports. + ------------------------------------------------------------------- Sun Aug 9 21:43:38 UTC 2015 - sor.alexei@meowr.ru diff --git a/syncthing.firewall b/syncthing.firewall index bf9f587..365d96f 100644 --- a/syncthing.firewall +++ b/syncthing.firewall @@ -2,4 +2,8 @@ ## Description: Opens ports for Syncthing. # space separated list of allowed TCP ports -TCP="21025 21026 22000" +TCP="21025" + +# space separated list of allowed UDP ports +TCP="21026 22000" + diff --git a/syncthing.spec b/syncthing.spec index eb51e70..5cde957 100644 --- a/syncthing.spec +++ b/syncthing.spec @@ -39,6 +39,11 @@ Internet. %prep %setup -q +%if 0%{?suse_version} <= 1320 +# Remove an entry that only exists since systemd 215. +sed -i '/^RestartForceExitStatus=/d;s/^\(SuccessExitStatus=\).*$/\12/' \ + etc/linux-systemd/system/syncthing@.service +%endif %build echo "v%{version}" | tee RELEASE