2013-10-10 15:25:24 +02:00
|
|
|
#
|
|
|
|
# spec file for package fcoe-utils
|
|
|
|
#
|
2014-03-19 10:20:41 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-10-10 15:25:24 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fcoe-utils
|
|
|
|
Url: http://www.open-fcoe.org
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libHBAAPI2-devel
|
|
|
|
BuildRequires: libhbalinux2-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: open-lldp-devel
|
2013-10-10 17:16:52 +02:00
|
|
|
Requires: device-mapper
|
2013-10-10 15:25:24 +02:00
|
|
|
Requires: iproute
|
2014-03-19 10:20:41 +01:00
|
|
|
Requires: open-lldp
|
2013-12-06 12:55:35 +01:00
|
|
|
BuildRequires: systemd-devel
|
2013-10-10 15:25:24 +02:00
|
|
|
%systemd_requires
|
|
|
|
Version: 1.0.29
|
|
|
|
Release: 0
|
|
|
|
Summary: FCoE userspace management tools
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/Daemons
|
|
|
|
# git://open-fcoe.org/fcoe/fcoe-utils.git
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source2: fcoe.config
|
|
|
|
Source20: mkinitrd-boot.sh
|
|
|
|
Source22: mkinitrd-setup.sh
|
2013-12-06 09:32:04 +01:00
|
|
|
# Patches from git repository
|
|
|
|
Patch1: 0001-man-Fix-small-typo-regarding-fcf-option.patch
|
|
|
|
Patch2: 0002-Don-t-call-AM_INIT_AUTOMAKE-twice.patch
|
|
|
|
Patch3: 0003-fipvlan-fails-on-powerpc.patch
|
|
|
|
Patch4: 0004-fipvlan-Only-shutdown-interfaces-if-no-vlans-are-cre.patch
|
|
|
|
Patch5: 0005-fipvlan-start-VLAN-interface-from-netlink-handler.patch
|
|
|
|
Patch6: 0006-fipvlan-Extract-create_missing_vlan-function-from-lo.patch
|
|
|
|
Patch7: 0007-fipvlan-create-VLANs-from-netlink-handler.patch
|
|
|
|
Patch8: 0008-fipvlan-Start-FCoE-from-netlink-handler.patch
|
|
|
|
Patch9: 0009-fipvlan-Update-wait-loop-to-wait-for-VLANs.patch
|
|
|
|
Patch10: 0010-fipvlan-Re-send-VLAN-discovery.patch
|
|
|
|
Patch11: 0011-fipvlan-update-manpage.patch
|
|
|
|
Patch12: 0012-fipvlan-Leave-link-up-if-requested.patch
|
|
|
|
Patch13: 0013-fipvlan-Update-manpage-to-reflect-correct-timeout.patch
|
|
|
|
Patch14: 0014-fipvlan-Do-not-shut-down-FCoE-connections-on-physica.patch
|
|
|
|
Patch15: 0015-fipvlan-break-out-of-receive-loop-on-error.patch
|
|
|
|
Patch16: 0016-fipvlan-handle-errors-from-fip-socket-creation.patch
|
|
|
|
Patch17: 0017-fipvlan-filter-interfaces-from-rtnl_getlink.patch
|
|
|
|
|
2013-12-06 12:55:35 +01:00
|
|
|
# Patches to be upstreamed
|
|
|
|
Patch18: 0018-Add-missing-DESTDIR-when-installing-bash-completion.patch
|
|
|
|
Patch19: 0019-Fix-build-with-Wl-as-needed.patch
|
|
|
|
Patch20: 0020-Fix-integer-formatting.patch
|
|
|
|
Patch21: 0021-fcnsq-Fixup-help-text.patch
|
|
|
|
Patch22: 0022-fcnsq-Fixup-64bit-integer-handling.patch
|
|
|
|
Patch23: 0023-fcoemon-add-systemd-service-file.patch
|
|
|
|
Patch24: 0024-fcoemon-systemd-socket-activation.patch
|
|
|
|
|
2013-10-10 15:25:24 +02:00
|
|
|
# Patches from Fedora
|
2013-12-06 09:32:04 +01:00
|
|
|
Patch101: fcoe-utils-1.0.29-make.patch
|
2013-10-10 15:25:24 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Userspace tools to manage FibreChannel over Ethernet (FCoE)
|
|
|
|
connections.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-10-10 17:22:42 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2013-12-06 09:32:04 +01:00
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
2013-12-06 12:55:35 +01:00
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
2013-12-06 09:32:04 +01:00
|
|
|
%patch101 -p1
|
2013-10-10 15:25:24 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -vi
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
# old init script
|
|
|
|
rm -rf %{buildroot}/etc/init.d
|
|
|
|
|
|
|
|
# mkinitrd script
|
|
|
|
install -d ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/
|
|
|
|
install -m 755 %{S:20} ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/boot-fcoe.sh
|
|
|
|
install -m 755 %{S:22} ${RPM_BUILD_ROOT}/lib/mkinitrd/scripts/setup-fcoe.sh
|
|
|
|
|
|
|
|
# unitfile
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcfcoe
|
|
|
|
|
|
|
|
# config
|
|
|
|
mkdir -p %{buildroot}/var/adm/fillup-templates
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}/var/adm/fillup-templates/sysconfig.fcoe
|
|
|
|
|
|
|
|
# contrib files
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/fcoe
|
|
|
|
for file in \
|
|
|
|
contrib/*.sh \
|
|
|
|
debug/*sh
|
|
|
|
do install -m 755 ${file} %{buildroot}%{_libexecdir}/fcoe/
|
|
|
|
done
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre fcoe.service
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post
|
|
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
|
|
|
%service_add_post fcoe.service
|
|
|
|
%fillup_only -n fcoe
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun fcoe.service
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun
|
|
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
|
|
|
%service_del_preun fcoe.service
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README COPYING QUICKSTART
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_unitdir}/fcoe.service
|
2013-12-06 12:55:35 +01:00
|
|
|
%{_unitdir}/fcoemon.socket
|
2013-10-10 15:25:24 +02:00
|
|
|
%{_sysconfdir}/fcoe/
|
|
|
|
%config(noreplace) %{_sysconfdir}/fcoe/config
|
|
|
|
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
|
2013-12-06 10:18:27 +01:00
|
|
|
%config %{_sysconfdir}/bash_completion.d/
|
2013-10-10 15:25:24 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.fcoe
|
|
|
|
%{_libexecdir}/fcoe/
|
|
|
|
/lib/mkinitrd
|
|
|
|
|
|
|
|
%changelog
|