Accepting request 54274 from systemsmanagement:wbem
Accepted submit request 54274 from user coolo OBS-URL: https://build.opensuse.org/request/show/54274 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ipmiutil?expand=0&rev=1
This commit is contained in:
commit
29b8932822
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
64
iekanalyzer_warning.patch
Normal file
64
iekanalyzer_warning.patch
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
#
|
||||||
|
# This fixes a compiler warning, and a lint error.
|
||||||
|
#
|
||||||
|
# Signed-off-by: Andy Cress <arcress@users.sourceforge.net>
|
||||||
|
#
|
||||||
|
# Index: ipmiutil-2.7.2/util/iekanalyzer.c
|
||||||
|
# ===================================================================
|
||||||
|
--- a/ipmiutil-2.7.2/util/iekanalyzer.c
|
||||||
|
+++ b/ipmiutil-2.7.2/util/iekanalyzer.c
|
||||||
|
@@ -2661,7 +2661,7 @@ ipmi_ek_display_board_info_area( FILE * input_file, char * board_type,
|
||||||
|
if (size_board > 0){
|
||||||
|
if ( strncmp( board_type, "Custom", 6 ) == 0 ){
|
||||||
|
#define NO_MORE_INFO_FIELD 0xc1
|
||||||
|
- while ( !feof(input_file) && (board_length > 0) ){
|
||||||
|
+ while ( !feof(input_file) && (*board_length > 0) ){
|
||||||
|
if (len != NO_MORE_INFO_FIELD){
|
||||||
|
printf("Additional Custom Mfg. length: 0x%02x\n", len);
|
||||||
|
if ( (size_board > 0) && (size_board < (*board_length)) ){
|
||||||
|
@@ -3057,9 +3057,10 @@ ipmi_ek_display_address_table_record( struct ipmi_ek_multi_header * record )
|
||||||
|
|
||||||
|
for ( i = 0; i < entries; i++ ){
|
||||||
|
printf("\tHWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n",
|
||||||
|
- record->data[offset++],
|
||||||
|
- record->data[offset++],
|
||||||
|
- record->data[offset++]);
|
||||||
|
+ record->data[offset+0],
|
||||||
|
+ record->data[offset+1],
|
||||||
|
+ record->data[offset+2]);
|
||||||
|
+ offset += 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -3180,21 +3181,21 @@ ipmi_ek_display_shelf_ip_connection_record(
|
||||||
|
int offset = START_DATA_OFFSET;
|
||||||
|
if (offset > record->header.len){
|
||||||
|
printf(" Shelf Manager IP Address: %d.%d.%d.%d\n",
|
||||||
|
- record->data[offset++], record->data[offset++],
|
||||||
|
- record->data[offset++], record->data[offset++]
|
||||||
|
- );
|
||||||
|
+ record->data[offset+0], record->data[offset+1],
|
||||||
|
+ record->data[offset+2], record->data[offset+3]);
|
||||||
|
+ offset += 4;
|
||||||
|
}
|
||||||
|
if (offset > record->header.len){
|
||||||
|
printf(" Default Gateway Address: %d.%d.%d.%d\n",
|
||||||
|
- record->data[offset++], record->data[offset++],
|
||||||
|
- record->data[offset++], record->data[offset++]
|
||||||
|
- );
|
||||||
|
+ record->data[offset+0], record->data[offset+1],
|
||||||
|
+ record->data[offset+2], record->data[offset+3]);
|
||||||
|
+ offset += 4;
|
||||||
|
}
|
||||||
|
if (offset > record->header.len){
|
||||||
|
- printf(" Subnet Mask: %d.%d.%d.%d\n", record->data[offset++],
|
||||||
|
- record->data[offset++], record->data[offset++],
|
||||||
|
- record->data[offset++]
|
||||||
|
- );
|
||||||
|
+ printf(" Subnet Mask: %d.%d.%d.%d\n",
|
||||||
|
+ record->data[offset+0], record->data[offset+1],
|
||||||
|
+ record->data[offset+2], record->data[offset+3]);
|
||||||
|
+ offset += 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
3
ipmiutil-2.7.2.tar.gz
Normal file
3
ipmiutil-2.7.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7d2d346492298e05feec23ed38e5b85bb3796deeeab771153c77236386031555
|
||||||
|
size 1488164
|
20
ipmiutil.changes
Normal file
20
ipmiutil.changes
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 18 14:45:17 UTC 2010 - arcress@users.sourceforge.net
|
||||||
|
|
||||||
|
- add gcc-c++ to BuildRequires due to some broken RH build systems
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 4 18:46:25 UTC 2010 - arcress@users.sourceforge.net
|
||||||
|
|
||||||
|
- added iekanalyzer_warning.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 4 12:49:55 UTC 2010 - arcress@users.sourceforge.net
|
||||||
|
|
||||||
|
- chmod 644 doc/UserGuide
|
||||||
|
|
||||||
|
------------------------------------------------------------
|
||||||
|
Wed Nov 3 17:22:37 EDT 2010 - arcress@users.sourceforge.net
|
||||||
|
|
||||||
|
- Initial import of ipmiutil-2.7.2
|
||||||
|
|
149
ipmiutil.spec
Normal file
149
ipmiutil.spec
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
Name: ipmiutil
|
||||||
|
Version: 2.7.2
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: A package that provides easy-to-use IPMI server management utilities
|
||||||
|
License: BSD
|
||||||
|
Group: System/Management
|
||||||
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
URL: http://ipmiutil.sourceforge.net
|
||||||
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
BuildRequires: openssl-devel gcc gcc-c++
|
||||||
|
Patch: iekanalyzer_warning.patch
|
||||||
|
|
||||||
|
%description
|
||||||
|
The ipmiutil package provides easy-to-use utilities to view the SEL,
|
||||||
|
perform an IPMI chassis reset, set up the IPMI LAN and Platform Event Filter
|
||||||
|
entries to allow SNMP alerts, and other IPMI tasks.
|
||||||
|
These can be invoked with the metacommand ipmiutil, or via subcommand
|
||||||
|
shortcuts as well. Man pages are provided.
|
||||||
|
An IPMI driver can be provided by either the OpenIPMI driver (/dev/ipmi0)
|
||||||
|
or the Intel IPMI driver (/dev/imb), etc. If used locally and no driver is
|
||||||
|
detected, ipmiutil will use user-space direct I/Os instead.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch -p2
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%dir %{_var}/lib/%{name}
|
||||||
|
%{_sbindir}/ipmiutil
|
||||||
|
%{_sbindir}/idiscover
|
||||||
|
%{_sbindir}/ievents
|
||||||
|
%{_sbindir}/ipmi_port
|
||||||
|
%{_sbindir}/ialarms
|
||||||
|
%{_sbindir}/iconfig
|
||||||
|
%{_sbindir}/icmd
|
||||||
|
%{_sbindir}/ifru
|
||||||
|
%{_sbindir}/igetevent
|
||||||
|
%{_sbindir}/ihealth
|
||||||
|
%{_sbindir}/ilan
|
||||||
|
%{_sbindir}/ireset
|
||||||
|
%{_sbindir}/isel
|
||||||
|
%{_sbindir}/isensor
|
||||||
|
%{_sbindir}/iserial
|
||||||
|
%{_sbindir}/isol
|
||||||
|
%{_sbindir}/iwdt
|
||||||
|
%{_sbindir}/ipicmg
|
||||||
|
%{_sbindir}/ifirewall
|
||||||
|
%{_sbindir}/ifwum
|
||||||
|
%{_sbindir}/ihpm
|
||||||
|
%{_initrddir}/ipmiutil_wdt
|
||||||
|
%{_initrddir}/ipmiutil_asy
|
||||||
|
%{_initrddir}/ipmiutil_evt
|
||||||
|
%{_initrddir}/ipmi_port
|
||||||
|
%{_sysconfdir}/cron.daily/checksel
|
||||||
|
%{_datadir}/%{name}/ipmi_if.sh
|
||||||
|
%{_datadir}/%{name}/evt.sh
|
||||||
|
%{_datadir}/%{name}/bmclanpet.mib
|
||||||
|
%{_mandir}/man8/isel.8*
|
||||||
|
%{_mandir}/man8/isensor.8*
|
||||||
|
%{_mandir}/man8/ireset.8*
|
||||||
|
%{_mandir}/man8/igetevent.8*
|
||||||
|
%{_mandir}/man8/ihealth.8*
|
||||||
|
%{_mandir}/man8/iconfig.8*
|
||||||
|
%{_mandir}/man8/ialarms.8*
|
||||||
|
%{_mandir}/man8/iwdt.8*
|
||||||
|
%{_mandir}/man8/ilan.8*
|
||||||
|
%{_mandir}/man8/iserial.8*
|
||||||
|
%{_mandir}/man8/ifru.8*
|
||||||
|
%{_mandir}/man8/icmd.8*
|
||||||
|
%{_mandir}/man8/isol.8*
|
||||||
|
%{_mandir}/man8/ipmiutil.8*
|
||||||
|
%{_mandir}/man8/idiscover.8*
|
||||||
|
%{_mandir}/man8/ievents.8*
|
||||||
|
%{_mandir}/man8/ipmi_port.8*
|
||||||
|
%{_mandir}/man8/ipicmg.8*
|
||||||
|
%{_mandir}/man8/ifirewall.8*
|
||||||
|
%{_mandir}/man8/ifwum.8*
|
||||||
|
%{_mandir}/man8/ihpm.8*
|
||||||
|
%{_mandir}/man8/isunoem.8*
|
||||||
|
%{_mandir}/man8/iekanalyzer.8*
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
||||||
|
%doc doc/UserGuide
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%post
|
||||||
|
# POST_INSTALL, $1 = 1 if rpm -i, $1 = 2 if rpm -U
|
||||||
|
|
||||||
|
if [ "$1" = "1" ]
|
||||||
|
then
|
||||||
|
# doing rpm -i, first time
|
||||||
|
vardir=%{_var}/lib/%{name}
|
||||||
|
|
||||||
|
# Run some ipmiutil command to see if any IPMI interface works.
|
||||||
|
%{_sbindir}/ipmiutil wdt >/dev/null 2>&1
|
||||||
|
IPMIret=$?
|
||||||
|
|
||||||
|
# If IPMIret==0, the IPMI cmd was successful, and IPMI is enabled locally.
|
||||||
|
if [ $IPMIret -eq 0 ]; then
|
||||||
|
# IPMI_IS_ENABLED, so enable services, but only if Red Hat
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
if [ -x /sbin/chkconfig ]; then
|
||||||
|
/sbin/chkconfig --add ipmi_port
|
||||||
|
/sbin/chkconfig --add ipmiutil_wdt
|
||||||
|
/sbin/chkconfig --add ipmiutil_asy
|
||||||
|
/sbin/chkconfig --add ipmiutil_evt
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Capture a snapshot of IPMI sensor data once now for later reuse.
|
||||||
|
sensorout=$vardir/sensor_out.txt
|
||||||
|
if [ ! -f $sensorout ]; then
|
||||||
|
%{_sbindir}/ipmiutil sensor >$sensorout
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
# before uninstall, $1 = 1 if rpm -U, $1 = 0 if rpm -e
|
||||||
|
if [ "$1" = "0" ]
|
||||||
|
then
|
||||||
|
if [ -x /sbin/service ]; then
|
||||||
|
/sbin/service ipmi_port stop >/dev/null 2>&1
|
||||||
|
/sbin/service ipmiutil_wdt stop >/dev/null 2>&1
|
||||||
|
/sbin/service ipmiutil_asy stop >/dev/null 2>&1
|
||||||
|
/sbin/service ipmiutil_evt stop >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
if [ -x /sbin/chkconfig ]; then
|
||||||
|
/sbin/chkconfig --del ipmi_port >/dev/null 2>&1
|
||||||
|
/sbin/chkconfig --del ipmiutil_wdt >/dev/null 2>&1
|
||||||
|
/sbin/chkconfig --del ipmiutil_asy >/dev/null 2>&1
|
||||||
|
/sbin/chkconfig --del ipmiutil_evt >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user