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