Hello community, here is the log from the commit of package ocserv for openSUSE:Factory checked in at 2018-02-27 17:00:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocserv (Old) and /work/SRC/openSUSE:Factory/.ocserv.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocserv" Tue Feb 27 17:00:28 2018 rev:6 rq:580606 version:0.11.10 Changes: -------- --- /work/SRC/openSUSE:Factory/ocserv/ocserv.changes 2018-02-26 23:25:39.797230750 +0100 +++ /work/SRC/openSUSE:Factory/.ocserv.new/ocserv.changes 2018-02-27 17:00:55.585606486 +0100 @@ -1,0 +2,5 @@ +Tue Feb 27 02:50:33 UTC 2018 - [email protected] + +- add firewalld service + +------------------------------------------------------------------- New: ---- ocserv.firewalld.xml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocserv.spec ++++++ --- /var/tmp/diff_new_pack.V5ywSB/_old 2018-02-27 17:00:56.833561396 +0100 +++ /var/tmp/diff_new_pack.V5ywSB/_new 2018-02-27 17:00:56.837561252 +0100 @@ -33,6 +33,7 @@ Source3: user.tmpl Source4: ocserv.SuSEfirewall Source5: ocserv.sysctl +Source6: ocserv.firewalld.xml Source99: README.SUSE #PATCH-FIX-UPSTREAM [email protected] $LIBSYSTEMD_DAEMON env is not set on openSUSE Patch1: %{name}-enable-systemd.patch @@ -42,6 +43,9 @@ Patch3: %{name}-LZ4_compress_default.patch BuildRequires: autogen BuildRequires: dbus-1-devel +%if 0%{suse_version} >= 1500 +BuildRequires: firewall-macros +%endif BuildRequires: freeradius-client-devel BuildRequires: gperf BuildRequires: libev-devel @@ -105,6 +109,9 @@ install -Dm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv install -Dm 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysctl.d/60-ocserv.conf +%if 0%{suse_version} >= 1500 +install -D -m 644 %{SOURCE6} %{buildroot}%{_libexecdir}/firewalld/services/ocserv.xml +%endif install -d %{buildroot}%{_sysconfdir}/ocserv/certificates install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ocserv/certificates @@ -125,6 +132,9 @@ %post %service_add_post ocserv.service ocserv.socket +%if 0%{suse_version} >= 1500 +%firewalld_reload +%endif %preun %service_del_preun ocserv.service ocserv.socket @@ -138,6 +148,11 @@ %config %{_sysconfdir}/ocserv %config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv %config(noreplace) %{_sysconfdir}/sysctl.d/60-ocserv.conf +%if 0%{suse_version} >= 1500 +%dir %{_libexecdir}/firewalld +%dir %{_libexecdir}/firewalld/services +%{_libexecdir}/firewalld/services/ocserv.xml +%endif %{_bindir}/occtl %{_bindir}/ocpasswd %{_bindir}/ocserv-script ++++++ ocserv.firewalld.xml ++++++ <?xml version="1.0" encoding="utf-8"?> <service> <short>ocserv</short> <description>open ports for ocserv vpn service</description> <port port="9000" protocol="tcp"/> <port port="9001" protocol="udp"/> </service>
