swt2c / rpms / fcoe-utils

Forked from rpms/fcoe-utils 5 years ago
Clone
Jan Zeleny 40414ea
Name:           fcoe-utils
9a79b1c
Version:        1.0.18
9fb2e54
Release:        2%{?dist}
Jan Zeleny 40414ea
Summary:        Fibre Channel over Ethernet utilities
Jan Zeleny 40414ea
Group:          Applications/System
Jan Zeleny 40414ea
License:        GPLv2
Jan Zeleny 40414ea
URL:            http://www.open-fcoe.org
9a79b1c
# git://open-fcoe.org/fcoe/fcoe-utils.git
9a79b1c
Source0:        %{name}-%{version}.tar.bz2
Jan Zeleny 1b31d37
Source1:        quickstart.txt
9a79b1c
# Generic Fedora patches
9a79b1c
Patch0:         fcoe-utils-1.0.17-init.patch
9a79b1c
Patch1:         fcoe-utils-1.0.17-make.patch
9a79b1c
Patch2:         fcoe-utils-1.0.18-help.patch
9a79b1c
#Patch3:         fcoe-utils-1.0.17-manpages.patch
9a79b1c
Patch4:         fcoe-utils-1.0.18-config.patch
9a79b1c
Patch5:         fcoe-utils-1.0.18-kernel-headers.patch
9a79b1c
# Upstream patches
9a79b1c
Patch10:        fcoe-utils-1.0.18-fcoemon-Use-new-libfcoe.ko-interfaces-create-destroy.patch
9a79b1c
Patch11:        fcoe-utils-1.0.18-fcoe-utils-Add-SUPPORTED_DRIVERS-field-to-config.patch
9a79b1c
Patch12:        fcoe-utils-1.0.18-fcoe-utils-Handle-more-than-128-adapters-in-fcoeadm-.patch
9a79b1c
Patch13:        fcoe-utils-1.0.18-fcoeutils-Cancel-vlan-discovery-timer-only-when-vali.patch
9a79b1c
Patch14:        fcoe-utils-1.0.18-fcoeutils-Retry-vlan-discovery-forever-if-AUTO_VLAN-.patch
9a79b1c
Patch15:        fcoe-utils-1.0.18-fcoe-utils-Include-current-lldpad-headers.patch
9a79b1c
Patch16:        fcoe-utils-1.0.18-fcoe-utils-Add-libnl-build-dependency-for-fcoe-utils.patch
9a79b1c
Patch17:        fcoe-utils-1.0.18-fcoemon-Unexpected-FLOGI-after-fcoe-port-is-destroye.patch
9a79b1c
Patch18:        fcoe-utils-1.0.18-fcoe-utils-Drain-fip-socket-during-creation-to-disca.patch
9a79b1c
Patch19:        fcoe-utils-1.0.18-fcoe-utils-Include-fcoe_utils.h-before-scsi-scsi.h.patch
9a79b1c
Patch20:        fcoe-utils-1.0.18-fcoe-utils-Remove-unused-variable-symbolic_name_len.patch
9a79b1c
Patch21:        fcoe-utils-1.0.18-fcoe-utils-Use-iproute2-instead-of-deprecated-vconfi.patch
9a79b1c
Patch22:        fcoe-utils-1.0.18-fcoe-utils-Documentation-for-the-fcoeadm-Scan-option.patch
9a79b1c
Patch23:        fcoe-utils-1.0.18-fcoemon-Correct-wrong-error-check.patch
9a79b1c
Patch24:        fcoe-utils-1.0.18-fcoemon-Fix-2-file-descriptor-leaks.patch
9a79b1c
Patch25:        fcoe-utils-1.0.18-fcoe-utils-Avoid-freeing-uninitialized-pointer-in-fc.patch
9fb2e54
Patch26:        fcoe-utils-1.0.18-fcoemon-Do-not-create-a-world-and-group-writable-PID.patch
9a79b1c
9a79b1c
BuildRequires:    libhbaapi-devel lldpad-devel libnl-devel
6bde9c6
BuildRequires:    libtool automake autoconf
8a972b6
Requires:         lldpad libhbalinux >= 1.0.9 iproute device-mapper-multipath
Jan Zeleny 40414ea
Requires(post):   chkconfig
Jan Zeleny 40414ea
Requires(preun):  chkconfig initscripts
Jan Zeleny 40414ea
Requires(postun): initscripts
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%description
Jan Zeleny 40414ea
Fibre Channel over Ethernet utilities
Jan Zeleny 40414ea
fcoeadm - command line tool for configuring FCoE interfaces
Jan Zeleny 34acd09
fcoemon - service to configure DCB Ethernet QOS filters, works with dcbd or lldpad
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%prep
9a79b1c
%setup -q -c -n %{name}-%{version}
9a79b1c
# Upstream first
9a79b1c
%patch10 -p1
9a79b1c
%patch11 -p1
9a79b1c
%patch12 -p1
9a79b1c
%patch13 -p1
9a79b1c
%patch14 -p1
9a79b1c
%patch15 -p1
9a79b1c
%patch16 -p1
9a79b1c
%patch17 -p1
9a79b1c
%patch18 -p1
9a79b1c
%patch19 -p1
9a79b1c
%patch20 -p1
9a79b1c
%patch21 -p1
9a79b1c
%patch22 -p1
9a79b1c
%patch23 -p1
9a79b1c
%patch24 -p1
9a79b1c
%patch25 -p1
9fb2e54
%patch26 -p1
9a79b1c
# Fedora patches on top of that...
9a79b1c
%patch0 -p1 -b .init
9a79b1c
%patch1 -p1 -b .make
9a79b1c
%patch2 -p1 -b .help
9a79b1c
#%patch3 -p1 -b .manpages
9a79b1c
%patch4 -p1 -b .config
9a79b1c
%patch5 -p1 -F 2 -b .kernel-headers
7e8d285
Jan Zeleny 40414ea
%build
Jan Zeleny 57fc344
./bootstrap.sh
Jan Zeleny 40414ea
%configure
Jan Zeleny 40414ea
make %{?_smp_mflags}
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%install
9a79b1c
make install DESTDIR=%{buildroot}
9a79b1c
mkdir -p %{buildroot}%{_initrddir}
9a79b1c
mv %{buildroot}/etc/init.d/fcoe %{buildroot}%{_initrddir}/fcoe
9a79b1c
rm -rf %{buildroot}/etc/init.d
Jan Zeleny 1b31d37
install -m 644 %SOURCE1 quickstart.txt
9a79b1c
mkdir -p %{buildroot}%{_sysconfdir}/fcoe/
9a79b1c
cp etc/config %{buildroot}%{_sysconfdir}/fcoe/config
9a79b1c
mkdir -p %{buildroot}%{_libexecdir}/fcoe
9a79b1c
install -m 755 contrib/fcc.sh %{buildroot}%{_libexecdir}/fcoe/fcc.sh
9a79b1c
install -m 755 contrib/fcoe_edd.sh %{buildroot}%{_libexecdir}/fcoe/fcoe_edd.sh
9a79b1c
install -m 755 contrib/fcoe-setup.sh %{buildroot}%{_libexecdir}/fcoe/fcoe-setup.sh
9a79b1c
install -m 755 debug/fcoedump.sh %{buildroot}%{_libexecdir}/fcoe/fcoedump.sh
9a79b1c
install -m 755 debug/dcbcheck.sh %{buildroot}%{_libexecdir}/fcoe/dcbcheck.sh
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%post
Jan Zeleny c30f314
/sbin/chkconfig --add fcoe
Jan Zeleny c30f314
Jan Zeleny c30f314
%triggerun -- fcoe-utils <= 1.0.7-5
Jan Zeleny c30f314
if [ -x %{_initrddir}/fcoe-utils ]; then
Jan Zeleny c30f314
  /sbin/service fcoe-utils stop > /dev/null 2>&1
