ea4a6f
Name:		biosdevname
ea4a6f
Version:	0.7.3
ea4a6f
Release:	2%{?dist}
ea4a6f
Summary:	Udev helper for naming devices per BIOS names
ea4a6f
ea4a6f
Group:		System Environment/Base
ea4a6f
License:	GPLv2
ea4a6f
URL:		http://linux.dell.com/files/%{name}
ea4a6f
# SMBIOS only exists on these arches.  It's also likely that other
ea4a6f
# arches don't expect the PCI bus to be sorted breadth-first, or of
ea4a6f
# so, there haven't been any comments about that on LKML.
ea4a6f
ExclusiveArch:	%{ix86} x86_64
ea4a6f
Source0:	http://linux.dell.com/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
ea4a6f
ea4a6f
BuildRequires:  autoconf
ea4a6f
BuildRequires:  automake
ea4a6f
BuildRequires:  pciutils-devel
ea4a6f
BuildRequires:  zlib-devel
ea4a6f
ea4a6f
Patch0001:      0001-Add-support-for-ExaNIC-network-cards-5.patch
ea4a6f
Patch0002:      0002-Prevent-infinite-recursion-in-dmidecode.c-smbios_set.patch
ea4a6f
Patch0003:      0003-Netronome-biosdevname-support-8.patch
ea4a6f
ea4a6f
Patch0999:      0999-Place-udev-rules-to-usr-lib.patch
ea4a6f
Patch1000:      1000-rules-disable-pirq-and-force-minimal-smbios-version.patch
ea4a6f
Patch1001:      1001-rules-disable-biosdevname-by-default.patch
ea4a6f
ea4a6f
%description
ea4a6f
biosdevname in its simplest form takes a kernel device name as an
ea4a6f
argument, and returns the BIOS-given name it "should" be.  This is necessary
ea4a6f
on systems where the BIOS name for a given device (e.g. the label on
ea4a6f
the chassis is "Gb1") doesn't map directly and obviously to the kernel
ea4a6f
name (e.g. eth0).
ea4a6f
ea4a6f
%prep
ea4a6f
%setup -q
ea4a6f
%autopatch -p1
ea4a6f
ea4a6f
%build
ea4a6f
autoreconf -fiv
ea4a6f
%configure --prefix=%{_prefix}
ea4a6f
make %{?_smp_mflags}
ea4a6f
ea4a6f
%install
ea4a6f
make install install-data DESTDIR=%{buildroot}
ea4a6f
ea4a6f
%files
ea4a6f
%defattr(-,root,root,-)
ea4a6f
%doc COPYING README
ea4a6f
%{_sbindir}/%{name}
ea4a6f
%{_prefix}/lib/udev/rules.d/*.rules
ea4a6f
%{_mandir}/man1/%{name}.1*
ea4a6f
ea4a6f
%changelog
ea4a6f
* Mon Dec 17 2018 Michal Sekletár <msekleta@redhat.com> - 0.7.3-2
ea4a6f
- make biosdevname optional even on Dell servers (#1623621)
ea4a6f
- prevent infinite recursion in smbios_setslot() (#1499458)
ea4a6f
- Netronome biosdevname support (#1649036)
ea4a6f
ea4a6f
* Fri Mar 23 2018 Michal Sekletar <msekleta@redhat.com> - 0.7.3-1
ea4a6f
- rebase to biosdevname 0.7.3
ea4a6f
ea4a6f
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-5
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ea4a6f
ea4a6f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-4
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ea4a6f
ea4a6f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ea4a6f
ea4a6f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ea4a6f
ea4a6f
* Fri Jun 26 2015 Michal Sekletar <msekleta@redhat.com> - 0.6.2-1
ea4a6f
- Rebase to 0.6.2
ea4a6f
ea4a6f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-5
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ea4a6f
ea4a6f
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ea4a6f
ea4a6f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ea4a6f
ea4a6f
* Mon Sep 02 2013 Harald Hoyer <harald@redhat.com> 0.5.0-2
ea4a6f
- not only NAME KERNEL=="eth*", but every ethernet device
ea4a6f
ea4a6f
* Tue Jul 30 2013 Václav Pavlín <vpavlin@redhat.com> - 0.5.0-1
ea4a6f
- Updating the sources to 0.5.0 version. Following are the changes:
ea4a6f
- Change scan of SMBIOS slot <-> PCI methods, recurse to set SMBIOS slot field
ea4a6f
- Save off secondary bus of PCI device for PCI tree traversal
ea4a6f
- Add version number to biosdevname
ea4a6f
ea4a6f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ea4a6f
ea4a6f
* Wed Nov 14 2012 Václav Pavlín <vpavlin@redhat.com> - 0.4.1-3
ea4a6f
- Source link update
ea4a6f
ea4a6f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ea4a6f
ea4a6f
* Wed Jul 18 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.1-1
ea4a6f
- Fix autoconfig for Fedora systems
ea4a6f
- Make sure that vpd scan only runs on Dell systems, also blacklist Atheros
ea4a6f
  wireless cards which hang when vpd is read.
ea4a6f
- Add fixes to biosdevname to support cards that export multiple network
ea4a6f
  ports per PCI device (chelsio/mellanox).
ea4a6f
ea4a6f
ea4a6f
ea4a6f
* Thu May 3 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.4.0-1
ea4a6f
- Create detached signature
ea4a6f
- Fix man page to use new naming convention
ea4a6f
- Remove unused variables from Stephen Hemminger [shemminger@vyatta.com]
ea4a6f
- Use Physical device for slot numbering for embedded SR-IOV cards
ea4a6f
- Add tracking of ifindex to eths structure
ea4a6f
- Fix naming for add-in network adapters when SMBIOS version is invalid
ea4a6f
- Read VPD-R on Dell systems only
ea4a6f
ea4a6f
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.11-6
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ea4a6f
ea4a6f
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-5
ea4a6f
- Added automake as a build dependency
ea4a6f
ea4a6f
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-4
ea4a6f
- Added autoconf as a build dependency
ea4a6f
ea4a6f
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-3
ea4a6f
- Generating the configure script if it doesn't exist
ea4a6f
ea4a6f
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-2
ea4a6f
- Fixed the dir structure inside the archive
ea4a6f
ea4a6f
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-1
ea4a6f
- Updating the sources to 0.3.11 version. Following are the changes:
ea4a6f
- Fix man page for PCI slot naming
ea4a6f
- Fix clearing of buffer for NPAR/SRIOV naming
ea4a6f
- Add --nopirq and --smbios options to manpage.
ea4a6f
- Verify length of VPD on network device
ea4a6f
- Close file handle on sysfs read
ea4a6f
- Fix naming policy for NPAR devices.
ea4a6f
  Match each PCI device to its VPD 'physical' device to get correct index
ea4a6f
- Exclude  building on ia64 arch
ea4a6f
- Add support functions for determining PCIE slot
ea4a6f
- Scan full path to parent when getting PCIE slot
ea4a6f
- Fix NPAR naming for add-in cards
ea4a6f
- Don't display _vf suffix on NPAR devices with single function
ea4a6f
- Fix PCIe/PIRQ slot mapping
ea4a6f
ea4a6f
* Thu Apr 21 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.8-1
ea4a6f
- Add changes to parse VPD structure for device mapping on NPAR devices
ea4a6f
- Fix pathname
ea4a6f
- Cleanup and comment NPAR code
ea4a6f
- Fix debian packaging rules to regenerate configure script
ea4a6f
- Change pciX to pX for shortened names for PCI add-on devices
ea4a6f
- Fix manpage typo
ea4a6f
- Delete CR-LF in script
ea4a6f
- Change default signing key
ea4a6f
- Add command line arguments for checking SMBIOS version and ignore $PIRQ.
ea4a6f
ea4a6f
* Thu Feb 17 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.7-1
ea4a6f
- drop dump_pirq, suggest use biosdecode instead
ea4a6f
- don't use '#' in names, use 'p' instead, by popular demand
ea4a6f
- properly look for SMBIOS, then $PIR, then recurse
ea4a6f
- Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname
ea4a6f
- Fix segfault when BIOS advertises zero sized PIRQ Routing Table
ea4a6f
- Add 'bonding' and 'openvswitch' to the virtual devices list
ea4a6f
- fail PIRQ lookups if device domain is not 0
ea4a6f
- Don't suggest names if running in a virtual machine (Xen, KVM,
ea4a6f
  VMware tested, but should work on others)
ea4a6f
- Typo fixes
ea4a6f
ea4a6f
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ea4a6f
ea4a6f
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
ea4a6f
- drop biosdevnameS, it's unused and fails to build on F15
ea4a6f
ea4a6f
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
ea4a6f
- install dump_pirq into /usr/sbin
ea4a6f
- fix udev rule, skip running if NAME is already set
ea4a6f
- move udev rule to /lib/udev/rules.d by default
ea4a6f
ea4a6f
* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
ea4a6f
- drop unnecessary explicit version requirement on udev
ea4a6f
- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
ea4a6f
- bugfix: don't assign names to unknown devices
ea4a6f
- bugfix: don't assign duplicate names
ea4a6f
ea4a6f
* Thu Dec  9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
ea4a6f
- add back in use of PCI IRQ Routing Table, if info is not provided by
ea4a6f
  sysfs or SMBIOS
ea4a6f
ea4a6f
* Thu Dec  2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
ea4a6f
- fix for multi-port cards with bridges
ea4a6f
- removal of code for seriously obsolete systems
ea4a6f
ea4a6f
* Sun Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
ea4a6f
- remove all policies except 'physical' and 'all_ethN'
ea4a6f
- handle SR-IOV devices properly
ea4a6f
ea4a6f
* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
ea4a6f
- add --policy=loms, make it default
ea4a6f
- read index and labels from sysfs if available
ea4a6f
ea4a6f
* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
ea4a6f
- fix mmap error checking
ea4a6f
ea4a6f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-7
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ea4a6f
ea4a6f
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-6
ea4a6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ea4a6f
ea4a6f
* Tue May 06 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-5
ea4a6f
- use policy=all_names to find breakage
ea4a6f
ea4a6f
* Sun Feb 10 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-4
ea4a6f
- rebuild for gcc43
ea4a6f
ea4a6f
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-3
ea4a6f
- fix manpage entry in files
ea4a6f
ea4a6f
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-2
ea4a6f
- rebuild with Requires: udev > 115-3.20070920git
ea4a6f
ea4a6f
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
ea4a6f
- coordinate udev rules usage with udev maintainer
ea4a6f
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
ea4a6f
  line parsing.
ea4a6f
ea4a6f
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
ea4a6f
- eliminate libbiosdevname.*, pre and post scripts
ea4a6f
ea4a6f
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
ea4a6f
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
ea4a6f
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
ea4a6f
- build static
ea4a6f
ea4a6f
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
ea4a6f
- initial release