Accepting request 854122 from home:lee_duncan:branches:Base:System
- Added file isns.xml for firewalld, updated SPEC file for it, since SuSEfirewall2 is deprecated. OBS-URL: https://build.opensuse.org/request/show/854122 OBS-URL: https://build.opensuse.org/package/show/Base:System/open-isns?expand=0&rev=34
This commit is contained in:
parent
352f995a18
commit
8970442ddb
7
isns.xml
Normal file
7
isns.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<service>
|
||||||
|
<short>iSNS</short>
|
||||||
|
<description>The Internet Storage Name Service makes it easier to discover, manage, and configure iSCSI devices. Enable this service if you run the isnsd daemon (server).</description>
|
||||||
|
<port protocol="tcp" port="3205"/>
|
||||||
|
<port protocol="udp" port="3205"/>
|
||||||
|
</service>
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 7 23:49:05 UTC 2020 - Lee Duncan <lduncan@suse.com>
|
||||||
|
|
||||||
|
- Added file isns.xml for firewalld, updated SPEC file for it,
|
||||||
|
since SuSEfirewall2 is deprecated.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 4 20:08:53 UTC 2020 - Lee Duncan <lduncan@suse.com>
|
Fri Dec 4 20:08:53 UTC 2020 - Lee Duncan <lduncan@suse.com>
|
||||||
|
|
||||||
|
@ -25,9 +25,11 @@ Release: 0
|
|||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
Patch1: %{name}-updates.diff.bz2
|
Patch1: %{name}-updates.diff.bz2
|
||||||
URL: https://github.com/open-iscsi/%{name}
|
URL: https://github.com/open-iscsi/%{name}
|
||||||
|
Source1: isns.xml
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
|
BuildRequires: firewall-macros
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
@ -63,7 +65,7 @@ Files to develop an application using the open-isns library.
|
|||||||
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
|
||||||
autoconf
|
autoconf
|
||||||
autoheader
|
autoheader
|
||||||
%configure --prefix=/usr --with-security
|
%configure --prefix=%{_prefix} --with-security
|
||||||
make OPTFLAGS="%{optflags}"
|
make OPTFLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -73,6 +75,7 @@ if [ ! -d "%{buildroot}/usr/sbin" ] ; then
|
|||||||
fi
|
fi
|
||||||
ln -sf /usr/sbin/service %{buildroot}/usr/sbin/rcisnsd
|
ln -sf /usr/sbin/service %{buildroot}/usr/sbin/rcisnsd
|
||||||
make DESTDIR="%{buildroot}" install_hdrs install_lib
|
make DESTDIR="%{buildroot}" install_hdrs install_lib
|
||||||
|
install -D -m 644 %{S:1} %{buildroot}%{_prefix}/lib/firewalld/services/isns.xml
|
||||||
install -m 755 isnssetup %{buildroot}%{_sbindir}
|
install -m 755 isnssetup %{buildroot}%{_sbindir}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -80,6 +83,7 @@ install -m 755 isnssetup %{buildroot}%{_sbindir}
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
%{service_del_postun isnsd.socket isnsd.service}
|
%{service_del_postun isnsd.socket isnsd.service}
|
||||||
|
%firewalld_reload
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%{service_add_pre isnsd.socket isnsd.service}
|
%{service_add_pre isnsd.socket isnsd.service}
|
||||||
@ -97,6 +101,9 @@ install -m 755 isnssetup %{buildroot}%{_sbindir}
|
|||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsd.conf
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsd.conf
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsadm.conf
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsadm.conf
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsdd.conf
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/isns/isnsdd.conf
|
||||||
|
%dir %{_prefix}/lib/firewalld
|
||||||
|
%dir %{_prefix}/lib/firewalld/services
|
||||||
|
%{_prefix}/lib/firewalld/services/isns.xml
|
||||||
%{_sbindir}/rcisnsd
|
%{_sbindir}/rcisnsd
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc HACKING README TODO
|
%doc HACKING README TODO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user