Jan Zeleny c30f314
  /sbin/chkconfig fcoe-utils off
Jan Zeleny c30f314
  # now copy an updated file, which we need to do proper condrestart
Jan Zeleny c30f314
  sed 's/\/var\/lock\/subsys\/fcoe/\/var\/lock\/subsys\/fcoe-utils/' %{_initrddir}/fcoe > %{_initrddir}/fcoe-utils
Jan Zeleny c30f314
fi
Jan Zeleny c30f314
Jan Zeleny c30f314
%triggerpostun -- fcoe-utils <= 1.0.7-5
Jan Zeleny c30f314
if [ -x %{_initrddir}/fcoe-utils ]; then
Jan Zeleny c30f314
  rm -f %{_initrddir}/fcoe-utils # this file should be already deleted, but just in case ...
Jan Zeleny c30f314
fi
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%preun
Jan Zeleny 40414ea
if [ $1 = 0 ]; then
Jan Zeleny c30f314
        /sbin/service fcoe stop > /dev/null 2>&1
Jan Zeleny c30f314
        /sbin/chkconfig --del fcoe
Jan Zeleny 40414ea
fi
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%postun
Jan Zeleny 40414ea
if [ "$1" -ge "1" ]; then
Jan Zeleny c30f314
        /sbin/service fcoe condrestart > /dev/null  2>&1 || :
