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