Compare commits
No commits in common. "c8s" and "c9-beta" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
||||
SOURCES/open-isns-0.99.tar.gz
|
||||
/open-isns-0.99.tar.gz
|
||||
SOURCES/open-isns-0.101.tar.gz
|
||||
|
1
.isns-utils.metadata
Normal file
1
.isns-utils.metadata
Normal file
@ -0,0 +1 @@
|
||||
df4c87a162206673049dfc153dcc0e6d24c88e8c SOURCES/open-isns-0.101.tar.gz
|
9
SOURCES/isnsd.service
Normal file
9
SOURCES/isnsd.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=ISNS Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/isnsd -f
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
47
SOURCES/test_as_installed.patch
Normal file
47
SOURCES/test_as_installed.patch
Normal file
@ -0,0 +1,47 @@
|
||||
From 420ae1af11fad3151b5bfa676e7218168e4e6f3f Mon Sep 17 00:00:00 2001
|
||||
From: Chris Leech <cleech@redhat.com>
|
||||
Date: Wed, 26 May 2021 10:00:17 -0700
|
||||
Subject: [PATCH 1/1] run tests with binaries from arbitrary paths
|
||||
|
||||
---
|
||||
tests/Makefile | 4 ++++
|
||||
tests/harness.py | 4 ++++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/tests/Makefile b/tests/Makefile
|
||||
index 372572d..2c61183 100644
|
||||
--- a/tests/Makefile
|
||||
+++ b/tests/Makefile
|
||||
@@ -48,3 +48,7 @@ quick: tests-no-security
|
||||
tests-no-security:
|
||||
@echo running tests without security -- takes about 2 minutes
|
||||
./test-isns.py
|
||||
+
|
||||
+tests-as-installed:
|
||||
+ @echo running tests from installed executables -- takes about 2 minutes
|
||||
+ ./test-isns.py -s --path="/usr/sbin"
|
||||
diff --git a/tests/harness.py b/tests/harness.py
|
||||
index 39fc5e6..b710f5a 100644
|
||||
--- a/tests/harness.py
|
||||
+++ b/tests/harness.py
|
||||
@@ -137,6 +137,9 @@ def new_initArgParsers(self):
|
||||
self._main_parser.add_argument('-d', '--debug', dest='debug',
|
||||
action='store_true',
|
||||
help='Enable developer debugging')
|
||||
+ self._main_parser.add_argument('--path', dest='path',
|
||||
+ action='store', default='..',
|
||||
+ help='Set isns bin path, to run from installed executables')
|
||||
|
||||
def new_parseArgs(self, argv):
|
||||
"""
|
||||
@@ -148,6 +151,7 @@ def new_parseArgs(self, argv):
|
||||
Global.verbosity = self.verbosity
|
||||
Global.security = self.security
|
||||
Global.debug = self.debug
|
||||
+ Global._isns_bin_dir = self.path
|
||||
dprint("found: verbosity=%d, security=%s" % \
|
||||
(Global.verbosity, Global.security))
|
||||
|
||||
--
|
||||
2.31.1
|
||||
|
@ -1,21 +1,21 @@
|
||||
Name: isns-utils
|
||||
Version: 0.99
|
||||
Release: 1%{?dist}
|
||||
Version: 0.101
|
||||
Release: 4%{?dist}
|
||||
Summary: The iSNS daemon and utility programs
|
||||
|
||||
Group: System Environment/Daemons
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/open-iscsi/open-isns
|
||||
Source0: https://github.com/open-iscsi/open-isns/archive/v%{version}.tar.gz#/open-isns-%{version}.tar.gz
|
||||
Patch1: fix-openssl-argument-order-in-tests.patch
|
||||
Patch2: test_as_installed.patch
|
||||
Source1: isnsd.service
|
||||
Patch1: test_as_installed.patch
|
||||
|
||||
BuildRequires: openssl-devel automake pkgconfig systemd-devel systemd
|
||||
BuildRequires: gcc
|
||||
BuildRequires: automake pkgconfig systemd-devel systemd
|
||||
BuildRequires: make
|
||||
Requires(post): systemd-units
|
||||
Requires(preun): systemd-units
|
||||
Requires(postun): systemd-units
|
||||
|
||||
|
||||
%description
|
||||
The iSNS package contains the daemon and tools to setup a iSNS server,
|
||||
and iSNS client tools. The Internet Storage Name Service (iSNS) protocol
|
||||
@ -23,14 +23,12 @@ allows automated discovery, management and configuration of iSCSI and
|
||||
Fibre Channel devices (using iFCP gateways) on a TCP/IP network.
|
||||
|
||||
%package libs
|
||||
Group: Development/Libraries
|
||||
Summary: Shared library files for iSNS
|
||||
|
||||
%description libs
|
||||
Shared library files for iSNS
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
Summary: Development files for iSNS
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
@ -39,32 +37,35 @@ Development files for iSNS
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n open-isns-%{version} -p1
|
||||
%autosetup -p1 -n open-isns-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%configure --enable-shared --disable-static
|
||||
make %{?_smp_mflags}
|
||||
%configure --enable-shared --disable-static --without-security
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
%make_install
|
||||
make install_hdrs DESTDIR=%{buildroot}
|
||||
make install_lib DESTDIR=%{buildroot}
|
||||
chmod 755 %{buildroot}%{_sbindir}/isns*
|
||||
chmod 755 %{buildroot}%{_libdir}/libisns.so.0
|
||||
rm %{buildroot}%{_unitdir}/isnsd.service
|
||||
rm %{buildroot}%{_unitdir}/isnsd.socket
|
||||
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/isnsd.service
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post isnsd.service isnsd.socket
|
||||
%systemd_post isnsd.service
|
||||
|
||||
|
||||
%postun
|
||||
%systemd_postun isnsd.service isnsd.socket
|
||||
%systemd_postun isnsd.service
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_preun isnsd.service isnsd.socket
|
||||
%systemd_preun isnsd.service
|
||||
|
||||
|
||||
%triggerun -- isns-utils < 0.91-7
|
||||
@ -78,13 +79,10 @@ chmod 755 %{buildroot}%{_libdir}/libisns.so.0
|
||||
/bin/systemctl try-restart isnsd.service >/dev/null 2>&1 || :
|
||||
|
||||
|
||||
%post -n %{name}-libs -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{name}-libs -p /sbin/ldconfig
|
||||
%ldconfig_scriptlets -n %{name}-libs
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README
|
||||
%{_sbindir}/isnsd
|
||||
%{_sbindir}/isnsadm
|
||||
@ -92,25 +90,63 @@ chmod 755 %{buildroot}%{_libdir}/libisns.so.0
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
||||
%{_unitdir}/isnsd.service
|
||||
%{_unitdir}/isnsd.socket
|
||||
%dir %{_sysconfdir}/isns
|
||||
%dir %{_var}/lib/isns
|
||||
%config(noreplace) %{_sysconfdir}/isns/*
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libisns.so.0
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_includedir}/libisns
|
||||
%{_includedir}/libisns/*.h
|
||||
%{_libdir}/libisns.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Mar 22 2019 Chris Leech <cleech@redhat.com> - 0.99-1
|
||||
- rebase to 0.99
|
||||
* Tue Sep 14 2021 Chris Leech <cleech@redhat.com> - 0.101-4
|
||||
- #1934951 remove DSA/SHA-1 based authentication support
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.101-3
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.101-2
|
||||
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
||||
Related: rhbz#1971065
|
||||
|
||||
* Wed May 26 2021 Chris Leech <cleech@redhat.com> - 0.101-1
|
||||
- update to 0.101
|
||||
- bz#1958038 disabled Werror, which fixes the build with OpenSSL 3 while still using deprecated functions
|
||||
- setup new upstream tests as gating
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.100-2
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.100-1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Sep 17 2020 Chris Leech <cleech@redhat.com> - 0.100-0
|
||||
- rebase to upstream v0.100 + patches from git
|
||||
|
||||
* Fri Aug 21 2020 Tom Stellard <tstellar@redhat.com> - 0.97-12
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
@ -1,25 +0,0 @@
|
||||
From 65aae761c6d1e73b1cd3c05b40b5a70ee0eb67b7 Mon Sep 17 00:00:00 2001
|
||||
From: Chris Leech <cleech@redhat.com>
|
||||
Date: Fri, 22 Mar 2019 16:12:41 -0700
|
||||
Subject: [PATCH 1/1] fix openssl argument order in tests
|
||||
|
||||
---
|
||||
tests/genkey | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/genkey b/tests/genkey
|
||||
index 36c5eeee56a5..2351a65dedf4 100755
|
||||
--- a/tests/genkey
|
||||
+++ b/tests/genkey
|
||||
@@ -123,7 +123,7 @@ if [ ! -r $dsa_parms ]; then
|
||||
EOF
|
||||
|
||||
mkdir -p `dirname $dsa_parms`
|
||||
- openssl dsaparam $dsa_bits -out $dsa_parms ||
|
||||
+ openssl dsaparam -out $dsa_parms $dsa_bits ||
|
||||
exit 1
|
||||
|
||||
# DSA parameters are public
|
||||
--
|
||||
2.17.2
|
||||
|
@ -1,6 +0,0 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
1
sources
1
sources
@ -1 +0,0 @@
|
||||
SHA512 (open-isns-0.99.tar.gz) = 90a2297535c5e939f83c761173ce5f5f88e68adc31e41e833b23d07b6dc6959572ae7184db0084b861918199a877b251ebae4b4a7456fdd8c93400dc8457adc9
|
@ -1,27 +0,0 @@
|
||||
diff --git a/tests/Makefile b/tests/Makefile
|
||||
index 5b7884f319e0..f4ec3428d29b 100644
|
||||
--- a/tests/Makefile
|
||||
+++ b/tests/Makefile
|
||||
@@ -43,3 +43,8 @@ tests-no-security:
|
||||
@for test in test*.pl; do \
|
||||
perl $$test -i -q; \
|
||||
done
|
||||
+
|
||||
+tests-as-installed:
|
||||
+ @for test in test*.pl; do \
|
||||
+ perl $$test -q --path="/usr/sbin/"; \
|
||||
+ done
|
||||
diff --git a/tests/harness.pl b/tests/harness.pl
|
||||
index 7ed4fa09f5b6..fc7f937a3ca0 100755
|
||||
--- a/tests/harness.pl
|
||||
+++ b/tests/harness.pl
|
||||
@@ -858,7 +858,8 @@ sub __isns_prep_test {
|
||||
GetOptions('verbose+' => \$__isns_verbose,
|
||||
"quiet" => \$__isns_quiet,
|
||||
"fast" => \$__isns_quick,
|
||||
- "insecure" => \$__isns_insecure);
|
||||
+ "insecure" => \$__isns_insecure,
|
||||
+ "path=s" => \$__isns_bin);
|
||||
$__isns_verbose = 0 if ($__isns_quiet);
|
||||
$__isns_security = 0 if ($__isns_insecure);
|
||||
|
Loading…
Reference in New Issue
Block a user