Jan Zeleny 40414ea
fi
Jan Zeleny 40414ea
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%files
Jan Zeleny 40414ea
%defattr(-,root,root,-)
Jan Zeleny 1b31d37
%doc README COPYING quickstart.txt
Jan Zeleny 40414ea
%{_sbindir}/*
Jan Zeleny 40414ea
%{_mandir}/man8/*
Jan Zeleny 40414ea
%dir %{_sysconfdir}/fcoe/
Jan Zeleny 40414ea
%config(noreplace) %{_sysconfdir}/fcoe/config
Jan Zeleny 40414ea
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
Jan Zeleny c30f314
%{_initrddir}/fcoe
Jan Zeleny a66b07f
%attr(0755,root,root) %{_libexecdir}/fcoe/fcoe_edd.sh
Jan Zeleny 80a8eaa
%attr(0755,root,root) %{_libexecdir}/fcoe/fcoe-setup.sh
Jan Zeleny 80a8eaa
%attr(0755,root,root) %{_libexecdir}/fcoe/fcc.sh
Jan Zeleny 80a8eaa
%attr(0755,root,root) %{_libexecdir}/fcoe/fcoedump.sh
Jan Zeleny 80a8eaa
%attr(0755,root,root) %{_libexecdir}/fcoe/dcbcheck.sh
Jan Zeleny 40414ea
Jan Zeleny 40414ea
Jan Zeleny 40414ea
%changelog
9fb2e54
* Wed May  3 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-2
9fb2e54
- fcoemon: Do not create a world and group writable PID file
9fb2e54
9a79b1c
* Wed Apr 20 2011 Petr Sabata <psabata@redhat.com> - 1.0.18-1
9a79b1c
- 1.0.18 bump with latest bugfixes
9a79b1c
- Removing ExcludeArch completely; not related for Fedora
9a79b1c
- Buildroot cleanup
9a79b1c
ee283d8
* Tue Apr 19 2011 Karsten Hopp <karsten@redhat.com> 1.0.17-1.1
ee283d8
- remove excludearch ppc, required by anaconda.ppc
ee283d8
6bde9c6
* Thu Feb 24 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 1.0.17-1
6bde9c6
- Pull in new upstream release (required to build)
6bde9c6
- Fix git clone URL in comments
6bde9c6
- Drop fcoe-utils-1.0.7-init.patch, fcoe-utils-1.0.7-init-condrestart.patch
6bde9c6
  and fcoe-utils-1.0.8-init-LSB.patch that are now upstream
6bde9c6
- Drop fcoe-utils-1.0.8-includes.patch and use a copy of kernel headers
6bde9c6
  for all architectures (rename fcoe-sparc.patch to fcoe-include-headers.patch)
6bde9c6
  Upstream added detection to avoid inclusion of kernel headers in the build
6bde9c6
  and it expects to find the userland headers installed. Those have not
6bde9c6
  yet propagated in Fedora.
6bde9c6
  Use temporary this workaround, since fcoe is a requiment for anaconda
6bde9c6
  and it failed to build for a while
6bde9c6
- Drop BuildRequires on kernel-devel
6bde9c6
- Add BuildRequires on autoconf (it is used and not installed by default
6bde9c6
  on all build chroots)
6bde9c6
7e8d285
* Wed Feb 23 2011 Dennis Gilmore <dennis@ausil.us> - 1.0.14-5
7e8d285
- patch in headers used from kernel-devel on 32 bit sparc 
7e8d285
9b4636c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-4
9b4636c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9b4636c
8a972b6
* Tue Nov 30 2010 Petr Sabata <psabata@redhat.com> - 1.0.14-3
8a972b6
- Removing dependency on vconfig, rhbz#658525
8a972b6
Jan Zeleny d379788
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-2
Jan Zeleny d379788
- added device-mapper-multipath to requires (#603242)
Jan Zeleny d379788
- added missing man pages for fcrls, fcnsq and fcping
Jan Zeleny d379788
- update of init script - added condrestart, try-restart
Jan Zeleny d379788
  and force-reload options
Jan Zeleny d379788
- added vconfig to requires (#589608)
Jan Zeleny d379788
Jan Zeleny e04586d
* Mon May 24 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.14-1
Jan Zeleny e04586d
- rebased to 1.0.14, see bug #593824 for complete changelog
Jan Zeleny e04586d
Jan Zeleny 80a8eaa
* Mon Apr 12 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.13-1
Jan Zeleny 80a8eaa
- rebased to v1.0.13, some bugfixes, new fcoe related scripts
Jan Zeleny 80a8eaa
Jan Zeleny a66b07f
* Tue Mar 30 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-2.20100323git
Jan Zeleny a66b07f
- some upstream updates
Jan Zeleny a66b07f
- better fipvlan support
Jan Zeleny a66b07f
- added fcoe_edd.sh script
Jan Zeleny a66b07f
Jan Zeleny 34acd09
* Tue Mar 16 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.12-1
Jan Zeleny 34acd09
- rebased to version 1.0.12, improved functionality with lldpad
Jan Zeleny 34acd09
  and dcbd
Jan Zeleny a7f5530
- removed /etc/fcoe/scripts/fcoeplumb
Jan Zeleny 34acd09
Jan Zeleny b5de791
* Thu Dec 10 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-2.20091204git
Jan Zeleny b5de791
- excluded s390 and ppc
Jan Zeleny b5de791
Jan Zeleny dfe27be
* Fri Dec 04 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-1.20091204git
Jan Zeleny dfe27be
- rebase to latest version of fcoe-utils
Jan Zeleny dfe27be
Jan Zeleny d1feeb3
* Mon Sep 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-3
Jan Zeleny d1feeb3
- update of init script to be LSB-compliant
Jan Zeleny d1feeb3
Jan Zeleny 57fc344
* Fri Jul 31 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-2
Jan Zeleny 57fc344
- patch for clean compilation without usage of upstream's ugly hack
Jan Zeleny 57fc344
Jan Zeleny 57fc344
* Thu Jul 30 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-1
Jan Zeleny 57fc344
- rebase of fcoe-utils to 1.0.8, adjusted spec file
Jan Zeleny 57fc344
2b4d8b8
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-8
2b4d8b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2b4d8b8
Jan Zeleny 1b31d37
* Tue Jun 9 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-7
Jan Zeleny 1b31d37
- added quickstart file to %doc (#500759)
Jan Zeleny 1b31d37
Jan Zeleny c30f314
* Thu May 14 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-6
Jan Zeleny c30f314
- renamed init script to fcoe, changed lock filename to fcoe
Jan Zeleny c30f314
  (#497604)
Jan Zeleny c30f314
- init script modified to do condrestart properly
Jan Zeleny c30f314
- some modifications in spec file to apply previous change
Jan Zeleny c30f314
  to older versions od init script during update
Jan Zeleny c30f314
- fixed issue with accepting long options (#498551)
Jan Zeleny c30f314
Jan Zeleny c30f314
* Mon May 4 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-5
Jan Zeleny 5af7502
- fixed SIGSEGV when fcoe module isn't loaded (#498550)
Jan Zeleny 5af7502
Jan Zeleny 47a58f5
* Wed Apr 27 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-4
Jan Zeleny 47a58f5
- added libhbalinux to Requires (#497605)
Jan Zeleny 47a58f5
- correction of spec file (_initddir -> _initrddir)
Jan Zeleny 47a58f5
Jan Zeleny 40414ea
* Wed Apr 8 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-3
Jan Zeleny 40414ea
- more minor corrections in spec file
Jan Zeleny 40414ea
Jan Zeleny 40414ea
* Thu Apr 2 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-2
Jan Zeleny 40414ea
- minor corrections in spec file
Jan Zeleny 40414ea
- moved init script to correct location
Jan Zeleny 40414ea
- correction in the init script (chkconfig directives)
Jan Zeleny 40414ea
Jan Zeleny 40414ea
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 1.0.7-1
Jan Zeleny 40414ea
- initial rpm build of fcoe tools
Jan Zeleny 40414ea