From e3e4226f5f6f93c48d78456811853dbc68facf58ce3b99e4ed25246d65b4d90a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 9 Dec 2015 11:46:09 +0000 Subject: [PATCH] Accepting request 347994 from home:lee_duncan:branches:Base:System This is an updated version of the open-isns package. This functionality was previously supplied as a secondary RPM from the open-iscsi package, but since the two software projects have separated upstream, they must be separated here to stay up to date. OBS-URL: https://build.opensuse.org/request/show/347994 OBS-URL: https://build.opensuse.org/package/show/Base:System/open-isns?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + open-isns-Install-isns_config.5.patch | 33 +++++++++ open-isns-firewall.service | 17 +++++ open-isns.changes | 13 ++++ open-isns.spec | 96 +++++++++++++++++++++++++++ v0.95.tar.gz | 3 + 7 files changed, 186 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 open-isns-Install-isns_config.5.patch create mode 100644 open-isns-firewall.service create mode 100644 open-isns.changes create mode 100644 open-isns.spec create mode 100644 v0.95.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/open-isns-Install-isns_config.5.patch b/open-isns-Install-isns_config.5.patch new file mode 100644 index 0000000..b71477e --- /dev/null +++ b/open-isns-Install-isns_config.5.patch @@ -0,0 +1,33 @@ +From c239f2776d1991cb13b54976b5eaeeabfefc88f8 Mon Sep 17 00:00:00 2001 +From: Lee Duncan +Date: Tue, 8 Dec 2015 18:52:05 -0800 +Subject: [PATCH] Install isns_config.5 + +--- + Makefile.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 91f55c2832e4..080ae1d8edcd 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -90,7 +90,7 @@ all: $(LIB) isnsd isnsadm isnsdd $(TESTS) + + install: + @echo "*** Installing Open-iSNS ***" +- $(INSTALL) -m 755 -d $(CFGDIR) $(MANDIR)/man8 $(SBINDIR) $(SYSTEMDDIR) ++ $(INSTALL) -m 755 -d $(CFGDIR) $(MANDIR)/man8 $(MANDIR)/man5 $(SBINDIR) $(SYSTEMDDIR) + $(INSTALL) -m 700 -d $(VARDIR) + $(INSTALL) -m 555 isnsd isnsadm isnsdd $(SBINDIR) + $(INSTALL) -m 644 etc/isnsd.conf $(CFGDIR) +@@ -99,6 +99,7 @@ install: + $(INSTALL) -m 644 doc/isnsd.8 $(MANDIR)/man8 + $(INSTALL) -m 644 doc/isnsdd.8 $(MANDIR)/man8 + $(INSTALL) -m 644 doc/isnsadm.8 $(MANDIR)/man8 ++ $(INSTALL) -m 644 doc/isns_config.5 $(MANDIR)/man5 + $(INSTALL) -m 644 isnsd.service $(SYSTEMDDIR) + $(INSTALL) -m 644 isnsd.socket $(SYSTEMDDIR) + +-- +2.1.4 + diff --git a/open-isns-firewall.service b/open-isns-firewall.service new file mode 100644 index 0000000..fddc902 --- /dev/null +++ b/open-isns-firewall.service @@ -0,0 +1,17 @@ +## Name: iSNS iSCSI Name Server Daemon +## Description: Opens ports for iSNS Name Server Daemon with broadcast allowed. + +# space separated list of allowed TCP ports +TCP="isns" + +# space separated list of allowed UDP ports +UDP="isns" + +# space separated list of allowed RPC services +RPC="" + +# space separated list of allowed IP protocols +IP="" + +# space separated list of allowed UDP broadcast ports +BROADCAST="isns" diff --git a/open-isns.changes b/open-isns.changes new file mode 100644 index 0000000..8ee3c69 --- /dev/null +++ b/open-isns.changes @@ -0,0 +1,13 @@ +------------------------------------------------------------------- +Wed Dec 9 02:56:43 UTC 2015 - lduncan@suse.com + +- Also must install isns_config.5, added upstream patch: + open-isns-open-isns-Install-isns_config.5.patch + +------------------------------------------------------------------- +Tue Dec 8 17:10:52 UTC 2015 - lduncan@suse.com + +- Initial creation of Build Service project, using version + 0.95 of open-isns from github.com/gonzoleeman/open-isns + +------------------------------------------------------------------- diff --git a/open-isns.spec b/open-isns.spec new file mode 100644 index 0000000..f7559a5 --- /dev/null +++ b/open-isns.spec @@ -0,0 +1,96 @@ +# +# spec file for package open-isns +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: open-isns +Summary: Partial Implementation of iSNS iSCSI registration +License: GPL-2.0+ +Group: System Environment/Kernel +Version: 0.95 +Release: 0 +Source: https://github.com/gonzoleeman/%{name}/archive/v%{version}.tar.gz +Url: https://github.com/gonzoleeman/%{name} +Source1: %{name}-firewall.service +Patch1: %{name}-Install-isns_config.5.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: glibc-devel +BuildRequires: systemd-rpm-macros +BuildRequires: openssl-devel +%{?systemd_requires} + +%description +This is a partial implementation of the iSNS protocol (see below), +which supplies directory services for iSCSI initiators and targets. + +The iSNS protocol is specified in +[RFC 4171](http://tools.ietf.org/html/rfc4171) and its purpose is to +make easier to discover, manage, and configure iSCSI devices. With +iSNS, iSCSI targets can be registered to a central iSNS server and +initiators can be configured to discover the targets by asking the +iSNS server. + +%prep +%setup -n %{name}-%{version} +%patch1 -p1 + +%build +autoconf +autoheader +%configure --prefix=%{_prefix} +%{__make} OPTFLAGS="${RPM_OPT_FLAGS}" + +%install +%{__make} DESTDIR=${RPM_BUILD_ROOT} install +if [ ! -d ${RPM_BUILD_ROOT}/usr/sbin ] ; then + mkdir -p ${RPM_BUILD_ROOT}/usr/sbin +fi +ln -sf /usr/sbin/service ${RPM_BUILD_ROOT}/usr/sbin/rcisnsd +install -vD %{S:1} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/isns + +%post +%{service_add_post isnsd.socket isnsd.service} + +%postun +%{service_del_postun isnsd.socket isnsd.service} + +%pre +%{service_add_pre isnsd.socket isnsd.service} + +%preun +%{service_del_preun isnsd.socket isnsd.service} + +%files +%defattr(-,root,root) +%{_sbindir}/isnsd +%{_sbindir}/isnsadm +%{_sbindir}/isnsdd +%dir %{_sysconfdir}/isns +%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/isnsdd.conf +%attr(0644,root,root) %config /etc/sysconfig/SuSEfirewall2.d/services/isns +%{_sbindir}/rcisnsd +%doc COPYING HACKING README TODO +%doc %{_mandir}/man8/isnsd.8%{?ext_man} +%doc %{_mandir}/man8/isnsadm.8%{?ext_man} +%doc %{_mandir}/man8/isnsdd.8%{?ext_man} +%doc %{_mandir}/man5/isns_config.5%{?ext_man} +%{_unitdir}/isnsd.service +%{_unitdir}/isnsd.socket + +%changelog diff --git a/v0.95.tar.gz b/v0.95.tar.gz new file mode 100644 index 0000000..396ddf0 --- /dev/null +++ b/v0.95.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3508e89ffd745e0b2901ec52c491fa2fddee7a83adff575a8ecb712da80cdb2a +size 270334