From 9155a0046df0151e4f18c10ea06e854b5f906900 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jan 21 2020 22:57:21 +0000 Subject: import isns-utils-0.99-1.el8 --- diff --git a/.gitignore b/.gitignore index 69c46cb..c8e8922 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/open-isns-0.97.tar.gz +SOURCES/open-isns-0.99.tar.gz diff --git a/.isns-utils.metadata b/.isns-utils.metadata index 00369d3..aa115ec 100644 --- a/.isns-utils.metadata +++ b/.isns-utils.metadata @@ -1 +1 @@ -1973761a319e83c8872a87bc4b46de8755339ae7 SOURCES/open-isns-0.97.tar.gz +4302dfdc450d9a55266986033481f0fa5bc4492e SOURCES/open-isns-0.99.tar.gz diff --git a/SOURCES/fix-openssl-argument-order-in-tests.patch b/SOURCES/fix-openssl-argument-order-in-tests.patch new file mode 100644 index 0000000..b01032e --- /dev/null +++ b/SOURCES/fix-openssl-argument-order-in-tests.patch @@ -0,0 +1,25 @@ +From 65aae761c6d1e73b1cd3c05b40b5a70ee0eb67b7 Mon Sep 17 00:00:00 2001 +From: Chris Leech +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 + diff --git a/SOURCES/isnsd.service b/SOURCES/isnsd.service deleted file mode 100644 index f4ee128..0000000 --- a/SOURCES/isnsd.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=ISNS Server -After=network.target - -[Service] -ExecStart=/usr/sbin/isnsd -f - -[Install] -WantedBy=multi-user.target diff --git a/SOURCES/test_as_installed.patch b/SOURCES/test_as_installed.patch new file mode 100644 index 0000000..63d8452 --- /dev/null +++ b/SOURCES/test_as_installed.patch @@ -0,0 +1,27 @@ +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); + diff --git a/SPECS/isns-utils.spec b/SPECS/isns-utils.spec index 45022b5..253995d 100644 --- a/SPECS/isns-utils.spec +++ b/SPECS/isns-utils.spec @@ -1,13 +1,14 @@ Name: isns-utils -Version: 0.97 -Release: 6%{?dist} +Version: 0.99 +Release: 1%{?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 -Source1: isnsd.service +Patch1: fix-openssl-argument-order-in-tests.patch +Patch2: test_as_installed.patch BuildRequires: openssl-devel automake pkgconfig systemd-devel systemd Requires(post): systemd-units @@ -38,7 +39,7 @@ Development files for iSNS %prep -%setup -q -n open-isns-%{version} +%autosetup -n open-isns-%{version} -p1 %build @@ -52,21 +53,18 @@ 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 +%systemd_post isnsd.service isnsd.socket %postun -%systemd_postun isnsd.service +%systemd_postun isnsd.service isnsd.socket %preun -%systemd_preun isnsd.service +%systemd_preun isnsd.service isnsd.socket %triggerun -- isns-utils < 0.91-7 @@ -94,6 +92,7 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/isnsd.service %{_mandir}/man5/* %{_mandir}/man8/* %{_unitdir}/isnsd.service +%{_unitdir}/isnsd.socket %dir %{_sysconfdir}/isns %dir %{_var}/lib/isns %config(noreplace) %{_sysconfdir}/isns/* @@ -110,6 +109,9 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/isnsd.service %changelog +* Fri Mar 22 2019 Chris Leech - 0.99-1 +- rebase to 0.99 + * Wed Feb 07 2018 Fedora Release Engineering - 0.97-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild