1 Summary: VPD/hardware inventory utilities for Linux
2 Summary(pl): Narzêdzia do inwentaryzacji VPD/sprzêtu dla Linuksa
7 Group: Applications/System
8 Source0: http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
9 # Source0-md5: ba1bb42d627c815d89bf57e43a5b3de1
11 Requires(post,preun): /sbin/chkconfig
15 #Requires: sg3_utils >= 1.01
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
20 These commands, along with a boot-time scanning script called
21 update-device-tree, constitute a simple hardware inventory system. The
22 lsvpd command provides Vital Product Data (VPD) about hardware
23 components to higher-level serviceability tools. The lscfg command
24 provides a more human-readable format of the VPD, as well as some
25 system-specific information. lsmcode lists microcode and firmware
29 Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
30 wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
31 prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
32 (Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
33 poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
34 postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
35 wypisuje poziomy mikrokodu i firmware'u.
41 sed -ie "s,#!/bin/sh,#!/bin/bash," lsvpd.in
44 CFLAGS="%{rpmcflags} -Wall -I../lib"
47 rm -rf $RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
56 install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
57 # don't install this right now. It can crash systems.
58 rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
60 install -d $RPM_BUILD_ROOT/etc/cron.daily
61 install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
63 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
66 /sbin/chkconfig --add lsvpd
69 if [ "$1" = "0" ] ; then
70 /sbin/chkconfig --del lsvpd
74 %defattr(644,root,root,755)
75 %doc NEWS README TODO docs/*.html
76 %attr(755,root,root) /sbin/lsvpd
77 %attr(755,root,root) /sbin/lscfg
78 %attr(755,root,root) /sbin/lsmcode
79 %attr(755,root,root) /sbin/update-device-tree
85 /lib/lsvpd/lsvpd-functions.bash
90 /lib/lsvpd/scsihost.conf
91 /lib/lsvpd/scsivpd.conf
92 %attr(755,root,root) /lib/lsvpd/pci_lookup
93 %attr(755,root,root) /lib/lsvpd/tdump
94 %attr(755,root,root) /lib/lsvpd/tidy_device_trees
95 %attr(755,root,root) /lib/lsvpd/tidy_subdirs
96 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
97 %attr(755,root,root) /lib/lsvpd/lsvpd_test
98 %attr(755,root,root) /lib/lsvpd/pci_vpd_cap_grab
99 %attr(755,root,root) /lib/lsvpd/scsi_vpd_custom
100 %attr(755,root,root) /lib/lsvpd/scsi_vpd_std
101 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
102 %attr(755,root,root) /etc/cron.daily/lsvpd