summaryrefslogtreecommitdiff
path: root/biosdevname.spec.suse
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-27 15:05:10 +1000
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-01-27 15:05:10 +1000
commite19a941f0c48fa4a14e746086d46c043ffb9d279 (patch)
treef059965ab3c7e8abc0e0dd32a498149aadddd956 /biosdevname.spec.suse
parentcf56fac03017304a9201532cf4ecfa55f4ee487c (diff)
downloadvyatta-biosdevname-upstream.tar.gz
vyatta-biosdevname-upstream.zip
Add missing files from upstream versionupstream
Missing bits from upstream copy
Diffstat (limited to 'biosdevname.spec.suse')
-rw-r--r--biosdevname.spec.suse103
1 files changed, 103 insertions, 0 deletions
diff --git a/biosdevname.spec.suse b/biosdevname.spec.suse
new file mode 100644
index 0000000..ea42dd3
--- /dev/null
+++ b/biosdevname.spec.suse
@@ -0,0 +1,103 @@
+Name: biosdevname
+Version: 0.3.6
+Release: 1%{?dist}
+Summary: Udev helper for naming devices per BIOS names
+
+Group: System Environment/Base
+License: GPLv2
+URL: http://linux.dell.com/files/%{name}
+# SMBIOS only exists on these arches. It's also likely that other
+# arches don't expect the PCI bus to be sorted breadth-first, or of
+# so, there haven't been any comments about that on LKML.
+ExclusiveArch: %{ix86} x86_64 ia64
+Source0: http://linux.dell.com/files/%{name}/permalink/%{name}-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires: pciutils-devel, zlib-devel
+# to figure out how to name the rules file
+BuildRequires: udev
+# for ownership of /etc/udev/rules.d
+Requires: udev
+
+
+%description
+biosdevname in its simplest form takes a kernel device name as an
+argument, and returns the BIOS-given name it "should" be. This is necessary
+on systems where the BIOS name for a given device (e.g. the label on
+the chassis is "Gb1") doesn't map directly and obviously to the kernel
+name (e.g. eth0).
+
+%prep
+%setup -q
+
+%build
+# this is a udev rule, so it needs to live in / rather than /usr
+%configure --disable-rpath --prefix=/ --sbindir=/sbin
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README
+/sbin/%{name}
+%{_sbindir}/dump_pirq
+# hack for either /etc or /lib rules location
+/*/udev/rules.d/*.rules
+%{_mandir}/man1/%{name}.1*
+
+
+%changelog
+* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.6-1
+- drop biosdevnameS, it's unused and fails to build on F15
+
+* Tue Jan 25 2011 Matt Domsch <Matt_Domsch@dell.com> - 0.3.5-1
+- install dump_pirq into /usr/sbin
+- fix udev rule, skip running if NAME is already set
+- move udev rule to /lib/udev/rules.d by default
+
+* Thu Dec 16 2010 Matt Domsch <mdomsch@fedoraproject.org> - 0.3.4-1
+- drop unnecessary explicit version requirement on udev
+- bugfix: start indices at 1 not 0, to match Dell and HP server port designations
+- bugfix: don't assign names to unknown devices
+- bugfix: don't assign duplicate names
+
+* Thu Dec 9 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.3-1
+- add back in use of PCI IRQ Routing Table, if info is not provided by
+ sysfs or SMBIOS
+
+* Thu Dec 2 2010 Matt Domsch <Matt_Domsch@dell.com> - 0.3.2-1
+- fix for multi-port cards with bridges
+- removal of code for seriously obsolete systems
+
+* Mon Nov 28 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.1-1
+- remove all policies except 'physical' and 'all_ethN'
+- handle SR-IOV devices properly
+
+* Wed Nov 10 2010 Matt Domsch <Matt_Domsch@dell.com> 0.3.0-1
+- add --policy=loms, make it default
+- read index and labels from sysfs if available
+
+* Mon Jul 27 2009 Jordan Hargrave <Jordan_Hargrave@dell.com> 0.2.5-1
+- fix mmap error checking
+
+* Fri Sep 21 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.4-1
+- coordinate udev rules usage with udev maintainer
+- fix crashes in pcmcia search, in_ethernet(), and incorrect command
+ line parsing.
+
+* Mon Aug 27 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.3-1
+- eliminate libbiosdevname.*, pre and post scripts
+
+* Fri Aug 24 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.2-1
+- ExclusiveArch those arches with SMBIOS and PCI IRQ Routing tables
+- eliminate libsysfs dependency, move app to / for use before /usr is mounted.
+- build static
+
+* Mon Aug 20 2007 Matt Domsch <Matt_Domsch@dell.com> 0.2.1-1
+- initial release