2004-09-09 06:23:12 +00:00
|
|
|
Summary: iSCSI daemon and utility programs
|
|
|
|
Name: iscsi-initiator-utils
|
2006-01-23 20:26:19 +00:00
|
|
|
Version: 5.0.5.476
|
2006-02-11 03:39:24 +00:00
|
|
|
Release: 0.1
|
2006-01-23 20:26:19 +00:00
|
|
|
Source0: http://people.redhat.com/mchristi/iscsi/FC5/open-iscsi/rpm/open-iscsi-%{version}.tar.bz2
|
2005-12-15 21:51:38 +00:00
|
|
|
Patch0: open-iscsi-5.0.4.446-initscript.patch
|
2006-01-23 20:26:19 +00:00
|
|
|
Patch1: open-iscsi-5.0.4.446-add-iscsi-iname.patch
|
2004-09-09 06:23:12 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPL
|
2005-12-15 07:34:49 +00:00
|
|
|
URL: http://www.open-iscsi.org
|
2004-09-09 06:23:12 +00:00
|
|
|
Buildroot: %{_tmppath}/%{name}-root
|
2005-12-15 07:34:49 +00:00
|
|
|
BuildRequires: openssl-devel db4-devel
|
2004-09-09 06:23:12 +00:00
|
|
|
Prereq: /sbin/chkconfig
|
|
|
|
ExcludeArch: s390 s390x
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version} -c
|
2005-12-15 07:34:49 +00:00
|
|
|
cd open-iscsi-%{version}
|
|
|
|
%patch0 -p1 -b .initscript
|
2006-01-23 20:26:19 +00:00
|
|
|
%patch1 -p1 -b .add-iscsi-iname
|
2004-09-09 06:23:12 +00:00
|
|
|
|
|
|
|
%build
|
2005-12-15 07:34:49 +00:00
|
|
|
cd open-iscsi-%{version}
|
|
|
|
make -C usr
|
|
|
|
make -C utils
|
2004-09-09 06:23:12 +00:00
|
|
|
|
|
|
|
%install
|
2005-12-15 07:34:49 +00:00
|
|
|
cd open-iscsi-%{version}
|
2004-09-09 06:23:12 +00:00
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2005-12-15 07:34:49 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
2004-09-09 06:23:12 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
2005-12-15 07:34:49 +00:00
|
|
|
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
|
2004-09-09 06:23:12 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/chkconfig --add iscsi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
/sbin/chkconfig --del iscsi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config /etc/rc.d/init.d/iscsi
|
2005-12-15 07:34:49 +00:00
|
|
|
%attr(600,root,root) %config(noreplace) /etc/iscsid.conf
|
|
|
|
%doc open-iscsi-%{version}/README
|
|
|
|
%dir /var/db/iscsi
|
2004-09-09 06:23:12 +00:00
|
|
|
/sbin/*
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
%changelog
|
2006-02-11 03:39:24 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0.5.476-0.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-01-23 21:06:25 +00:00
|
|
|
* Mon Jan 23 2006 Mike Christie <mchristi@redhat.com>
|
|
|
|
- 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.
|
2005-12-15 07:34:49 +00:00
|
|
|
* Wed Dec 14 2005 Mike Christie <mchristi@redhat.com>
|
2004-09-09 06:23:12 +00:00
|
|
|
- initial packaging
|
2006-01-23 20:26:19 +00:00
|
|
|
|