2007-01-16 00:27:31 +01:00
|
|
|
#
|
2008-07-25 16:58:50 +02:00
|
|
|
# spec file for package open-iscsi (Version 2.0.870)
|
2007-01-16 00:27:31 +01:00
|
|
|
#
|
2009-01-27 02:24:08 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-16 00:27:31 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-15 15:27:22 +02:00
|
|
|
|
2007-01-16 00:27:31 +01:00
|
|
|
Name: open-iscsi
|
2008-04-15 15:27:22 +02:00
|
|
|
BuildRequires: bison db-devel flex
|
|
|
|
Url: http://www.open-iscsi.org
|
2007-07-10 19:04:15 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:27:31 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2008-04-15 15:27:22 +02:00
|
|
|
PreReq: %fillup_prereq %insserv_prereq
|
|
|
|
AutoReqProv: on
|
2008-07-25 16:58:50 +02:00
|
|
|
Version: 2.0.870
|
2009-08-10 23:37:04 +02:00
|
|
|
Release: 27
|
2007-01-16 00:27:31 +01:00
|
|
|
Provides: linux-iscsi
|
|
|
|
Obsoletes: linux-iscsi
|
2007-07-10 19:04:15 +02:00
|
|
|
%define iscsi_release 865
|
2007-01-16 00:27:31 +01:00
|
|
|
Summary: Linux* Open-iSCSI Software Initiator
|
2008-07-25 16:58:50 +02:00
|
|
|
Source: %{name}-2.0-870-rc1.tar.bz2
|
2007-04-04 20:32:14 +02:00
|
|
|
Source11: iscsi-gen-initiatorname.sh
|
2008-07-25 16:58:50 +02:00
|
|
|
Patch1: %{name}-start-target-before-initiator
|
|
|
|
Patch2: %{name}-suse-build-fixes
|
|
|
|
Patch3: %{name}-fwparam_ppc-string-overflow
|
|
|
|
Patch4: %{name}-update-init-script
|
2008-09-06 01:11:16 +02:00
|
|
|
Patch5: %{name}-add-rhel5-compat
|
|
|
|
Patch6: %{name}-add-sles10-compat
|
|
|
|
Patch7: %{name}-iscsid-adjust-settings
|
2008-11-17 17:36:15 +01:00
|
|
|
Patch8: %{name}-login-retry-update
|
|
|
|
Patch9: %{name}-beta5-kernel-patch-update
|
|
|
|
Patch10: %{name}-error-check-in-db-lock-creation
|
|
|
|
Patch11: %{name}-initiator-compile-warning
|
|
|
|
Patch12: %{name}-iscsi_discovery-doc-fixes
|
|
|
|
Patch13: %{name}-rm-unused-variable
|
|
|
|
Patch14: %{name}-add-error-msg-to-log.c
|
|
|
|
Patch15: %{name}-sync-modules-with-2.6.27
|
|
|
|
Patch16: %{name}-allow-onboot-for-loginall
|
|
|
|
Patch17: %{name}-option-no-pid-file
|
|
|
|
Patch18: %{name}-update-suse-init-scripts
|
|
|
|
Patch19: %{name}-set-LOCK_DIR-during-compilation
|
|
|
|
Patch20: %{name}-add-mkinitrd-scriptlets
|
|
|
|
Patch21: %{name}-install-mkinitrd-scriptlets
|
2008-11-20 16:45:56 +01:00
|
|
|
Patch22: %{name}-no-pid-file
|
|
|
|
Patch23: %{name}-cxgb3i-support
|
2008-12-02 15:51:09 +01:00
|
|
|
Patch24: %{name}-fw-crash-on-ppc
|
2008-12-06 13:20:50 +01:00
|
|
|
Patch25: %{name}-fixup-onboot-for-loginall
|
|
|
|
Patch26: %{name}-remove-dump-char
|
|
|
|
Patch27: %{name}-load-ibft-before-reading-sys-firmware
|
2008-12-08 15:54:42 +01:00
|
|
|
Patch28: %{name}-remove-trailing-tilde
|
2009-08-10 23:37:04 +02:00
|
|
|
Patch29: open-iscsi-2.0-870-rc1-static.patch
|
2007-01-16 00:27:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Open-iSCSI is a high-performance, transport independent, multi-platform
|
|
|
|
implementation of RFC3720 iSCSI.
|
|
|
|
|
|
|
|
Open-iSCSI is partitioned into user and kernel parts.
|
|
|
|
|
|
|
|
The kernel portion of Open-iSCSI is a from-scratch code licensed under
|
|
|
|
GPL. The kernel part implements iSCSI data path (that is, iSCSI Read
|
|
|
|
and iSCSI Write), and consists of two loadable modules: iscsi_if.ko and
|
|
|
|
iscsi_tcp.ko.
|
|
|
|
|
|
|
|
User space contains the entire control plane: configuration manager,
|
|
|
|
iSCSI Discovery, Login and Logout processing, connection-level error
|
|
|
|
processing, Nop-In and Nop-Out handling, and (in the future:) Text
|
|
|
|
processing, iSNS, SLP, Radius, etc.
|
|
|
|
|
|
|
|
The user space Open-iSCSI consists of a daemon process called iscsid,
|
|
|
|
and a management utility iscsiadm.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
open-iscsi@googlegroups.com
|
|
|
|
|
|
|
|
%prep
|
2008-07-25 16:58:50 +02:00
|
|
|
%setup -n %{name}-2.0-870-rc1
|
|
|
|
%patch1 -p1
|
2007-07-10 19:04:15 +02:00
|
|
|
%patch2 -p1
|
2008-07-25 16:58:50 +02:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2008-09-06 01:11:16 +02:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2008-11-17 17:36:15 +01:00
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
|
|
|
%patch21 -p1
|
2008-11-20 16:45:56 +01:00
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
2008-12-02 15:51:09 +01:00
|
|
|
%patch24 -p1
|
2008-12-06 13:20:50 +01:00
|
|
|
%patch25 -p1
|
|
|
|
%patch26 -p1
|
|
|
|
%patch27 -p1
|
2008-12-08 15:54:42 +01:00
|
|
|
%patch28 -p1
|
2009-08-10 23:37:04 +02:00
|
|
|
%patch29
|
2007-01-16 00:27:31 +01:00
|
|
|
|
|
|
|
%build
|
2009-08-10 23:37:04 +02:00
|
|
|
%{__make} OPTFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -DLOCK_DIR=\\\"/etc/iscsi\\\""
|
2007-01-16 00:27:31 +01:00
|
|
|
|
|
|
|
%install
|
2008-04-15 15:27:22 +02:00
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} install
|
2007-01-16 00:27:31 +01:00
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} install_initd_suse
|
2007-04-04 20:32:14 +02:00
|
|
|
install -D -m 755 %{S:11} ${RPM_BUILD_ROOT}/sbin/iscsi-gen-initiatorname
|
2007-01-16 00:27:31 +01:00
|
|
|
(cd ${RPM_BUILD_ROOT}/sbin; ln -sf /etc/init.d/open-iscsi rcopen-iscsi)
|
2007-04-04 20:32:14 +02:00
|
|
|
(cd ${RPM_BUILD_ROOT}/etc; ln -sf iscsi/iscsid.conf iscsid.conf)
|
2007-01-16 00:27:31 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%post
|
2008-09-06 01:11:16 +02:00
|
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
2009-01-27 02:24:08 +01:00
|
|
|
%{fillup_and_insserv -y boot.open-iscsi}
|
2007-04-04 20:32:14 +02:00
|
|
|
if [ ! -f /etc/iscsi/initiatorname.iscsi ] ; then
|
|
|
|
/sbin/iscsi-gen-initiatorname
|
2007-01-16 00:27:31 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
2008-09-06 01:11:16 +02:00
|
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
2007-01-16 00:27:31 +01:00
|
|
|
%{insserv_cleanup}
|
|
|
|
|
2007-07-10 19:04:15 +02:00
|
|
|
%preun
|
|
|
|
%{stop_on_removal open-iscsi}
|
|
|
|
|
2007-01-16 00:27:31 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-07-25 16:58:50 +02:00
|
|
|
%dir /etc/iscsi
|
2007-01-16 00:27:31 +01:00
|
|
|
%attr(0600,root,root) %config(noreplace) /etc/iscsi/iscsid.conf
|
2008-07-25 16:58:50 +02:00
|
|
|
%dir /etc/iscsi/ifaces
|
2008-09-06 01:11:16 +02:00
|
|
|
%config /etc/iscsi/ifaces/iface.example
|
2007-04-04 20:32:14 +02:00
|
|
|
/etc/iscsid.conf
|
2007-01-16 00:27:31 +01:00
|
|
|
%config /etc/init.d/open-iscsi
|
|
|
|
%config /etc/init.d/boot.open-iscsi
|
|
|
|
/sbin/*
|
2008-07-25 16:58:50 +02:00
|
|
|
%dir /lib/mkinitrd
|
|
|
|
%dir /lib/mkinitrd/scripts
|
|
|
|
/lib/mkinitrd/scripts/setup-iscsi.sh
|
|
|
|
/lib/mkinitrd/scripts/boot-iscsi.sh
|
|
|
|
/lib/mkinitrd/scripts/boot-killiscsi.sh
|
2007-01-16 00:27:31 +01:00
|
|
|
%doc COPYING README
|
|
|
|
%doc %{_mandir}/man8/*
|
|
|
|
|
2007-04-04 20:32:14 +02:00
|
|
|
%changelog
|