2007-01-16 00:27:31 +01:00
|
|
|
#
|
2011-10-27 12:08:18 +02:00
|
|
|
# spec file for package open-iscsi
|
2007-01-16 00:27:31 +01:00
|
|
|
#
|
2021-01-26 22:44:30 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-01-16 00:27:31 +01:00
|
|
|
#
|
2008-08-29 02:59:20 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-06-05 20:04:08 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:27:31 +01:00
|
|
|
#
|
|
|
|
|
2008-04-15 15:27:22 +02:00
|
|
|
|
2019-11-14 22:09:16 +01:00
|
|
|
%define iscsi_minor_release 1
|
2021-09-09 18:03:44 +02:00
|
|
|
%define iscsi_patch_release 5
|
2019-11-19 00:39:07 +01:00
|
|
|
%define iscsi_patch_release_suse %{iscsi_patch_release}-suse
|
2007-01-16 00:27:31 +01:00
|
|
|
Name: open-iscsi
|
2021-09-09 18:03:44 +02:00
|
|
|
Version: 2.1.5
|
2018-01-23 23:55:12 +01:00
|
|
|
Release: 0
|
2018-10-19 19:39:02 +02:00
|
|
|
Summary: Linux iSCSI Software Initiator
|
2018-08-31 18:24:38 +02:00
|
|
|
License: GPL-2.0-or-later
|
2018-01-23 23:55:12 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2020-03-26 23:46:14 +01:00
|
|
|
URL: https://www.open-iscsi.com
|
2019-11-19 00:39:07 +01:00
|
|
|
Source: %{name}-2.%{iscsi_minor_release}.%{iscsi_patch_release_suse}.tar.bz2
|
2018-01-23 23:55:12 +01:00
|
|
|
Patch1: %{name}-SUSE-latest.diff.bz2
|
2014-04-30 19:04:50 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2013-03-16 09:19:24 +01:00
|
|
|
BuildRequires: bison
|
2014-11-25 23:47:06 +01:00
|
|
|
BuildRequires: db-devel < 5
|
2018-01-23 23:55:12 +01:00
|
|
|
BuildRequires: fdupes
|
2013-03-16 09:19:24 +01:00
|
|
|
BuildRequires: flex
|
2018-09-04 19:58:22 +02:00
|
|
|
BuildRequires: libkmod-devel
|
2017-03-28 23:46:40 +02:00
|
|
|
BuildRequires: libmount-devel
|
2014-04-30 19:04:50 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
2016-01-15 18:18:18 +01:00
|
|
|
BuildRequires: open-isns-devel
|
2019-10-18 23:12:50 +02:00
|
|
|
BuildRequires: openssl-devel >= 1.1.1c
|
2018-11-13 03:06:25 +01:00
|
|
|
BuildRequires: pkg-config
|
2014-12-06 00:33:19 +01:00
|
|
|
BuildRequires: suse-module-tools
|
2019-06-13 15:16:22 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2019-07-09 18:05:21 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2017-08-28 22:52:41 +02:00
|
|
|
Requires(post): coreutils
|
2019-11-19 00:39:07 +01:00
|
|
|
Requires: libopeniscsiusr0_2_0 = %{version}
|
2018-01-23 23:55:12 +01:00
|
|
|
%{?systemd_requires}
|
2007-01-16 00:27:31 +01:00
|
|
|
|
|
|
|
%description
|
2018-10-18 21:37:22 +02:00
|
|
|
This is a transport independent implementation of RFC 3720
|
2018-02-20 21:30:39 +01:00
|
|
|
iSCSI. It is partitioned into user and kernel parts.
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2018-02-20 21:30:39 +01:00
|
|
|
The kernel portion of Open-iSCSI implements the iSCSI data path (that
|
|
|
|
is, iSCSI Read and iSCSI Write), and consists of two loadable
|
2018-10-19 19:39:02 +02:00
|
|
|
modules: iscsi_if.ko and iscsi_tcp.ko, and is now is delivered
|
|
|
|
as part of the kernel.
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2018-10-19 19:39:02 +02:00
|
|
|
The user-space part contains the entire control plane: configuration
|
2018-02-20 21:30:39 +01:00
|
|
|
manager, iSCSI Discovery, Login and Logout processing,
|
|
|
|
connection-level error processing, Nop-In and Nop-Out handling. It
|
|
|
|
comes with a daemon process called iscsid, and a management utility,
|
|
|
|
iscsiadm.
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2019-11-19 00:39:07 +01:00
|
|
|
%package -n libopeniscsiusr0_2_0
|
|
|
|
Version: 2.%{iscsi_minor_release}.%{iscsi_patch_release}
|
2018-02-20 21:30:39 +01:00
|
|
|
Release: 0
|
2019-11-16 02:29:09 +01:00
|
|
|
Summary: The iSCSI User-level Library
|
2018-02-20 21:30:39 +01:00
|
|
|
Group: System/Libraries
|
2019-11-19 00:39:07 +01:00
|
|
|
Obsoletes: libopeniscsiusr0_1_0
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2019-11-19 00:39:07 +01:00
|
|
|
%description -n libopeniscsiusr0_2_0
|
2018-10-19 19:39:02 +02:00
|
|
|
The iSCSI user-space API from the open-iscsi project.
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2014-04-30 19:04:50 +02:00
|
|
|
%package -n iscsiuio
|
2019-11-16 02:29:09 +01:00
|
|
|
Version: 0.7.8.6
|
2014-04-30 19:04:50 +02:00
|
|
|
Release: 0
|
2018-01-23 23:55:12 +01:00
|
|
|
Summary: Linux Broadcom NetXtremem II iscsi server
|
|
|
|
Group: Productivity/Networking/Other
|
2015-06-18 19:56:02 +02:00
|
|
|
Requires: logrotate
|
2014-04-30 19:04:50 +02:00
|
|
|
|
|
|
|
%description -n iscsiuio
|
|
|
|
This tool is to be used in conjunction with the Broadcom NetXtreme II Linux
|
2018-02-20 21:30:39 +01:00
|
|
|
driver (Kernel module name: "bnx2" and "bnx2x"), Broadcom CNIC driver,
|
|
|
|
and the Broadcom iSCSI driver (Kernel module name: "bnx2i").
|
2018-10-19 19:39:02 +02:00
|
|
|
This user-space tool is used in conjunction with the following
|
2014-04-30 19:04:50 +02:00
|
|
|
Broadcom Network Controllers:
|
2018-02-20 21:30:39 +01:00
|
|
|
|
|
|
|
* bnx2: BCM5706, BCM5708, BCM5709 devices
|
|
|
|
* bnx2x: BCM57710, BCM57711, BCM57711E, BCM57712, BCM57712E,
|
2014-04-30 19:04:50 +02:00
|
|
|
BCM57800, BCM57810, BCM57840 devices
|
|
|
|
|
|
|
|
This utility will provide the ARP and DHCP functionality for the iSCSI offload.
|
2018-10-19 19:39:02 +02:00
|
|
|
The communication to the driver is done via user-space I/O (Kernel module name
|
2018-02-20 21:30:39 +01:00
|
|
|
"uio").
|
2014-04-30 19:04:50 +02:00
|
|
|
|
2018-01-23 23:55:12 +01:00
|
|
|
%package devel
|
2019-11-19 00:39:07 +01:00
|
|
|
Version: 2.%{iscsi_minor_release}.%{iscsi_patch_release}
|
2018-01-23 23:55:12 +01:00
|
|
|
Release: 0
|
2019-11-16 02:29:09 +01:00
|
|
|
Summary: The iSCSI User-level Library Development Library and Include files
|
2018-01-23 23:55:12 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-10-18 21:37:22 +02:00
|
|
|
Requires: %{name} = %{version}
|
2020-03-26 23:46:14 +01:00
|
|
|
Conflicts: libopeniscsiusr0_1_0
|
2018-01-23 23:55:12 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This development package contains the open-iscsi user-level library
|
|
|
|
include files and documentation. These are used to compile against
|
|
|
|
the libopeniscsiusr library.
|
|
|
|
|
2007-01-16 00:27:31 +01:00
|
|
|
%prep
|
2019-11-19 00:39:07 +01:00
|
|
|
%setup -q -n %{name}-2.%{iscsi_minor_release}.%{iscsi_patch_release_suse}
|
2008-07-25 16:58:50 +02:00
|
|
|
%patch1 -p1
|
2007-01-16 00:27:31 +01:00
|
|
|
|
|
|
|
%build
|
2018-10-24 23:08:27 +02:00
|
|
|
[ -z "$SOURCE_DATE_EPOCH" ] || export KBUILD_BUILD_TIMESTAMP=@$SOURCE_DATE_EPOCH
|
2020-01-31 22:47:51 +01:00
|
|
|
make %{?_smp_mflags} OPTFLAGS="%{optflags} -fno-strict-aliasing -fno-common -DOFFLOAD_BOOT_SUPPORTED -DLOCK_DIR=\\\"%{_sysconfdir}/iscsi\\\"" LIB_DIR=%{_libdir} user
|
2014-04-30 19:04:50 +02:00
|
|
|
cd iscsiuio
|
2018-02-20 21:30:39 +01:00
|
|
|
touch AUTHORS NEWS
|
2014-04-30 19:04:50 +02:00
|
|
|
autoreconf --install
|
|
|
|
%configure --sbindir=/sbin
|
2019-01-14 22:26:32 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" LIB_DIR=%{_libdir}
|
2007-01-16 00:27:31 +01:00
|
|
|
|
|
|
|
%install
|
2019-01-14 22:26:32 +01:00
|
|
|
make DESTDIR=%{buildroot} LIB_DIR=%{_libdir} install_user
|
2013-10-04 14:27:54 +02:00
|
|
|
# install service files
|
2019-09-13 20:23:09 +02:00
|
|
|
make DESTDIR=%{buildroot} LIB_DIR=%{_libdir} install_systemd
|
2015-06-18 19:56:02 +02:00
|
|
|
# create rc symlinks
|
2018-01-23 23:55:12 +01:00
|
|
|
[ -d %{buildroot}%{_sbindir} ] || mkdir -p %{buildroot}%{_sbindir}
|
2015-06-18 19:56:02 +02:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rciscsi
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rciscsid
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rciscsiuio
|
2018-01-23 23:55:12 +01:00
|
|
|
(cd %{buildroot}/etc; ln -sf iscsi/iscsid.conf iscsid.conf)
|
2019-07-17 17:42:18 +02:00
|
|
|
echo > %{buildroot}%{_sysconfdir}/iscsi/initiatorname.iscsi
|
2013-11-15 16:40:31 +01:00
|
|
|
install -m 0755 usr/iscsistart %{buildroot}/sbin
|
2018-02-20 21:30:39 +01:00
|
|
|
%make_install -C iscsiuio
|
2018-10-18 21:37:22 +02:00
|
|
|
# rename iscsiuio logrotate file to proper name
|
|
|
|
mv %{buildroot}%{_sysconfdir}/logrotate.d/iscsiuiolog %{buildroot}%{_sysconfdir}/logrotate.d/iscsiuio
|
2018-02-20 21:30:39 +01:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2007-01-16 00:27:31 +01:00
|
|
|
|
|
|
|
%post
|
2014-12-06 00:33:19 +01:00
|
|
|
%{?regenerate_initrd_post}
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_add_post iscsi.service iscsid.service iscsid.socket
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2014-12-06 00:33:19 +01:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2007-01-16 00:27:31 +01:00
|
|
|
%postun
|
2020-11-04 20:54:16 +01:00
|
|
|
%service_del_postun_without_restart iscsi.service
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_del_postun iscsid.service iscsid.socket
|
2013-10-04 14:27:54 +02:00
|
|
|
|
|
|
|
%pre
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_add_pre iscsi.service iscsid.service iscsid.socket
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2007-07-10 19:04:15 +02:00
|
|
|
%preun
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_del_preun iscsi.service iscsid.service iscsid.socket
|
2007-07-10 19:04:15 +02:00
|
|
|
|
2019-11-19 00:39:07 +01:00
|
|
|
%post -n libopeniscsiusr0_2_0 -p /sbin/ldconfig
|
|
|
|
%postun -n libopeniscsiusr0_2_0 -p /sbin/ldconfig
|
2018-02-20 21:30:39 +01:00
|
|
|
|
2014-04-30 19:04:50 +02:00
|
|
|
%post -n iscsiuio
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_add_post iscsiuio.service iscsiuio.socket
|
2014-04-30 19:04:50 +02:00
|
|
|
|
|
|
|
%postun -n iscsiuio
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_del_postun iscsiuio.service iscsiuio.socket
|
2014-04-30 19:04:50 +02:00
|
|
|
|
|
|
|
%pre -n iscsiuio
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_add_pre iscsiuio.service iscsiuio.socket
|
2014-04-30 19:04:50 +02:00
|
|
|
|
|
|
|
%preun -n iscsiuio
|
2020-04-15 19:52:58 +02:00
|
|
|
%service_del_preun iscsiuio.service iscsiuio.socket
|
2014-04-30 19:04:50 +02:00
|
|
|
|
2007-01-16 00:27:31 +01:00
|
|
|
%files
|
2018-01-23 23:55:12 +01:00
|
|
|
%dir %{_sysconfdir}/iscsi
|
|
|
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/iscsi/iscsid.conf
|
|
|
|
%ghost %{_sysconfdir}/iscsi/initiatorname.iscsi
|
|
|
|
%dir %{_sysconfdir}/iscsi/ifaces
|
|
|
|
%config %{_sysconfdir}/iscsi/ifaces/iface.example
|
|
|
|
%{_sysconfdir}/iscsid.conf
|
2014-03-10 19:05:31 +01:00
|
|
|
%{_unitdir}/iscsid.service
|
2013-10-04 14:27:54 +02:00
|
|
|
%{_unitdir}/iscsid.socket
|
2020-06-08 19:02:20 +02:00
|
|
|
%{_unitdir}/iscsi-init.service
|
2014-03-10 19:05:31 +01:00
|
|
|
%{_unitdir}/iscsi.service
|
2019-11-10 11:53:31 +01:00
|
|
|
%{_systemdgeneratordir}/ibft-rule-generator
|
2015-06-18 19:56:02 +02:00
|
|
|
%{_sbindir}/rciscsi
|
|
|
|
%{_sbindir}/rciscsid
|
2014-04-30 19:04:50 +02:00
|
|
|
/sbin/iscsid
|
|
|
|
/sbin/iscsiadm
|
|
|
|
/sbin/iscsi-iname
|
|
|
|
/sbin/iscsistart
|
|
|
|
/sbin/iscsi-gen-initiatorname
|
|
|
|
/sbin/iscsi_offload
|
|
|
|
/sbin/iscsi_discovery
|
2017-03-28 23:46:40 +02:00
|
|
|
/sbin/iscsi_fw_login
|
2019-01-14 22:26:32 +01:00
|
|
|
%doc README
|
|
|
|
%license COPYING
|
2018-01-23 23:55:12 +01:00
|
|
|
%{_mandir}/man8/iscsiadm.8%{ext_man}
|
|
|
|
%{_mandir}/man8/iscsid.8%{ext_man}
|
|
|
|
%{_mandir}/man8/iscsi_discovery.8%{ext_man}
|
|
|
|
%{_mandir}/man8/iscsistart.8%{ext_man}
|
|
|
|
%{_mandir}/man8/iscsi-iname.8%{ext_man}
|
|
|
|
%{_mandir}/man8/iscsi_fw_login.8%{ext_man}
|
|
|
|
%{_udevrulesdir}/50-iscsi-firmware-login.rules
|
2018-02-20 21:30:39 +01:00
|
|
|
|
2019-11-19 00:39:07 +01:00
|
|
|
%files -n libopeniscsiusr0_2_0
|
2018-10-18 21:37:22 +02:00
|
|
|
%{_libdir}/libopeniscsiusr.so.*
|
2014-04-30 19:04:50 +02:00
|
|
|
|
|
|
|
%files -n iscsiuio
|
|
|
|
/sbin/iscsiuio
|
|
|
|
/sbin/brcm_iscsiuio
|
2018-01-23 23:55:12 +01:00
|
|
|
%{_mandir}/man8/iscsiuio.8%{ext_man}
|
2018-10-18 21:37:22 +02:00
|
|
|
%config %{_sysconfdir}/logrotate.d/iscsiuio
|
2014-04-30 19:04:50 +02:00
|
|
|
%{_unitdir}/iscsiuio.service
|
|
|
|
%{_unitdir}/iscsiuio.socket
|
2015-06-18 19:56:02 +02:00
|
|
|
%{_sbindir}/rciscsiuio
|
2007-01-16 00:27:31 +01:00
|
|
|
|
2018-01-23 23:55:12 +01:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/libopeniscsiusr*.h
|
|
|
|
%{_mandir}/man3/*.3%{ext_man}
|
2018-10-18 21:37:22 +02:00
|
|
|
%{_libdir}/libopeniscsiusr.so
|
2018-01-23 23:55:12 +01:00
|
|
|
|
2007-04-04 20:32:14 +02:00
|
|
|
%changelog
|