1
by Colin Watson
Import upstream version 0.3.7 |
1 |
Name: biosdevname |
1.1.4
by Mario Limonciello
Import upstream version 0.4.1 |
2 |
Version: 0.4.1 |
1
by Colin Watson
Import upstream version 0.3.7 |
3 |
Release: 1%{?dist} |
4 |
Summary: Udev helper for naming devices per BIOS names |
|
5 |
||
6 |
Group: System Environment/Base |
|
7 |
License: GPLv2 |
|
8 |
URL: http://linux.dell.com/files/%{name} |
|
9 |
# SMBIOS only exists on these arches. It's also likely that other
|
|
10 |
# arches don't expect the PCI bus to be sorted breadth-first, or of
|
|
11 |
# so, there haven't been any comments about that on LKML.
|
|
1.1.2
by Colin Watson
Import upstream version 0.3.11 |
12 |
ExclusiveArch: %{ix86} x86_64 |
1
by Colin Watson
Import upstream version 0.3.7 |
13 |
Source0: http://linux.dell.com/files/%{name}/permalink/%{name}-%{version}.tar.gz |
14 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
|
15 |
BuildRequires: pciutils-devel, zlib-devel |
|
16 |
# to figure out how to name the rules file
|
|
17 |
BuildRequires: udev |
|
1.1.3
by Paolo Rotolo
Import upstream version 0.4.0 |
18 |
#To generate the configure script
|
19 |
BuildRequires: autoconf |
|
20 |
BuildRequires: automake |
|
1
by Colin Watson
Import upstream version 0.3.7 |
21 |
# for ownership of /etc/udev/rules.d
|
22 |
Requires: udev |
|
23 |
||
24 |
%description
|
|
25 |
biosdevname in its simplest form takes a kernel device name as an |
|
26 |
argument, and returns the BIOS-given name it "should" be. This is necessary |
|
27 |
on systems where the BIOS name for a given device (e.g. the label on |
|
28 |
the chassis is "Gb1") doesn't map directly and obviously to the kernel |
|
29 |
name (e.g. eth0). |
|
30 |
||
31 |
%prep
|
|
32 |
%setup -q |
|
33 |
||
34 |
%build
|
|
1.1.3
by Paolo Rotolo
Import upstream version 0.4.0 |
35 |
#If configure script doesn't exist generate it with autogen script
|
36 |
[ -e ./configure ] || ./autogen.sh --no-configure |
|
37 |
||
38 |
||
1
by Colin Watson
Import upstream version 0.3.7 |
39 |
# this is a udev rule, so it needs to live in / rather than /usr
|
40 |
%configure --disable-rpath --prefix=/ --sbindir=/sbin |
|
41 |
make %{?_smp_mflags} |
|
42 |
||
43 |
||
44 |
%install
|
|
45 |
rm -rf %{buildroot} |
|
46 |
make install install-data DESTDIR=%{buildroot} |
|
47 |
||
48 |
%clean
|
|
49 |
rm -rf %{buildroot} |
|
50 |
||
51 |
%files
|
|
52 |
%defattr(-,root,root,-) |
|
53 |
%doc COPYING README |
|
54 |
/sbin/%{name} |
|
55 |
# hack for either /etc or /lib rules location
|
|
56 |
/*/udev/rules.d/*.rules
|
|
57 |
%{_mandir}/man1/%{name}.1*
|
|
58 |
||
59 |
||
60 |
%changelog
|
|
1.1.3
by Paolo Rotolo
Import upstream version 0.4.0 |
61 |
* Tue Oct 4 2011 Praveen K Paladugu <praveen_paladugu@dell.com> - 0.3.11-1
|
62 |
- Fix man page for PCI slot naming
|
|
63 |
- Fix clearing of buffer for NPAR/SRIOV naming
|
|
64 |
- Add --nopirq and --smbios options to manpage.
|
|
65 |
- Verify length of VPD on network device
|
|
66 |
- Close file handle on sysfs read
|
|
67 |
- Fix naming policy for NPAR devices.
|
|
68 |
Match each PCI device to its VPD 'physical' device to get correct index
|
|
69 |
- Exclude building on ia64 arch
|
|
70 |
- Add support functions for determining PCIE slot
|
|
71 |
- Scan full path to parent when getting PCIE slot
|
|
72 |
- Fix NPAR naming for add-in cards
|
|
73 |
- Don't display _vf suffix on NPAR devices with single function
|
|
74 |
- Fix PCIe/PIRQ slot mapping
|
|
75 |
||
1
by Colin Watson
Import upstream version 0.3.7 |
76 |
* Thu Feb 17 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.7-1
|
77 |
- drop dump_pirq, suggest use biosdecode instead
|
|
78 |
- don't use '#' in names, use 'p' instead, by popular demand
|
|
79 |
- properly look for SMBIOS, then $PIR, then recurse
|
|
80 |
- Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname
|
|
81 |
- Fix segfault when BIOS advertises zero sized PIRQ Routing Table
|
|
82 |
- Add 'bonding' and 'openvswitch' to the virtual devices list
|
|
83 |
- fail PIRQ lookups if device domain is not 0
|
|
84 |
- Don't suggest names if running in a virtual machine (Xen, KVM,
|
|
85 |
VMware tested, but should work on others)
|
|
86 |
- Typo fixes
|
|
87 |
||
88 |
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
|
|
89 |
- drop biosdevnameS, it's unused and fails to build on F15
|
|
90 |
||
91 |
* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
|
|
92 |
- install dump_pirq into /usr/sbin
|
|
93 |
- fix udev rule, skip running if NAME is already set
|
|
94 |
- move udev rule to /lib/udev/rules.d by default
|
|
95 |
||
96 |
* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
|
|
97 |
- drop unnecessary explicit version requirement on udev
|
|
98 |
- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
|
|
99 |
- bugfix: don't assign names to unknown devices
|
|
100 |
- bugfix: don't assign duplicate names
|
|
101 |
||
102 |
* Thu Dec 9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
|
|
103 |
- add back in use of PCI IRQ Routing Table, if info is not provided by
|
|
104 |
sysfs or SMBIOS
|
|
105 |
||
106 |
* Thu Dec 2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
|
|
107 |
- fix for multi-port cards with bridges
|
|
108 |
- removal of code for seriously obsolete systems
|
|
109 |
||
110 |
* Mon Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
|
|
111 |
- remove all policies except 'physical' and 'all_ethN'
|
|
112 |
- handle SR-IOV devices properly
|
|
113 |
||
114 |
* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
|
|
115 |
- add --policy=loms, make it default
|
|
116 |
- read index and labels from sysfs if available
|
|
117 |
||
118 |
* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
|
|
119 |
- fix mmap error checking
|
|
120 |
||
121 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-7
|
|
122 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
123 |
||
124 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-6
|
|
125 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
126 |
||
127 |
* Tue May 06 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-5
|
|
128 |
- use policy=all_names to find breakage
|
|
129 |
||
130 |
* Sun Feb 10 2008 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-4
|
|
131 |
- rebuild for gcc43
|
|
132 |
||
133 |
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-3
|
|
134 |
- fix manpage entry in files
|
|
135 |
|
|
136 |
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-2
|
|
137 |
- rebuild with Requires: udev > 115-3.20070920git
|
|
138 |
||
139 |
* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
|
|
140 |
- coordinate udev rules usage with udev maintainer
|
|
141 |
- fix crashes in pcmcia search, in_ethernet(), and incorrect command
|
|
142 |
line parsing.
|
|
143 |
||
144 |
* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
|
|
145 |
- eliminate libbiosdevname.*, pre and post scripts
|
|
146 |
||
147 |
* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
|
|
148 |
- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
|
|
149 |
- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
|
|
150 |
- build static
|
|
151 |
||
152 |
* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
|
|
153 |
- initial release
|