Blob Blame History Raw
Summary: iSCSI daemon and utility programs
Name: iscsi-initiator-utils
Release: 0.1
Patch0: open-iscsi-
Patch1: open-iscsi-
Group: System Environment/Daemons
License: GPL
Buildroot: %{_tmppath}/%{name}-root
BuildRequires: openssl-devel db4-devel
Prereq: /sbin/chkconfig
ExcludeArch: s390 s390x

The iscsi package provides the server daemon for the iSCSI protocol,
as well as the utility programs used to manage it. iSCSI is a protocol
for distributed disk access using SCSI commands sent over Internet
Protocol networks.

%setup -q -n %{name}-%{version} -c
cd open-iscsi-%{version}
%patch0 -p1 -b .initscript
%patch1 -p1 -b .add-iscsi-iname

cd open-iscsi-%{version}
make -C usr
make -C utils

cd open-iscsi-%{version}

mkdir -p $RPM_BUILD_ROOT/sbin
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
mkdir -p $RPM_BUILD_ROOT/var/db/iscsi/
install -s -m 755 usr/iscsid usr/iscsiadm utils/iscsi-iname $RPM_BUILD_ROOT/sbin
install -m 644 doc/iscsiadm.8 $RPM_BUILD_ROOT/%{_mandir}/man8
install -m 644 doc/iscsid.8 $RPM_BUILD_ROOT/%{_mandir}/man8
install -m 755 etc/initd/initd.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/iscsi
install -m 644 etc/iscsid.conf $RPM_BUILD_ROOT/etc


/sbin/chkconfig --add iscsi

if [ "$1" = "0" ]; then
    /sbin/chkconfig --del iscsi

%config /etc/rc.d/init.d/iscsi
%attr(600,root,root) %config(noreplace) /etc/iscsid.conf
%doc open-iscsi-%{version}/README
%dir /var/db/iscsi

* Fri Feb 10 2006 Jesse Keating <> -
- bump again for double-long bug on ppc(64)

* Mon Jan 23 2006 Mike Christie <>
- rebase package to bring in ppc64 unsigned long vs unsigned
  long long fix and iscsadm return value fix. Also drop rdma patch
  becuase it is now upstream.
* Wed Dec 14 2005 Mike Christie <>
- initial packaging