2004-09-09 06:23:12 +00:00
|
|
|
Summary: iSCSI daemon and utility programs
|
|
|
|
Name: iscsi-initiator-utils
|
2004-09-09 06:23:19 +00:00
|
|
|
Version: 4.0.1.8
|
2004-09-09 06:23:12 +00:00
|
|
|
Release: 0.1
|
2004-09-09 06:23:19 +00:00
|
|
|
Source0: http://prdownloads.sourceforge.net/linux-iscsi/linux-iscsi-user-%{version}.tgz
|
|
|
|
Patch0: linux-iscsi-4.0.1.8-redhatify.patch
|
|
|
|
Patch1: linux-iscsi-4.0.1.8-remove_kerneldeps.patch
|
2004-09-09 06:23:12 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPL
|
|
|
|
URL: http://linux-iscsi.sourceforge.net/
|
|
|
|
Buildroot: %{_tmppath}/%{name}-root
|
2004-09-09 06:23:19 +00:00
|
|
|
BuildRequires: sysfsutils-devel
|
|
|
|
Requires: kernel
|
2004-09-09 06:23:12 +00:00
|
|
|
Prereq: /sbin/chkconfig
|
|
|
|
ExcludeArch: s390 s390x
|
|
|
|
Obsoletes: iscsi
|
|
|
|
|
|
|
|
%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
|
|
|
|
cd linux-iscsi-%{version}
|
|
|
|
%patch0 -p1 -b .redhatify
|
2004-09-09 06:23:19 +00:00
|
|
|
%patch1 -p1 -b .remkdep
|
2004-09-09 06:23:12 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd linux-iscsi-%{version}
|
2004-09-09 06:23:19 +00:00
|
|
|
make daemon utils
|
2004-09-09 06:23:12 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
cd linux-iscsi-%{version}
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 06:23:19 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT{/sbin,/dev/iscsi}
|
2004-09-09 06:23:12 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/{man1,man5,man8}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
2004-09-09 06:23:19 +00:00
|
|
|
install -s -m 755 obj/iscsid obj/utils/iscsi-device obj/utils/iscsi-iname obj/utils/iscsi-ls obj/utils/iscsi-id $RPM_BUILD_ROOT/sbin
|
2004-09-09 06:23:12 +00:00
|
|
|
# iscsi-mountall is not necessary because we're using _netdev in /etc/fstab
|
2004-09-09 06:23:19 +00:00
|
|
|
install -m 755 misc/scripts/iscsi-umountall $RPM_BUILD_ROOT/sbin
|
|
|
|
install -m 644 man/iscsi-ls.1 $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
|
|
install -m 644 man/iscsid.8 $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
install -m 644 man/iscsi.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
|
install -m 644 man/iscsi.bindings.5 $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
|
install -m 755 misc/scripts/rc.iscsi $RPM_BUILD_ROOT/etc/rc.d/init.d/iscsi
|
|
|
|
install -m 644 misc/iscsi.conf $RPM_BUILD_ROOT/etc
|
2004-09-09 06:23:12 +00:00
|
|
|
echo 'GenerateName=yes' > initiatorname.iscsi
|
|
|
|
install -m 600 initiatorname.iscsi $RPM_BUILD_ROOT/etc
|
2004-09-09 06:23:19 +00:00
|
|
|
rm -f initiatorname.iscsi
|
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
|
|
|
|
%attr(600,root,root) %config(noreplace) /etc/initiatorname.iscsi
|
|
|
|
%attr(600,root,root) %config(noreplace) /etc/iscsi.conf
|
|
|
|
%doc linux-iscsi-%{version}/README
|
|
|
|
/sbin/*
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 06:23:19 +00:00
|
|
|
* Mon Jul 19 2004 AJ Lewis <alewis@redhat.com> 4.0.1.8-0.1
|
|
|
|
- update to 4.0.1.8 upstream for 2.6 kernels
|
|
|
|
- add iscsi-id to binaries installed
|
|
|
|
|
2004-09-09 06:23:12 +00:00
|
|
|
* Wed Jul 14 2004 AJ Lewis <alewis@redhat.com> 3.6.0.2-0.1
|
|
|
|
- update to 3.6.0.2 upstream
|
|
|
|
- add iscsi-ls to installed binaries
|
|
|
|
- add iscsi-ls.1 manpage to man1
|
|
|
|
- remove /dev/iscsi reference (no longer used)
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Thu Jun 05 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Mon Feb 03 2003 Michael K. Johnson <johnsonm@redhat.com> 3.1.0.3-3
|
|
|
|
- rebuild, 3.1.0.3-3
|
|
|
|
|
|
|
|
* Mon Nov 11 2002 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- Fixed typo in initscript to allow to function
|
|
|
|
|
|
|
|
* Thu Oct 17 2002 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- update to 3.1.0.3 for draft 16 compliance
|
|
|
|
- /etc/initiatorname.iscsi should be mode 600
|
|
|
|
- C++ all gone, no need for libstdc++ static link
|
|
|
|
|
|
|
|
* Wed Aug 14 2002 Bob Matthews <bmatthews@redhat.com>
|
|
|
|
- fix perms on /etc/iscsi.conf
|
|
|
|
|
|
|
|
* Mon Jul 15 2002 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- add status function
|
|
|
|
|
|
|
|
* Thu May 02 2002 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- hack to link statically against libstdc++ so /sbin does not depend on /usr
|
|
|
|
|
|
|
|
* Wed Apr 10 2002 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- update to 2.1.0.20
|
|
|
|
|
|
|
|
* Fri Oct 26 2001 Than Ngo <than@redhat.com> 2.0.1.8-3
|
|
|
|
- cleanup startup script
|
|
|
|
- add excludearch s390 s390x
|
|
|
|
|
|
|
|
* Tue Aug 28 2001 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- clean up shutdown (#52440)
|
|
|
|
|
|
|
|
* Mon Aug 13 2001 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- update to 2.0.1.8 for draft 6 compliance
|
|
|
|
|
|
|
|
* Mon Aug 13 2001 Bob Matthews <bmatthews@redhat.com>
|
|
|
|
- fix typo in initscripts (#51585)
|
|
|
|
|
|
|
|
* Tue Jul 31 2001 Bill Nottingham <notting@redhat.com>
|
|
|
|
- fix up initscript output (#50502)
|
|
|
|
|
|
|
|
* Wed Jul 25 2001 Jeremy Katz <katzj@redhat.com>
|
|
|
|
- source /etc/init.d/functions in the initscript
|
|
|
|
|
|
|
|
* Tue Jul 24 2001 Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
- initial packaging
|