0e55d5
%define open_iscsi_version	2.0
0e55d5
%define open_iscsi_build	873
0e55d5
cvsdist 273458
Summary: iSCSI daemon and utility programs
cvsdist 273458
Name: iscsi-initiator-utils
0e55d5
Version: 6.%{open_iscsi_version}.%{open_iscsi_build}
fbd856
Release: 21%{?dist}
be68e0
Group: System Environment/Daemons
be68e0
License: GPLv2+
be68e0
URL: http://www.open-iscsi.org
be68e0
0e55d5
Source0: http://www.open-iscsi.org/bits/open-iscsi-%{open_iscsi_version}-%{open_iscsi_build}.tar.gz
0e55d5
Source4: 04-iscsi
3c58b1
Source5: iscsi-tmpfiles.conf
0e55d5
0e55d5
# upstream patches, post last tagged version
0e55d5
Patch1: 0001-iscsid-fix-iscsid-segfault-during-qla4xxx-login.patch
0e55d5
Patch2: 0002-ISCSISTART-Bring-up-the-corresponding-network-interf.patch
0e55d5
Patch3: 0003-iscsi-tools-fix-compile-error-when-OFFLOAD_BOOT_SUPP.patch
0e55d5
Patch4: 0004-ISCSID-Passing-more-net-params-from-ibft-to-iface.patch
0e55d5
Patch5: 0005-iscsi-tools-Convert-r-argument-to-an-integer-before-.patch
0e55d5
Patch6: 0006-Update-README-for-removal-of-DBM-requirement.patch
0e55d5
Patch7: 0007-iscsid-iscsiadm-fix-abstract-socket-length-in-bind-c.patch
0e55d5
Patch8: 0008-iscsid-implement-systemd-compatible-socket-activatio.patch
0e55d5
Patch9: 0009-iscsid-add-example-unit-files-for-systemd.patch
0e55d5
Patch10: 0010-iscsi-tools-fix-get_random_bytes-error-handling.patch
c2d5d2
Patch11: 0011-ISCSID-Added-socket-communication-hooks-for-uip.patch
c2d5d2
Patch12: 0012-ISCSID-Modified-the-Makefile-for-iscsiuio-compilatio.patch
c2d5d2
Patch13: 0013-ISCSID-Added-iscsiuio-source-to-the-open-iscsi-pkg.patch
c2d5d2
Patch14: 0014-From-Adheer-Chandravanshi-adheer.chandravanshi-qlogi.patch
c2d5d2
Patch15: 0015-Manpage-changes-for-flashnode-submode-support-for-ho.patch
c2d5d2
Patch16: 0016-README-changes-for-flashnode-submode-support-for-hos.patch
c2d5d2
Patch17: 0017-PATCH-1-of-1-correctly-check-return-value-of-nice.patch
c2d5d2
Patch18: 0018-Allow-firmware-mode-to-use-debug-flag.patch
c2d5d2
Patch19: 0019-iscsiadm-return-error-when-login-fails.patch
c2d5d2
Patch20: 0020-iscsiadm-bind-ifaces-to-portals-found-using-isns.patch
c2d5d2
Patch21: 0021-iscsiadm-Check-for-mode-is-not-required-when-creatin.patch
c2d5d2
Patch22: 0022-iscsid-iscsiadm-add-support-for-emulex-one-connect-s.patch
c2d5d2
Patch23: 0023-ISCSIUIO-Updated-iscsiuio-to-version-0.7.8.1b-for-pe.patch
c2d5d2
Patch24: 0024-Fix-discovery-error-return-without-return-value.patch
c2d5d2
Patch25: 0025-iscsid-Fix-strlen-parameter.patch
c2d5d2
Patch26: 0026-iscsiuio-Change-socket-bind-to-use-the-same-struct-s.patch
c2d5d2
Patch27: 0027-Make-rescan-run-in-parallel.patch
2c4537
Patch28: 0028-iscsiadm-Correctly-check-for-invalid-hostno-and-flas.patch
2c4537
Patch29: 0029-iscsi-tools-Print-additional-session-info-for-flashn.patch
2c4537
Patch30: 0030-iscsi-tools-sync-iscsi_if.h-with-kernel-space.patch
2c4537
Patch31: 0031-PATCH-v5-1-3-ISCSISTART-Saved-ibft-boot-info-to-the-.patch
2c4537
Patch32: 0032-ISCSID-Added-the-extraction-of-the-session-boot-info.patch
2c4537
Patch33: 0033-ISCSID-Added-iface-content-override-fix.patch
374005
Patch34: 0034-iscsi-tools-Bug-fix-on-IPC-address-copy-version-2.patch
374005
Patch35: 0035-flashnode-Add-support-to-set-ISCSI_FLASHNODE_CHAP_OU.patch
374005
Patch36: 0036-iscsiadm-Use-x-option-instead-of-v-to-specify-chap_t.patch
374005
Patch37: 0037-iscsiadm-Man-page-changes-to-use-x-option-for-chap_t.patch
374005
Patch38: 0038-README-changes-to-use-long-option-index-instead-of-f.patch
374005
Patch39: 0039-iscsiadm-Add-support-to-set-CHAP-entry-using-host-ch.patch
374005
Patch40: 0040-iscsi-tools-Correctly-get-username_in-and-password_i.patch
374005
Patch41: 0041-README-changes-for-adding-support-to-set-CHAP-entry.patch
a288e4
Patch42: 0042-iscsi-tools-Setup-iface-conf-file-with-all-iface-att.patch
a288e4
Patch43: 0043-iscsi_if.h-Remove-numbers-used-for-network-parameter.patch
a288e4
Patch44: 0044-iscsi_if.h-Additional-parameters-for-network-param-s.patch
a288e4
Patch45: 0045-iscsi-tools-Use-macro-to-set-IPv4-IPv6-IP-addresses.patch
a288e4
Patch46: 0046-iscsi-tools-Use-single-function-to-enable-disable-ne.patch
a288e4
Patch47: 0047-iscsi-tools-Use-single-function-to-set-integer-netwo.patch
a288e4
Patch48: 0048-iscsi-tools-Ignore-network-parameter-if-not-enabled-.patch
a288e4
Patch49: 0049-iscsi-tools-Additional-parameters-for-network-settin.patch
a288e4
Patch50: 0050-iscsi-tools-iface-params-should-be-updated-for-node_.patch
a288e4
Patch51: 0051-iscsi-tools-Let-default-type-of-iface-be-ipv4.patch
a288e4
Patch52: 0052-iscsi-tools-Show-iface-params-based-on-iface-type.patch
9a597e
Patch53: 0053-iscsiadm-Added-document-for-description-of-iface-att.patch
9a597e
Patch54: 0054-iscsi_tool-Add-offload-host-statistics-support.patch
9a597e
Patch55: 0055-README-Updated-for-host-statistics.patch
9a597e
Patch56: 0056-iscsiadm.8-Updated-man-page-for-host-statistics.patch
9a597e
Patch57: 0057-iscsi-tools-Fix-the-iscsiadm-help-options-for-host-m.patch
9a597e
Patch58: 0058-Man-page-correction-for-host-mode-options-of-iscsiad.patch
e509a4
Patch59: 0059-ISCSIUIO-Added-tx-doorbell-override-mechanism.patch
e509a4
Patch60: 0060-ISCSIUIO-Added-fix-for-the-iface.subnet_mask-decodin.patch
e509a4
Patch61: 0061-ISCSIUIO-Added-fix-for-the-ARP-cache-flush-mechanism.patch
e509a4
Patch62: 0062-ISCSIUIO-Updated-RELEASE-note-and-version.patch
e509a4
Patch63: 0063-ISCSIUIO-Updated-the-configure-file-to-reflect-the-n.patch
e509a4
Patch64: 0064-ISCSIUIO-Removed-the-auto-generated-COPYING-file.patch
e509a4
Patch68: 0068-iscsiuio-fix-compilation.patch
e509a4
Patch69: 0069-Add-missing-DESTDIR.patch
860e10
Patch70: 0070-iscsi-tools-set-non-negotiated-params-early.patch
374005
c2d5d2
# not (yet) upstream merged
4b292f
Patch131: 0131-iscsiadm-Fix-the-hostno-check-for-stats-submode-of-h.patch
4b292f
Patch132: 0132-iscsiadm-Fix-the-compile-time-warning.patch
11189d
Patch143: 0143-idmb_rec_write-check-for-tpgt-first.patch
11189d
Patch145: 0145-idbm_rec_write-seperate-old-and-new-style-writes.patch
11189d
Patch146: 0146-idbw_rec_write-pick-tpgt-from-existing-record.patch
11189d
Patch147: 0147-iscsiuio-systemd-socket-activation-support.patch
11189d
Patch149: 0149-update-systemd-service-files-add-iscsi.service-for-s.patch
11189d
Patch150: 0150-iscsi-boot-related-service-file-updates.patch
0e55d5
# distro specific modifications
11189d
Patch151: 0151-update-initscripts-and-docs.patch
11189d
Patch152: 0152-use-var-for-config.patch
11189d
Patch153: 0153-use-red-hat-for-name.patch
11189d
Patch154: 0154-add-libiscsi.patch
11189d
Patch155: 0155-dont-use-static.patch
11189d
Patch156: 0156-remove-the-offload-boot-supported-ifdef.patch
11189d
Patch159: 0159-iscsiuio-systemd-unit-files.patch
11189d
Patch160: 0160-use-systemctl-to-start-iscsid.patch
11189d
Patch161: 0161-resolve-565245-multilib-issues-caused-by-doxygen.patch
11189d
Patch162: 0162-Don-t-check-for-autostart-sessions-if-iscsi-is-not-u.patch
11189d
Patch163: 0163-fix-order-of-setting-uid-gid-and-drop-supplementary-.patch
11189d
Patch164: 0164-libiscsi-fix-incorrect-strncpy-use.patch
11189d
Patch165: 0165-fix-hardened-build-of-iscsiuio.patch
11189d
Patch166: 0166-start-socket-listeners-on-iscsiadm-command.patch
4b292f
Patch167: 0167-Revert-iscsiadm-return-error-when-login-fails.patch
fbd856
Patch168: 0168-update-handling-of-boot-sessions.patch
fbd856
Patch169: 0169-update-iscsi.service-for-boot-session-recovery.patch
0e55d5
# version string, needs to be updated with each build
11189d
Patch199: 0199-use-Red-Hat-version-string-to-match-RPM-package-vers.patch
1c8eda
c2d5d2
BuildRequires: flex bison python-devel doxygen kmod-devel systemd-devel
a5f731
# For dir ownership
eb7ab1
Requires: %{name}-iscsiuio >= %{version}-%{release}
6c1aaf
Requires(post): systemd
6c1aaf
Requires(preun): systemd
6c1aaf
Requires(postun): systemd
cvsdist 273458
c2d5d2
%global _hardened_build 1
c2d5d2
%global __provides_exclude_from ^(%{python_sitearch}/.*\\.so)$
c2d5d2
cvsdist 273458
%description
cvsdist 273458
The iscsi package provides the server daemon for the iSCSI protocol,
cvsdist 273458
as well as the utility programs used to manage it. iSCSI is a protocol
cvsdist 273458
for distributed disk access using SCSI commands sent over Internet
cvsdist 273458
Protocol networks.
cvsdist 273458
eb7ab1
%package iscsiuio
eb7ab1
Summary: Userspace configuration daemon required for some iSCSI hardware
eb7ab1
Group: System Environment/Daemons
eb7ab1
License: BSD
eb7ab1
Requires: %{name} = %{version}-%{release}
eb7ab1
eb7ab1
%description iscsiuio
eb7ab1
The iscsiuio configuration daemon provides network configuration help
eb7ab1
for some iSCSI offload hardware.
eb7ab1
7f6313
%package devel
7f6313
Summary: Development files for %{name}
7f6313
Group: Development/Libraries
7f6313
Requires: %{name} = %{version}-%{release}
7f6313
7f6313
%description devel
7f6313
The %{name}-devel package contains libraries and header files for
7f6313
developing applications that use %{name}.
7f6313
cvsdist 273458
%prep
c2d5d2
%setup -q -n open-iscsi-%{open_iscsi_version}-%{open_iscsi_build}
0e55d5
# upstream patches
0e55d5
%patch1 -p1
0e55d5
%patch2 -p1
0e55d5
%patch3 -p1
0e55d5
%patch4 -p1
0e55d5
%patch5 -p1
0e55d5
%patch6 -p1
0e55d5
%patch7 -p1
0e55d5
%patch8 -p1
0e55d5
%patch9 -p1
0e55d5
%patch10 -p1
c2d5d2
%patch11 -p1
c2d5d2
%patch12 -p1
c2d5d2
%patch13 -p1
c2d5d2
%patch14 -p1
c2d5d2
%patch15 -p1
c2d5d2
%patch16 -p1
c2d5d2
%patch17 -p1
c2d5d2
%patch18 -p1
c2d5d2
%patch19 -p1
c2d5d2
%patch20 -p1
c2d5d2
%patch21 -p1
c2d5d2
%patch22 -p1
c2d5d2
%patch23 -p1
c2d5d2
%patch24 -p1
c2d5d2
%patch25 -p1
c2d5d2
%patch26 -p1
c2d5d2
%patch27 -p1
2c4537
%patch28 -p1
2c4537
%patch29 -p1
2c4537
%patch30 -p1
2c4537
%patch31 -p1
2c4537
%patch32 -p1
2c4537
%patch33 -p1
374005
%patch34 -p1
374005
%patch35 -p1
374005
%patch36 -p1
374005
%patch37 -p1
374005
%patch38 -p1
374005
%patch39 -p1
374005
%patch40 -p1
374005
%patch41 -p1
a288e4
%patch42 -p1
a288e4
%patch43 -p1
a288e4
%patch44 -p1
a288e4
%patch45 -p1
a288e4
%patch46 -p1
a288e4
%patch47 -p1
a288e4
%patch48 -p1
a288e4
%patch49 -p1
a288e4
%patch50 -p1
a288e4
%patch51 -p1
a288e4
%patch52 -p1
9a597e
%patch53 -p1
9a597e
%patch54 -p1
9a597e
%patch55 -p1
9a597e
%patch56 -p1
9a597e
%patch57 -p1
9a597e
%patch58 -p1
e509a4
%patch59 -p1
e509a4
%patch60 -p1
e509a4
%patch61 -p1
e509a4
%patch62 -p1
e509a4
%patch63 -p1
e509a4
%patch64 -p1
e509a4
%patch68 -p1
e509a4
%patch69 -p1
860e10
%patch70 -p1
6bbb92
# pending upstream merge
4b292f
%patch131 -p1
4b292f
%patch132 -p1
11189d
%patch143 -p1
11189d
%patch145 -p1
11189d
%patch146 -p1
11189d
%patch147 -p1
11189d
%patch149 -p1
11189d
%patch150 -p1
0e55d5
# distro specific modifications
11189d
%patch151 -p1
11189d
%patch152 -p1
11189d
%patch153 -p1
11189d
%patch154 -p1
11189d
%patch155 -p1
11189d
%patch156 -p1
11189d
%patch159 -p1
11189d
%patch160 -p1
11189d
%patch161 -p1
11189d
%patch162 -p1
11189d
%patch163 -p1
11189d
%patch164 -p1
11189d
%patch165 -p1
11189d
%patch166 -p1
4b292f
%patch167 -p1
fbd856
%patch168 -p1
fbd856
%patch169 -p1
0e55d5
# version string
11189d
%patch199 -p1
0e55d5
974636
# change exec_prefix, there's no easy way to override
974636
%{__sed} -i -e 's|^exec_prefix = /$|exec_prefix = %{_exec_prefix}|' Makefile
31786f
cvsdist 273458
%build
31786f
31786f
# configure sub-packages from here
31786f
# letting the top level Makefile do it will lose setting from rpm
31786f
cd iscsiuio
974636
%{__chmod} +x configure
31786f
%{configure}
31786f
cd ..
31786f
cd utils/open-isns
31786f
%{configure}
31786f
cd ../..
31786f
974636
%{__make} OPTFLAGS="%{optflags} %{?__global_ldflags} -DUSE_KMOD -lkmod"
7f6313
pushd libiscsi
7f6313
python setup.py build
cedd46
touch -r libiscsi.doxy html/*
7f6313
popd
cvsdist 273458
cedd46
cvsdist 273458
%install
974636
%{__make} DESTDIR=%{?buildroot} install_programs install_doc install_etc
c2d5d2
# upstream makefile doesn't get everything the way we like it
974636
rm $RPM_BUILD_ROOT%{_sbindir}/iscsi_discovery
c2d5d2
rm $RPM_BUILD_ROOT%{_mandir}/man8/iscsi_discovery.8
974636
%{__install} -pm 755 usr/iscsistart $RPM_BUILD_ROOT%{_sbindir}
974636
%{__install} -pm 644 doc/iscsistart.8 $RPM_BUILD_ROOT%{_mandir}/man8
974636
%{__install} -pm 644 doc/iscsi-iname.8 $RPM_BUILD_ROOT%{_mandir}/man8
974636
%{__install} -d $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
974636
%{__install} -pm 644 iscsiuio/iscsiuiolog $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
974636
974636
%{__install} -d $RPM_BUILD_ROOT%{_sharedstatedir}/iscsi
974636
%{__install} -d $RPM_BUILD_ROOT%{_sharedstatedir}/iscsi/nodes
974636
%{__install} -d $RPM_BUILD_ROOT%{_sharedstatedir}/iscsi/send_targets
974636
%{__install} -d $RPM_BUILD_ROOT%{_sharedstatedir}/iscsi/static
974636
%{__install} -d $RPM_BUILD_ROOT%{_sharedstatedir}/iscsi/isns
974636
%{__install} -d $RPM_BUILD_ROOT%{_sharedstatedir}/iscsi/slp
974636
%{__install} -d $RPM_BUILD_ROOT%{_sharedstatedir}/iscsi/ifaces
7f6313
2d4a52
# for %%ghost
974636
%{__install} -d $RPM_BUILD_ROOT/var/lock/iscsi
2d4a52
touch $RPM_BUILD_ROOT/var/lock/iscsi/lock
2d4a52
3b954e
974636
%{__install} -d $RPM_BUILD_ROOT%{_unitdir}
974636
%{__install} -pm 644 etc/systemd/iscsi.service $RPM_BUILD_ROOT%{_unitdir}
974636
%{__install} -pm 644 etc/systemd/iscsid.service $RPM_BUILD_ROOT%{_unitdir}
974636
%{__install} -pm 644 etc/systemd/iscsid.socket $RPM_BUILD_ROOT%{_unitdir}
974636
%{__install} -pm 644 etc/systemd/iscsiuio.service $RPM_BUILD_ROOT%{_unitdir}
974636
%{__install} -pm 644 etc/systemd/iscsiuio.socket $RPM_BUILD_ROOT%{_unitdir}
c2d5d2
974636
%{__install} -d $RPM_BUILD_ROOT%{_libexecdir}
974636
%{__install} -pm 755 etc/systemd/iscsi-mark-root-nodes $RPM_BUILD_ROOT%{_libexecdir}
c2d5d2
974636
%{__install} -d $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
974636
%{__install} -pm 755 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
c2d5d2
974636
%{__install} -d $RPM_BUILD_ROOT%{_tmpfilesdir}
974636
%{__install} -pm 644 %{SOURCE5} $RPM_BUILD_ROOT%{_tmpfilesdir}/iscsi.conf
c2d5d2
974636
%{__install} -d $RPM_BUILD_ROOT%{_libdir}
974636
%{__install} -pm 755 libiscsi/libiscsi.so.0 $RPM_BUILD_ROOT%{_libdir}
974636
%{__ln_s}    libiscsi.so.0 $RPM_BUILD_ROOT%{_libdir}/libiscsi.so
974636
%{__install} -d $RPM_BUILD_ROOT%{_includedir}
974636
%{__install} -pm 644 libiscsi/libiscsi.h $RPM_BUILD_ROOT%{_includedir}
c2d5d2
974636
%{__install} -d $RPM_BUILD_ROOT%{python_sitearch}
974636
%{__install} -pm 755 libiscsi/build/lib.linux-*/libiscsimodule.so \
c2d5d2
	$RPM_BUILD_ROOT%{python_sitearch}
