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: 0fc276aa5c7ffba17c94c702490902b6
10 URL: http://linux-diag.sourceforge.net/Lsvpd.html
12 Requires(post,preun): /sbin/chkconfig
16 #Requires: sg3_utils >= 1.01
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The lsvpd package contains both the lsvpd, lscfg and lsmcode commands.
21 These commands, along with a boot-time scanning script called
22 update-device-tree, constitute a simple hardware inventory system. The
23 lsvpd command provides Vital Product Data (VPD) about hardware
24 components to higher-level serviceability tools. The lscfg command
25 provides a more human-readable format of the VPD, as well as some
26 system-specific information. lsmcode lists microcode and firmware
30 Pakiet lsvpd zawiera polecenia lsvpd, lscfg i lsmcode. Tworz± one,
31 wraz z uruchamianym przy starcie systemu skryptem update-device-tree,
32 prosty system inwentaryzacji sprzêtu. Polecenie lsvpd dostarcza VPD
33 (Vital Product Data) o podzespo³ach sprzêtowych dla narzêdzi wy¿szego
34 poziomu. Polecenie lscfg dostarcza bardziej czyteln± dla cz³owieka
35 postaæ VPD oraz trochê informacji specyficznych dla systemu. lsmcode
36 wypisuje poziomy mikrokodu i firmware'u.
42 sed -ie "s,#!/bin/sh,#!/bin/bash," lsvpd.in
45 CFLAGS="%{rpmcflags} -Wall -I../lib"
48 rm -rf $RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
57 install debian/init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/lsvpd
58 # don't install this right now. It can crash systems.
59 rm -f $RPM_BUILD_ROOT/lib/lsvpd/pci_vpd_rom_grab
61 install -d $RPM_BUILD_ROOT/etc/cron.daily
62 install lsvpd.cron.daily $RPM_BUILD_ROOT/etc/cron.daily/lsvpd
64 ln -sf /usr/bin/find $RPM_BUILD_ROOT/lib/lsvpd/find
67 /sbin/chkconfig --add lsvpd
70 if [ "$1" = "0" ] ; then
71 /sbin/chkconfig --del lsvpd
75 %defattr(644,root,root,755)
76 %doc NEWS README TODO docs/*.html
77 %attr(755,root,root) /sbin/lsvpd
78 %attr(755,root,root) /sbin/lscfg
79 %attr(755,root,root) /sbin/lsmcode
80 %attr(755,root,root) /sbin/update-lsvpd-db
83 /lib/lsvpd/common-post.d
87 /lib/lsvpd/lsvpd-functions.bash
92 /lib/lsvpd/scsihost.conf
93 /lib/lsvpd/scsivpd.conf
94 %attr(755,root,root) /lib/lsvpd/ibm_vpd_render
95 %attr(755,root,root) /lib/lsvpd/lsvpd_test
96 %attr(755,root,root) /lib/lsvpd/pci_ethernet_map
97 %attr(755,root,root) /lib/lsvpd/pci_lookup
98 %attr(755,root,root) /lib/lsvpd/pci_scsi_map
99 %attr(755,root,root) /lib/lsvpd/pci_vpd_cap_grab
100 %attr(755,root,root) /lib/lsvpd/scsi_vpd_render
101 %attr(755,root,root) /lib/lsvpd/tdump
102 %attr(755,root,root) /lib/lsvpd/tidy_lsvpd_dbs
103 %attr(755,root,root) /lib/lsvpd/tidy_subdirs
104 %attr(755,root,root) /lib/lsvpd/update-vpd.hotplug
105 %attr(755,root,root) /lib/lsvpd/vpd-name-crosslink.hotplug
106 %attr(754,root,root) /etc/rc.d/init.d/lsvpd
107 %attr(755,root,root) /etc/cron.daily/lsvpd