[521] | 1 | %define majver 2.0 |
---|
| 2 | %define subver 870.3 |
---|
| 3 | |
---|
| 4 | Summary: iSCSI daemon and utility programs |
---|
| 5 | Summary(ja): iSCSI デーモンおよびユーティリティプログラム |
---|
| 6 | #Name: iscsi-initiator-utils |
---|
| 7 | Name: open-iscsi |
---|
| 8 | Version: %{majver}.%{subver} |
---|
[3544] | 9 | Release: 3%{?_dist_release} |
---|
[521] | 10 | Source0: http://www.open-iscsi.org/bits/open-iscsi-%{majver}-%{subver}.tar.gz |
---|
| 11 | Source1: iscsid.init |
---|
| 12 | Source2: iscsidevs.init |
---|
| 13 | Patch0: iscsi-initiator-utils-update-initscripts-and-docs.patch |
---|
| 14 | Patch1: iscsi-initiator-utils-use-var-for-config.patch |
---|
| 15 | |
---|
| 16 | Group: System Environment/Daemons |
---|
| 17 | License: GPL |
---|
| 18 | URL: http://www.open-iscsi.org/ |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 20 | BuildRequires: openssl-devel |
---|
[3544] | 21 | BuildRequires: glibc-static |
---|
[521] | 22 | PreReq: chkconfig initscripts |
---|
| 23 | ExcludeArch: s390 s390x |
---|
| 24 | |
---|
| 25 | # to avoid conflicts with Fedora's iscsi-initiator-utils package |
---|
| 26 | Obsoletes: iscsi-initiator-utils |
---|
| 27 | Conflicts: iscsi-initiator-utils |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | The iscsi package provides the server daemon for the iSCSI protocol, |
---|
| 32 | as well as the utility programs used to manage it. iSCSI is a protocol |
---|
| 33 | for distributed disk access using SCSI commands sent over Internet |
---|
| 34 | Protocol networks. |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q -n %{name}-%{majver}-%{subver} |
---|
| 39 | %patch0 -p1 -b .update-initscripts-and-docs |
---|
| 40 | %patch1 -p1 -b .use-var-for-config |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | %build |
---|
| 44 | make OPTFLAGS="%{optflags}" -C utils/fwparam_ibft |
---|
| 45 | make OPTFLAGS="%{optflags}" -C usr |
---|
| 46 | make OPTFLAGS="%{optflags}" -C utils |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %install |
---|
| 50 | rm -rf $RPM_BUILD_ROOT |
---|
| 51 | mkdir -p $RPM_BUILD_ROOT/sbin |
---|
| 52 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 |
---|
| 53 | mkdir -p $RPM_BUILD_ROOT%{_initrddir} |
---|
| 54 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/iscsi |
---|
| 55 | mkdir -p $RPM_BUILD_ROOT%{_var}/lib/iscsi |
---|
| 56 | mkdir -p $RPM_BUILD_ROOT%{_var}/lib/iscsi/nodes |
---|
| 57 | mkdir -p $RPM_BUILD_ROOT%{_var}/lib/iscsi/send_targets |
---|
| 58 | mkdir -p $RPM_BUILD_ROOT%{_var}/lock/iscsi |
---|
| 59 | |
---|
| 60 | install -p -m 755 usr/iscsid usr/iscsiadm utils/iscsi-iname usr/iscsistart $RPM_BUILD_ROOT/sbin |
---|
| 61 | install -p -m 644 doc/iscsiadm.8 $RPM_BUILD_ROOT/%{_mandir}/man8 |
---|
| 62 | install -p -m 644 doc/iscsid.8 $RPM_BUILD_ROOT/%{_mandir}/man8 |
---|
| 63 | install -p -m 644 etc/iscsid.conf $RPM_BUILD_ROOT%{_sysconfdir}/iscsi |
---|
| 64 | |
---|
| 65 | install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/iscsid |
---|
| 66 | install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/iscsi |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %clean |
---|
| 70 | rm -rf $RPM_BUILD_ROOT |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %post |
---|
| 74 | if [ "$1" -eq "1" ]; then |
---|
| 75 | if [ ! -f %{_sysconfdir}/iscsi/initiatorname.iscsi ]; then |
---|
| 76 | echo "InitiatorName=`/sbin/iscsi-iname`" > %{_sysconfdir}/iscsi/initiatorname.iscsi |
---|
| 77 | fi |
---|
| 78 | /sbin/chkconfig --add iscsid |
---|
| 79 | /sbin/chkconfig --add iscsi |
---|
| 80 | fi |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %preun |
---|
| 84 | if [ "$1" = "0" ]; then |
---|
| 85 | # stop iscsi |
---|
| 86 | /sbin/service iscsi stop > /dev/null 2>&1 |
---|
| 87 | # delete service |
---|
| 88 | /sbin/chkconfig --del iscsi |
---|
| 89 | # stop iscsid |
---|
| 90 | /sbin/service iscsid stop > /dev/null 2>&1 |
---|
| 91 | # delete service |
---|
| 92 | /sbin/chkconfig --del iscsid |
---|
| 93 | fi |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | %files |
---|
| 97 | %defattr(-,root,root) |
---|
| 98 | %doc README |
---|
| 99 | %dir %{_var}/lib/iscsi |
---|
| 100 | %dir %{_var}/lib/iscsi/nodes |
---|
| 101 | %dir %{_var}/lib/iscsi/send_targets |
---|
| 102 | %dir %{_var}/lock/iscsi |
---|
| 103 | %{_initrddir}/iscsi |
---|
| 104 | %{_initrddir}/iscsid |
---|
| 105 | %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/iscsi/iscsid.conf |
---|
| 106 | /sbin/* |
---|
| 107 | %{_mandir}/man8/* |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | %changelog |
---|
[3544] | 111 | * Mon Apr 18 2011 Shu KONNO <owa@bg.wakwak.com> 2.0.870.3-3 |
---|
| 112 | - added BR: glibc-static |
---|
| 113 | |
---|
[3534] | 114 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2.0.870.3-2 |
---|
| 115 | - rebuilt with rpm-4.8.1-3 |
---|
| 116 | |
---|
[521] | 117 | * Sat Jun 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.870.3-1 |
---|
| 118 | - new upstream release |
---|
| 119 | - new versioning policy |
---|
| 120 | |
---|
| 121 | * Wed Dec 05 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.865.15-0vl1 |
---|
| 122 | - initial package for VineSeed |
---|
| 123 | - derived from Fedora8 6.2.0.865-0.2 |
---|
| 124 | - package name changed to open-iscsi |
---|
| 125 | - updated to 2.0-865.15 |
---|
| 126 | |
---|
| 127 | * Fri Oct 5 2007 Mike Christie <mchristie@redhat.com> - 6.2.0.865-0.2 |
---|
| 128 | - Rebase to upstream's bug fix release. |
---|
| 129 | - Revert init script startup changes from 225915 which reviewers did |
---|
| 130 | not like. |
---|
| 131 | |
---|
| 132 | * Mon Jun 20 2007 Mike Christie <mchristie@redhat.com> - 6.2.0.754-0.1 |
---|
| 133 | - 225915 From Adrian Reber - Fix up spec and init files for rpmlint. |
---|
| 134 | |
---|
| 135 | * Tue Feb 6 2007 Mike Christie <mchristie@redhat.com> - 6.2.0.754-0.0 |
---|
| 136 | - Rebase to upstream. |
---|
| 137 | - Add back --map functionality but in session mode to match RHEL5 fixes |
---|
| 138 | - Break up iscsi init script into two, so iscsid can be started early for root |
---|
| 139 | |
---|
| 140 | * Tue Nov 28 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.747-0.0 |
---|
| 141 | - Fix several bugs in actor.c (iscsi scheduling). This should result |
---|
| 142 | - in better dm-multipath intergation and fix bugs where time outs |
---|
| 143 | - or requests were missed or dropped. |
---|
| 144 | - Set default noop timeout correctly. |
---|
| 145 | |
---|
| 146 | * Sat Nov 25 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.742-0.0 |
---|
| 147 | - Don't flood targets with nop-outs. |
---|
| 148 | |
---|
| 149 | * Fri Nov 24 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.737-0.0 |
---|
| 150 | - Add commands missing from RHEL4/RHEL3 and document iscsid.conf. |
---|
| 151 | - Fixup README. |
---|
| 152 | |
---|
| 153 | * Mon Nov 7 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.695-0.8 |
---|
| 154 | - Rebase to upstream open-iscsi-2.0-730. |
---|
| 155 | |
---|
| 156 | * Tue Oct 17 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.695-0.7 |
---|
| 157 | - Change period to colon in default name |
---|
| 158 | |
---|
| 159 | * Thu Oct 5 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.695-0.6 |
---|
| 160 | - BZ 209523 make sure the network is not going to get shutdown so |
---|
| 161 | iscsi devices (include iscsi root and dm/md over iscsi) get syncd. |
---|
| 162 | - BZ 209415 have package create iscsi var dirs |
---|
| 163 | |
---|
| 164 | * Tue Oct 3 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.695-0.5 |
---|
| 165 | - BZ 208864 move /etc/iscsi/nodes and send_targets to /var/lib/iscsi |
---|
| 166 | |
---|
| 167 | * Mon Oct 1 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.695-0.4 |
---|
| 168 | - BZ 208548 move /etc/iscsi/lock to /var/lock/iscsi/lock |
---|
| 169 | |
---|
| 170 | * Wed Sep 27 2006 Jeremy Katz <katzj@redhat.com> - 6.2.0.695-0.3 |
---|
| 171 | - Add fix for initscript with pid file moved |
---|
| 172 | |
---|
| 173 | * Tue Sep 26 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.695-0.2 |
---|
| 174 | - BZ 208050 - change default initiator name to reflect redhat |
---|
| 175 | - Move pid from /etc/iscsi to /var/run/iscsid.pid |
---|
| 176 | |
---|
| 177 | * Fri Sep 15 2006 Mike Christie <mchristie@redhat.com> - 6.2.0.695-0.1 |
---|
| 178 | - Add compat with FC kernel so iscsid will pass startup checks and run. |
---|
| 179 | - Fix bug when using hw iscsi and software iscsi and iscsid is restarted. |
---|
| 180 | - Fix session matching bug when hw and software iscsi is both running |
---|
| 181 | |
---|
| 182 | * Tue Sep 5 2006 Jeremy Katz <katzj@redhat.com> - 6.1.1.685-0.1 |
---|
| 183 | - Fix service startup |
---|
| 184 | - Fix another case where cflags weren't being used |
---|
| 185 | |
---|
| 186 | * Mon Aug 28 2006 Mike Christie <mchristie@redhat.com> - 6.1.1.685 |
---|
| 187 | - Rebase to upstream to bring in many bug fixes and rm db. |
---|
| 188 | - iscsi uses /etc/iscsi instead of just etc now |
---|
| 189 | |
---|
| 190 | * Fri Jul 21 2006 Jeremy Katz <katzj@redhat.com> - 6.1.1.645-1 |
---|
| 191 | - fix shutdown with root on iscsi |
---|
| 192 | |
---|
| 193 | * Thu Jul 13 2006 Mike Christie <mchristie@redhat.com> - 6.1.1.645 |
---|
| 194 | - update to upstream 1.1.645 |
---|
| 195 | - Note DB and interface changed so you must update kernel, tools and DB |
---|
| 196 | |
---|
| 197 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 6.0.5.595-2.1.1 |
---|
| 198 | - rebuild |
---|
| 199 | |
---|
| 200 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 6.0.5.595-2.1 |
---|
| 201 | - rebuild |
---|
| 202 | |
---|
| 203 | * Wed Jun 21 2006 Mike Christie <mchristi@redhat.com> - 6.0.5.595-2 |
---|
| 204 | - add PatM's statics.c file. This is needed for boot since |
---|
| 205 | there is no getpwuid static available at that time. |
---|
| 206 | * Tue Jun 20 2006 Jeremy Katz <katzj@redhat.com> - 6.0.5.595-1 |
---|
| 207 | - ensure that we respect %%{optflags} |
---|
| 208 | - cleaned up initscript to make use of standard functions, return right |
---|
| 209 | values and start by default |
---|
| 210 | - build iscsistart as a static binary for use in initrds |
---|
| 211 | |
---|
| 212 | * Tue May 30 2006 Mike Christie <mchristi@redhat.com> |
---|
| 213 | - rebase package to svn rev 595 to fix several bugs |
---|
| 214 | NOTE!!!!!!!! This is not compatible with the older open-iscsi modules |
---|
| 215 | and tools. You must upgrade. |
---|
| 216 | |
---|
| 217 | * Thu May 18 2006 Mike Christie <mchristi@redhat.com> |
---|
| 218 | - update package to open-iscsi svn rev 571 |
---|
| 219 | NOTE!!!!!!!! This is not compatible with the older open-iscsi modules |
---|
| 220 | and tools. You must upgrade. |
---|
| 221 | |
---|
| 222 | * Fri Apr 7 2006 Mike Christie <mchristi@redhat.com> |
---|
| 223 | - From Andy Henson <andy@zexia.co.uk>: |
---|
| 224 | Autogenerate /etc/initiatorname.iscsi during install if not already present |
---|
| 225 | - Remove code to autogenerate /etc/initiatorname.iscsi from initscript |
---|
| 226 | - From dan.y.roche@gmail.com: |
---|
| 227 | add touch and rm lock code |
---|
| 228 | - update README |
---|
| 229 | - update default iscsid.conf. "cnx" was not supported. The correct |
---|
| 230 | id was "conn". |
---|
| 231 | |
---|
| 232 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0.5.476-0.1 |
---|
| 233 | - bump again for double-long bug on ppc(64) |
---|
| 234 | |
---|
| 235 | * Mon Jan 23 2006 Mike Christie <mchristi@redhat.com> |
---|
| 236 | - rebase package to bring in ppc64 unsigned long vs unsigned |
---|
| 237 | long long fix and iscsadm return value fix. Also drop rdma patch |
---|
| 238 | becuase it is now upstream. |
---|
| 239 | * Wed Dec 14 2005 Mike Christie <mchristi@redhat.com> |
---|
| 240 | - initial packaging |
---|
| 241 | |
---|