c2d5d2
c2d5d2
cvsdist 273458
%post
7f6313
/sbin/ldconfig
3c948f
3c948f
%systemd_post iscsi.service iscsid.service iscsiuio.service iscsid.socket iscsiuio.socket
3c948f
3c948f
if [ $1 -eq 1 ]; then
fc8068
	if [ ! -f %{_sysconfdir}/iscsi/initiatorname.iscsi ]; then
974636
		echo "InitiatorName=`/usr/sbin/iscsi-iname`" > %{_sysconfdir}/iscsi/initiatorname.iscsi
fc8068
	fi
3c948f
	# enable socket activation and persistant session startup by default
3c948f
	/bin/systemctl enable iscsi.service >/dev/null 2>&1 || :
3c948f
	/bin/systemctl enable iscsid.socket >/dev/null 2>&1 || :
3c948f
	/bin/systemctl enable iscsiuio.socket >/dev/null 2>&1 || :
mchristi 9c2485
fi
6c1aaf
3c948f
%preun
3c948f
%systemd_preun iscsi.service iscsid.service iscsiuio.service iscsid.socket iscsiuio.socket
cvsdist 273458
31b81b
%postun
31b81b
/sbin/ldconfig
6c1aaf
%systemd_postun
7f6313
6c1aaf
%triggerun -- iscsi-initiator-utils < 6.2.0.873-1
6c1aaf
# Save the current service runlevel info
6c1aaf
# User must manually run systemd-sysv-convert --apply iscsid
6c1aaf
# and systemd-sysv-convert --apply iscsi
6c1aaf
# to migrate them to systemd targets
6c1aaf
/usr/bin/systemd-sysv-convert --save iscsi >/dev/null 2>&1 ||:
6c1aaf
/usr/bin/systemd-sysv-convert --save iscsid >/dev/null 2>&1 ||:
6c1aaf
3c948f
# enable socket activation
3c948f
/bin/systemctl enable iscsid.socket >/dev/null 2>&1 || :
3c948f
/bin/systemctl enable iscsiuio.socket >/dev/null 2>&1 || :
3c948f
6c1aaf
# Run these because the SysV package being removed won't do them
6c1aaf
/sbin/chkconfig --del iscsid >/dev/null 2>&1 || :
6c1aaf
/sbin/chkconfig --del iscsi >/dev/null 2>&1 || :
6c1aaf
/bin/systemctl try-restart iscsid.service >/dev/null 2>&1 || :
6c1aaf
/bin/systemctl try-restart iscsi.service >/dev/null 1>&1 || :
cvsdist 273458
cvsdist 273458
%files
3b954e
%doc README
c2d5d2
%dir %{_sharedstatedir}/iscsi
c2d5d2
%dir %{_sharedstatedir}/iscsi/nodes
c2d5d2
%dir %{_sharedstatedir}/iscsi/isns
c2d5d2
%dir %{_sharedstatedir}/iscsi/static
c2d5d2
%dir %{_sharedstatedir}/iscsi/slp
c2d5d2
%dir %{_sharedstatedir}/iscsi/ifaces
c2d5d2
%dir %{_sharedstatedir}/iscsi/send_targets
2d4a52
%ghost %{_var}/lock/iscsi
2d4a52
%ghost %{_var}/lock/iscsi/lock
6c1aaf
%{_unitdir}/iscsi.service
6c1aaf
%{_unitdir}/iscsid.service
6c1aaf
%{_unitdir}/iscsid.socket
2a4a67
%{_libexecdir}/iscsi-mark-root-nodes
a5f731
%{_sysconfdir}/NetworkManager/dispatcher.d/04-iscsi
c2d5d2
%{_tmpfilesdir}/iscsi.conf
a5f731
%dir %{_sysconfdir}/iscsi
fc8068
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/iscsi/iscsid.conf
eb7ab1
%{_sbindir}/iscsi-iname
eb7ab1
%{_sbindir}/iscsiadm
eb7ab1
%{_sbindir}/iscsid
eb7ab1
%{_sbindir}/iscsistart
7f6313
%{_libdir}/libiscsi.so.0
7f6313
%{python_sitearch}/libiscsimodule.so
eb7ab1
%{_mandir}/man8/iscsi-iname.8.gz
eb7ab1
%{_mandir}/man8/iscsiadm.8.gz
eb7ab1
%{_mandir}/man8/iscsid.8.gz
eb7ab1
%{_mandir}/man8/iscsistart.8.gz
eb7ab1
eb7ab1
%files iscsiuio
eb7ab1
%{_sbindir}/iscsiuio
eb7ab1
%{_unitdir}/iscsiuio.service
eb7ab1
%{_unitdir}/iscsiuio.socket
c2d5d2
%config(noreplace) %{_sysconfdir}/logrotate.d/iscsiuiolog
eb7ab1
%{_mandir}/man8/iscsiuio.8.gz
cvsdist 273458
7f6313
%files devel
7f6313
%doc libiscsi/html
7f6313
%{_libdir}/libiscsi.so
7f6313
%{_includedir}/libiscsi.h
5a3872
cvsdist 273458
%changelog
fbd856
* Tue Mar 18 2014 Chris Leech <cleech@redhat.com> - 6.2.0.873-21
fbd856
- 1069825
fbd856
- boot session handling improvements
fbd856
- Fix iscsi-mark-root for changed iscsiadm output
fbd856
- Make sure iscsiuio is running for boot session recovery when using the
fbd856
  bnx2i transport by forcing iscsiuio.service start
