This commit is contained in:
parent
fc2bf22693
commit
6faec63675
@ -43,7 +43,7 @@ Patch2: %{name}.config.patch
|
|||||||
Patch3: %{name}-LZ4_compress_default.patch
|
Patch3: %{name}-LZ4_compress_default.patch
|
||||||
BuildRequires: autogen
|
BuildRequires: autogen
|
||||||
BuildRequires: dbus-1-devel
|
BuildRequires: dbus-1-devel
|
||||||
%if 0%{suse_version} > 120300
|
%if 0%{suse_version} >= 1500
|
||||||
BuildRequires: firewall-macros
|
BuildRequires: firewall-macros
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: freeradius-client-devel
|
BuildRequires: freeradius-client-devel
|
||||||
@ -109,7 +109,7 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|||||||
|
|
||||||
install -Dm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv
|
install -Dm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv
|
||||||
install -Dm 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysctl.d/60-ocserv.conf
|
install -Dm 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysctl.d/60-ocserv.conf
|
||||||
%if 0%{suse_version} > 120300
|
%if 0%{suse_version} >= 1500
|
||||||
install -D -m 644 %{SOURCE6} %{buildroot}%{_libexecdir}/firewalld/services/ocserv.xml
|
install -D -m 644 %{SOURCE6} %{buildroot}%{_libexecdir}/firewalld/services/ocserv.xml
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ install -m 0644 doc/systemd/socket-activated/ocserv.service %{buildroot}%{_unitd
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post ocserv.service ocserv.socket
|
%service_add_post ocserv.service ocserv.socket
|
||||||
%if 0%{suse_version} > 120300
|
%if 0%{suse_version} >= 1500
|
||||||
%firewalld_reload
|
%firewalld_reload
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ install -m 0644 doc/systemd/socket-activated/ocserv.service %{buildroot}%{_unitd
|
|||||||
%config %{_sysconfdir}/ocserv
|
%config %{_sysconfdir}/ocserv
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv
|
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv
|
||||||
%config(noreplace) %{_sysconfdir}/sysctl.d/60-ocserv.conf
|
%config(noreplace) %{_sysconfdir}/sysctl.d/60-ocserv.conf
|
||||||
%if 0%{suse_version} > 120300
|
%if 0%{suse_version} >= 1500
|
||||||
%dir %{_libexecdir}/firewalld
|
%dir %{_libexecdir}/firewalld
|
||||||
%dir %{_libexecdir}/firewalld/services
|
%dir %{_libexecdir}/firewalld/services
|
||||||
%{_libexecdir}/firewalld/services/ocserv.xml
|
%{_libexecdir}/firewalld/services/ocserv.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user