Matt Domsch 0b19e0d
Name:		biosdevname
praveenp b82a465
Version:	0.3.11
a3aa4b0
Release:	6%{?dist}
Matt Domsch 0b19e0d
Summary:	Udev helper for naming devices per BIOS names
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
Group:		System Environment/Base
Matt Domsch 0b19e0d
License:	GPLv2
Matt Domsch 0b19e0d
URL:		http://linux.dell.com/files/%{name}
Matt Domsch c792e1a
# SMBIOS only exists on these arches.  It's also likely that other
Matt Domsch c792e1a
# arches don't expect the PCI bus to be sorted breadth-first, or of
Matt Domsch c792e1a
# so, there haven't been any comments about that on LKML.
Matt Domsch 0b19e0d
ExclusiveArch:	%{ix86} x86_64 ia64
Matt Domsch c792e1a
Source0:	http://linux.dell.com/files/%{name}/permalink/%{name}-%{version}.tar.gz
a3aa4b0
Matt Domsch 0b19e0d
BuildRequires:	pciutils-devel, zlib-devel
Matt Domsch 0b19e0d
# to figure out how to name the rules file
Matt Domsch 0b19e0d
BuildRequires:	udev
praveenp b82a465
#To generate the configure script
praveenp 8da72ff
BuildRequires:	autoconf
praveenp b82a465
BuildRequires:  automake
Matt Domsch 0b19e0d
# for ownership of /etc/udev/rules.d
Matt Domsch a5d2e35
Requires: udev
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%description
Matt Domsch 0b19e0d
biosdevname in its simplest form takes a kernel device name as an
Matt Domsch 0b19e0d
argument, and returns the BIOS-given name it "should" be.  This is necessary
Matt Domsch 0b19e0d
on systems where the BIOS name for a given device (e.g. the label on
Matt Domsch 0b19e0d
the chassis is "Gb1") doesn't map directly and obviously to the kernel
Matt Domsch 0b19e0d
name (e.g. eth0).
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%prep
Matt Domsch 0b19e0d
%setup -q
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%build
praveenp b82a465
#If configure script doesn't exist generate it with autogen script
praveenp b82a465
[ -e ./configure ] || ./autogen.sh --no-configure
praveenp b82a465
Matt Domsch 0b19e0d
# this is a udev rule, so it needs to live in / rather than /usr
Matt Domsch 0b19e0d
%configure --disable-rpath --prefix=/ --sbindir=/sbin
Matt Domsch 0b19e0d
make %{?_smp_mflags}
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%install
Matt Domsch 29a813f
make install install-data DESTDIR=%{buildroot}
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%files
Matt Domsch 0b19e0d
%defattr(-,root,root,-)
Matt Domsch 0b19e0d
%doc COPYING README
Matt Domsch 0b19e0d
/sbin/%{name}
Matt Domsch 7417959
# hack for either /etc or /lib rules location
Matt Domsch 7417959
/*/udev/rules.d/*.rules
Matt Domsch 276246d
%{_mandir}/man1/%{name}.1*
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
%changelog
a3aa4b0
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.11-6
4394864
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4394864
praveenp acb5472
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-5
praveenp acb5472
- Added automake as a build dependency
praveenp acb5472
praveenp 8da72ff
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-4
praveenp 8da72ff
- Added autoconf as a build dependency
praveenp 8da72ff
praveenp 876c155
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-3
praveenp 876c155
- Generating the configure script if it doesn't exist
praveenp 876c155
praveenp 8c0bff2
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-2
praveenp 8c0bff2
- Fixed the dir structure inside the archive
praveenp b82a465
praveenp b82a465
* Tue Oct  4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-1
praveenp b82a465
- Updating the sources to 0.3.11 version. Following are the changes:
praveenp b82a465
- Fix man page for PCI slot naming
praveenp b82a465
- Fix clearing of buffer for NPAR/SRIOV naming
praveenp b82a465
- Add --nopirq and --smbios options to manpage.
praveenp b82a465
- Verify length of VPD on network device
praveenp b82a465
- Close file handle on sysfs read
praveenp b82a465
- Fix naming policy for NPAR devices.
praveenp b82a465
  Match each PCI device to its VPD 'physical' device to get correct index
praveenp b82a465
- Exclude  building on ia64 arch
praveenp b82a465
- Add support functions for determining PCIE slot
praveenp b82a465
- Scan full path to parent when getting PCIE slot
praveenp b82a465
- Fix NPAR naming for add-in cards
praveenp b82a465
- Don't display _vf suffix on NPAR devices with single function
praveenp b82a465
- Fix PCIe/PIRQ slot mapping
praveenp b82a465
a3aa4b0
<<<<<<< HEAD
a3aa4b0
=======
praveenp 692626e
a3aa4b0
>>>>>>> f16
praveenp caab12a
* Thu Apr 21 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.8-1
praveenp caab12a
- Add changes to parse VPD structure for device mapping on NPAR devices
praveenp caab12a
- Fix pathname
praveenp caab12a
- Cleanup and comment NPAR code
praveenp caab12a
- Fix debian packaging rules to regenerate configure script
praveenp caab12a
- Change pciX to pX for shortened names for PCI add-on devices
praveenp caab12a
- Fix manpage typo
praveenp caab12a
- Delete CR-LF in script
praveenp caab12a
- Change default signing key
praveenp caab12a
- Add command line arguments for checking SMBIOS version and ignore $PIRQ.
praveenp caab12a
Matt Domsch 0b2568e
* Thu Feb 17 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.7-1
Matt Domsch 0b2568e
- drop dump_pirq, suggest use biosdecode instead
Matt Domsch 0b2568e
- don't use '#' in names, use 'p' instead, by popular demand
Matt Domsch 0b2568e
- properly look for SMBIOS, then $PIR, then recurse
Matt Domsch 0b2568e
- Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname
Matt Domsch 0b2568e
- Fix segfault when BIOS advertises zero sized PIRQ Routing Table
Matt Domsch 0b2568e
- Add 'bonding' and 'openvswitch' to the virtual devices list
Matt Domsch 0b2568e
- fail PIRQ lookups if device domain is not 0
Matt Domsch 0b2568e
- Don't suggest names if running in a virtual machine (Xen, KVM,
Matt Domsch 0b2568e
  VMware tested, but should work on others)
Matt Domsch 0b2568e
- Typo fixes
Matt Domsch 0b2568e
23a3c14
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.6-2
23a3c14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
23a3c14
Matt Domsch 6c45282
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
Matt Domsch 6c45282
- drop biosdevnameS, it's unused and fails to build on F15
Matt Domsch 6c45282
Matt Domsch 7417959
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
Matt Domsch 7417959
- install dump_pirq into /usr/sbin
Matt Domsch 7417959
- fix udev rule, skip running if NAME is already set
Matt Domsch 7417959
- move udev rule to /lib/udev/rules.d by default
Matt Domsch 7417959
Matt Domsch a5d2e35
* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
Matt Domsch a5d2e35
- drop unnecessary explicit version requirement on udev
Matt Domsch a5d2e35
- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
Matt Domsch a5d2e35
- bugfix: don't assign names to unknown devices
Matt Domsch a5d2e35
- bugfix: don't assign duplicate names
Matt Domsch a5d2e35
Matt Domsch beba76c
* Thu Dec  9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
Matt Domsch beba76c
- add back in use of PCI IRQ Routing Table, if info is not provided by
Matt Domsch beba76c
  sysfs or SMBIOS
Matt Domsch beba76c
Matt Domsch c792e1a
* Thu Dec  2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
Matt Domsch c792e1a
- fix for multi-port cards with bridges
Matt Domsch c792e1a
- removal of code for seriously obsolete systems
Matt Domsch c792e1a
Matt Domsch 852c4be
* Mon Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
Matt Domsch 852c4be
- remove all policies except 'physical' and 'all_ethN'
Matt Domsch 852c4be
- handle SR-IOV devices properly
Matt Domsch 852c4be
Matt Domsch 29a813f
* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
Matt Domsch 29a813f
- add --policy=loms, make it default
Matt Domsch 29a813f
- read index and labels from sysfs if available
Matt Domsch 29a813f
Matt Domsch 29a813f
* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
Matt Domsch 29a813f
- fix mmap error checking
Matt Domsch 29a813f
cb9c8ab
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-7
cb9c8ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cb9c8ab
3717b13
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-6
3717b13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3717b13
Matt Domsch 3cefc0c
* Tue May 06 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-5
Matt Domsch 3cefc0c
- use policy=all_names to find breakage
Matt Domsch 3cefc0c
Matt Domsch a3aa742
* Sun Feb 10 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-4
Matt Domsch a3aa742
- rebuild for gcc43
Matt Domsch a3aa742
Matt Domsch 276246d
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-3
Matt Domsch 276246d
- fix manpage entry in files
Matt Domsch 29a813f
 
Matt Domsch eb7126d
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-2
Matt Domsch eb7126d
- rebuild with Requires: udev > 115-3.20070920git
Matt Domsch eb7126d
Matt Domsch 0b19e0d
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
Matt Domsch 0b19e0d
- coordinate udev rules usage with udev maintainer
Matt Domsch 0b19e0d
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
Matt Domsch 0b19e0d
  line parsing.
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
Matt Domsch 0b19e0d
- eliminate libbiosdevname.*, pre and post scripts
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
Matt Domsch 0b19e0d
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
Matt Domsch 0b19e0d
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
Matt Domsch 0b19e0d
- build static
Matt Domsch 0b19e0d
Matt Domsch 0b19e0d
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
Matt Domsch 0b19e0d
- initial release