Accepting request 835368 from home:mrostecki:branches:network:utilities
- Remove firewalld service file - it's in the main firewalld package now. OBS-URL: https://build.opensuse.org/request/show/835368 OBS-URL: https://build.opensuse.org/package/show/network:utilities/nbd?expand=0&rev=72
This commit is contained in:
parent
1dc259c327
commit
7d600196ed
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 18 08:53:47 UTC 2020 - Michał Rostecki <mrostecki@suse.com>
|
||||||
|
|
||||||
|
- Remove firewalld service file - it's in the main firewalld
|
||||||
|
package now.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 20 07:03:13 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
Thu Aug 20 07:03:13 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<service>
|
|
||||||
<short>NBD</short>
|
|
||||||
<description>The Network Block Device is a Linux-originated lightweight block access protocol that allows one to export a block device to a client.</description>
|
|
||||||
<port protocol="tcp" port="10809"/>
|
|
||||||
</service>
|
|
18
nbd.spec
18
nbd.spec
@ -19,11 +19,6 @@
|
|||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} >= 1500
|
|
||||||
%define use_firewalld 1
|
|
||||||
%else
|
|
||||||
%define use_firewalld 0
|
|
||||||
%endif
|
|
||||||
Name: nbd
|
Name: nbd
|
||||||
Version: 3.20
|
Version: 3.20
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -36,9 +31,6 @@ Source1: %{name}-server.service
|
|||||||
Source3: config.example
|
Source3: config.example
|
||||||
Source4: nbd-server.sysconfig
|
Source4: nbd-server.sysconfig
|
||||||
Source5: nbd-client.service
|
Source5: nbd-client.service
|
||||||
#%%if %%{use_firewalld}
|
|
||||||
Source10: nbd.firewalld
|
|
||||||
#%%endif
|
|
||||||
Patch1: 0001_fix_setgroup.patch
|
Patch1: 0001_fix_setgroup.patch
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
@ -96,11 +88,6 @@ touch %{buildroot}%{_sysconfdir}/nbd-server/allow
|
|||||||
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/nbd-server/config.example
|
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/nbd-server/config.example
|
||||||
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name}-server
|
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.%{name}-server
|
||||||
|
|
||||||
# install firewall information file
|
|
||||||
%if %{use_firewalld}
|
|
||||||
install -D -m 644 %{SOURCE10} %{buildroot}%{_prefix}/lib/firewalld/services/%{name}.xml
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
export DISABLE_RESTART_ON_UPDATE=yes
|
export DISABLE_RESTART_ON_UPDATE=yes
|
||||||
%service_add_post %{name}-server.service
|
%service_add_post %{name}-server.service
|
||||||
@ -158,10 +145,5 @@ fi
|
|||||||
%dir %{_prefix}/lib/modules-load.d/
|
%dir %{_prefix}/lib/modules-load.d/
|
||||||
%{_prefix}/lib/modules-load.d/nbd.conf
|
%{_prefix}/lib/modules-load.d/nbd.conf
|
||||||
%{_fillupdir}/sysconfig.%{name}-server
|
%{_fillupdir}/sysconfig.%{name}-server
|
||||||
%if %{use_firewalld}
|
|
||||||
%dir %{_prefix}/lib/firewalld
|
|
||||||
%dir %{_prefix}/lib/firewalld/services
|
|
||||||
%{_prefix}/lib/firewalld/services/%{name}.xml
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user