fbd856
- Make NM dispatch triggered re-check for autostart sessions async
fbd856
- Accept exit code 21, no records, from iscsiadm as success in
fbd856
  iscsi.service
fbd856
4b292f
* Tue Feb 25 2014 Chris Leech <cleech@redhat.com> - 6.2.0.873-20
4b292f
- 1049710 host0 being treated as an invalid in the host stats command
4b292f
- 1015563 revert change to return code when calling login_portal for sessions
4b292f
  that already exist, as it impacts users scripting around iscsiadm
4b292f
2c4537
* Mon Feb 17 2014 Chris Leech <cleech@redhat.com> - 6.2.0.873-19
2c4537
- 1007388 fixes for iscsiadm to support qla4xxx
2c4537
- refresh boot session info patches to final version from upstream,
2c4537
  fixes context issues with later patches
374005
- 1006156, 1006161 Add/Update entries in chap table through Open-iSCSI
a288e4
- 948134 extend support to set additional parameters for network configuration
9a597e
- 1049710 update open-iscsi to support host statistics
e509a4
- 1043019 iscsiuio fix for arp cache flush issue
860e10
- 1059332 Fix broken discovery sessions over iser
eb7ab1
- 1017393 split out iscsiuio into a seperate sub-package
2c4537
40630b
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 6.2.0.873-18
40630b
- Mass rebuild 2014-01-24
40630b
fd1620
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.2.0.873-17
fd1620
- Mass rebuild 2013-12-27
fd1620
a47be9
* Mon Nov 25 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-16
a47be9
- fix iscsiuio socket activation
e4192b
- have systemd start socket units on iscsiadm use, if not already listening
a47be9
974636
* Sun Sep 15 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-15
974636
- move /sbin to /usr/sbin
974636
- use rpm macros in install rules
974636
31786f
* Fri Sep 13 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-14
31786f
- fix iscsiuio hardened build and other compiler flags
31786f
f9b971
* Fri Aug 23 2013 Andy Grover <agrover@redhat.com> - 6.2.0.873-13
f9b971
- Fix patch 0041 to check session != NULL before calling iscsi_sysfs_read_boot()
f9b971
241a29
* Tue Aug 20 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-12
241a29
- fix regression in last build, database records can't be accessed
241a29
2a4a67
* Mon Aug 19 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-11
2a4a67
- iscsi boot related fixes
2a4a67
  make sure iscsid gets started if there are any boot sessions running
