Summary: VPD/hardware inventory utilities for Linux Summary(pl): Narzędzia do inwentaryzacji VPD/sprzętu dla Linuksa Name: lsvpd Version: 0.12.3 Release: 2 License: GPL Group: Applications/System Source0: http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz # Source0-md5: 0fc276aa5c7ffba17c94c702490902b6 Patch0: %{name}-ide-proc.patch URL: http://linux-diag.sourceforge.net/Lsvpd.html BuildRequires: sed >= 4.0 PreReq: rc-scripts Requires(post,preun): /sbin/chkconfig Requires: /bin/bash Requires: /bin/sed Requires: /bin/sh #Requires: sg3_utils >= 1.01 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The lsvpd package contains both the lsvpd, lscfg and lsmcode commands. These commands, along with a boot-time scanning script called update-device-tree, constitute a simple hardware inventory system. The lsvpd command provides Vital Product Data (VPD) about hardware components to higher-level serviceability tools. The lscfg command provides a more human-readable format of the VPD, as well as some system-specific information. lsmcode lists microcode and firmware levels. %description -l pl Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworzą one, wraz z uruchamianym przy starcie systemu skryptem update-device-tree, prosty system inwentaryzacji sprzętu. Polecenie lsvpd dostarcza VPD (Vital Product Data) o podzespołach sprzętowych dla narzędzi wyższego poziomu. Polecenie lscfg dostarcza bardziej czytelną dla człowieka postać VPD oraz trochę informacji specyficznych dla systemu. lsmcode wypisuje poziomy mikrokodu i firmware'u. %prep %setup -q %patch0 -p1 %build sed -ie "s,#!/bin/sh,#!/bin/bash," lsvpd.in %{__make} \ CC="%{__cc}" \ CFLAGS="%{rpmcflags} -Wall -I../lib" %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/rc.d/init.d install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd # don't install this right now. It can crash systems. rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab install -d $RPM_BUILD_ROOT/etc/cron.daily install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find %post /sbin/chkconfig --add lsvpd %preun if [ "$1" = "0" ] ; then /sbin/chkconfig --del lsvpd fi %files %defattr(644,root,root,755) %doc NEWS README TODO docs/*.html %attr(755,root,root) /sbin/lsvpd %attr(755,root,root) /sbin/lscfg %attr(755,root,root) /sbin/lsmcode %attr(755,root,root) /sbin/update-lsvpd-db %dir /lib/lsvpd /lib/lsvpd/common.d /lib/lsvpd/common-post.d /lib/lsvpd/debug.bash /lib/lsvpd/lscfg.d /lib/lsvpd/lsmcode.d /lib/lsvpd/lsvpd-functions.bash /lib/lsvpd/lsvpd.d /lib/lsvpd/pci.ids /lib/lsvpd/query.d /lib/lsvpd/scan.d /lib/lsvpd/scsihost.conf /lib/lsvpd/scsivpd.conf %attr(755,root,root) /lib/lsvpd/ibm_vpd_render %attr(755,root,root) /lib/lsvpd/lsvpd_test %attr(755,root,root) /lib/lsvpd/pci_ethernet_map %attr(755,root,root) /lib/lsvpd/pci_lookup %attr(755,root,root) /lib/lsvpd/pci_scsi_map %attr(755,root,root) /lib/lsvpd/pci_vpd_cap_grab %attr(755,root,root) /lib/lsvpd/scsi_vpd_render %attr(755,root,root) /lib/lsvpd/tdump %attr(755,root,root) /lib/lsvpd/tidy_lsvpd_dbs %attr(755,root,root) /lib/lsvpd/tidy_subdirs %attr(755,root,root) /lib/lsvpd/update-vpd.hotplug %attr(755,root,root) /lib/lsvpd/vpd-name-crosslink.hotplug %attr(754,root,root) /etc/rc.d/init.d/lsvpd %attr(755,root,root) /etc/cron.daily/lsvpd %{_mandir}/man8/*