2a4a67
  add reload target to fix double session problem when restarting from NM
2a4a67
  don't rely on session list passed from initrd, never got fully implemented
2a4a67
  remove patches related to running iscsid from initrd, possible to revisit later
2a4a67
c2d5d2
* Sun Aug 18 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-10
c2d5d2
- sync with upstream git, minor context fixes after rebase of out-of-tree patches
c2d5d2
- iscsiuio is merged upstream, remove old source archive and patches
c2d5d2
- spec cleanups to fix rpmlint issues
c2d5d2
be68e0
* Sun Aug  4 2013 Peter Robinson <pbrobinson@fedoraproject.org> 6.2.0.873-9
be68e0
- Fix FTBFS, cleanup spec
be68e0
74e869
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.0.873-8
74e869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
74e869
3c58b1
* Tue Jun 11 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-7
3c58b1
- Use the systemd tmpfiles service to recreate lockfiles in /var/lock
643ff5
- 955167 build as a position independent executable
a6ea15
- 894576 fix order of setuid/setgid and drop additional groups
3c58b1
631ea0
* Tue May 28 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-6
631ea0
- Don't have iscsiadm scan for autostart record if node db is empty (bug #951951)
631ea0
3bd762
* Tue Apr 30 2013 Orion Poplawski <orion@cora.nwra.com> - 6.2.0.873-5
3bd762
- Fix typo in NM dispatcher script (bug #917058)
3bd762
3c948f
* Thu Feb 21 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-4
3c948f
- build with libkmod support, instead of calling out to modprobe
3c948f
- enable socket activation by default
3c948f
31b81b
* Thu Jan 24 2013 Kalev Lember <kalevlember@gmail.com> - 6.2.0.873-3
31b81b
- Fix the postun script to not use ldconfig as the interpreter
31b81b
f19f92
* Wed Jan 23 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-2
f19f92
- package iscsi_mark_root_nodes script, it's being referenced by the unit files
f19f92
6c1aaf
* Tue Jan 22 2013 Chris Leech <cleech@redhat.com> - 6.2.0.873-1
6c1aaf
- rebase to new upstream code
6c1aaf
- systemd conversion
259ee6
- 565245 Fix multilib issues caused by timestamp in doxygen footers
6c1aaf
9cb10d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.0.872-19
9cb10d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9cb10d
be68e0
* Tue Feb 14 2012 Mike Christie <mchristi@redhat.com> 6.2.0.872.18
Mike Christie 1d09df
- 789683 Fix boot slow down when the iscsi service is started
Mike Christie 1d09df
  (regression added in 6.2.0.872.16 when the nm wait was added).
Mike Christie 1d09df
be68e0
* Mon Feb 6 2012 Mike Christie <mchristi@redhat.com> 6.2.0.872.17
Mike Christie 658ff4
- 786174 Change iscsid/iscsi service startup, so it always starts
Mike Christie 658ff4
  when called.
Mike Christie 658ff4
Mike Christie c6e1f6
* Sat Feb 4 2012 Mike Christie <mchristi@redhat.com> 6.2.0.872.16
Mike Christie c6e1f6
- 747479 Fix iscsidevs handling of network requirement
Mike Christie c6e1f6
1c4f61
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.0.872-15
1c4f61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1c4f61
Mike Christie 8c735f
* Wed Nov 30 2011 Mike Christie <mcrhsit@redhat.com> 6.2.0.872.14
Mike Christie 8c735f
- Fix version string to reflect fedora and not rhel.
Mike Christie 8c735f
Mike Christie 3949e1
* Tue Oct 18 2011 Mike Christie <mcrhsit@redhat.com> 6.2.0.872.13
Mike Christie 3949e1
- Update iscsi tools.
Mike Christie 3949e1
f149ee
* Sat Apr 30 2011 Hans de Goede <hdegoede@redhat.com> - 6.2.0.872-12
f149ee
- Change iscsi init scripts to check for networking being actually up, rather
f149ee
  then for NetworkManager being started (#692230)
f149ee
2d4a52
* Tue Apr 26 2011 Hans de Goede <hdegoede@redhat.com> - 6.2.0.872-11
2d4a52
- Fix iscsid autostarting when upgrading from an older version
2d4a52
  (add iscsid.startup key to iscsid.conf on upgrade)
2d4a52
- Fix printing of [ OK ] when successfully stopping iscsid
2d4a52
- systemd related fixes:
2d4a52
 - Add Should-Start/Stop tgtd to iscsi init script to fix (re)boot from
2d4a52
   hanging when using locally hosted targets
2d4a52
 - %%ghost /var/lock/iscsi and contents (#656605)
2d4a52
2d4a52
* Mon Apr 25 2011 Mike Christie <mchristi@redhat.com> 6.2.0.872-10
2d4a52
- Fix iscsi init scripts check for networking being up (#692230)
Mike Christie a04b98
832199
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.0.872-9
832199
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild