Sync from SUSE:SLFO:Main ipmitool revision d8d264d027efdf7a0f4c10143386dc61

This commit is contained in:
Adrian Schröter 2024-05-03 13:47:01 +02:00
commit f992793e23
16 changed files with 244151 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

View File

@ -0,0 +1,44 @@
From 9d1b55b396007558288a9807ef269141c6aeac25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 23 Sep 2020 09:35:23 +0200
Subject: [PATCH 1/6] Enhance fwum output
---
lib/ipmi_fwum.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/ipmi_fwum.c b/lib/ipmi_fwum.c
index b01c5458d974..ba97da3ae266 100644
--- a/lib/ipmi_fwum.c
+++ b/lib/ipmi_fwum.c
@@ -1098,12 +1098,14 @@ ipmi_kfwum_checkfwcompat(tKFWUM_BoardInfo boardInfo,
int compatible = 0;
if (boardInfo.iana != firmInfo.iana) {
lprintf(LOG_ERR,
- "Board IANA does not match firmware IANA.");
+ "Board IANA [%u] does not match firmware IANA [%u]\n",
+ boardInfo.iana, firmInfo.iana);
compatible = (-1);
}
if (boardInfo.boardId != firmInfo.boardId) {
lprintf(LOG_ERR,
- "Board IANA does not match firmware IANA.");
+ "Board ID [%u] does not match firmware board ID [%u]\n",
+ boardInfo.boardId, firmInfo.boardId);
compatible = (-1);
}
if (compatible != 0) {
@@ -1121,6 +1123,10 @@ printf_kfwum_info(tKFWUM_BoardInfo boardInfo, tKFWUM_InFirmwareInfo firmInfo)
printf(
"Target IANA number : %u\n", boardInfo.iana);
printf(
+"FW File Board Id : %u\n",firmInfo.boardId);
+ printf(
+"FW File IANA number : %u\n",firmInfo.iana);
+ printf(
"File Size : %lu bytes\n", firmInfo.fileSize);
printf(
"Firmware Version : %d.%d%d SDR %d\n", firmInfo.versMajor,
--
2.26.0

View File

@ -0,0 +1,35 @@
From b7f319ded60e89470012c6f9f957a0bcf9ab7d98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 23 Sep 2020 09:35:54 +0200
Subject: [PATCH 2/6] Fix file permissions
---
src/ipmievd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/ipmievd.c b/src/ipmievd.c
index eeaa0c9c3b98..df01cc8bdf0b 100644
--- a/src/ipmievd.c
+++ b/src/ipmievd.c
@@ -700,6 +700,7 @@ ipmievd_main(struct ipmi_event_intf * eintf, int argc, char ** argv)
int i, rc;
int daemon = 1;
struct sigaction act;
+ mode_t oldumask;
memset(pidfile, 0, 64);
sprintf(pidfile, "%s%d", DEFAULT_PIDFILE, eintf->intf->devnum);
@@ -762,8 +763,9 @@ ipmievd_main(struct ipmi_event_intf * eintf, int argc, char ** argv)
ipmi_start_daemon(eintf->intf);
- umask(022);
+ oldumask = umask(022);
fp = ipmi_open_file_write(pidfile);
+ umask(oldumask);
if (!fp) {
/* Failed to get fp on PID file -> exit. */
log_halt();
--
2.26.0

View File

@ -0,0 +1,48 @@
From e48fa62fe6e9b5fa1f537c2d149078fb0ce218c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 23 Sep 2020 09:36:46 +0200
Subject: [PATCH 3/6] Cleanup and compiler issues only, no functional change
Changes partly very old and not possible to find the original author.
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
lib/ipmi_ekanalyzer.c | 2 +-
lib/ipmi_picmg.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
Index: ipmitool-1.8.18+git20210622.11c7605/lib/ipmi_ekanalyzer.c
===================================================================
--- ipmitool-1.8.18+git20210622.11c7605.orig/lib/ipmi_ekanalyzer.c
+++ ipmitool-1.8.18+git20210622.11c7605/lib/ipmi_ekanalyzer.c
@@ -4055,7 +4055,7 @@ ipmi_ek_display_clock_config_record(stru
(feature & 1) ? "Source" : "Receiver");
printf("\tFamily: 0x%02x - AccLVL: 0x%02x\n",
family, accuracy);
- printf("\tFRQ: %-9ld - min: %-9ld - max: %-9ld\n",
+ printf("\tFRQ: %-9lu - min: %-9lu - max: %-9lu\n",
freq, min_freq, max_freq);
}
printf("\n");
Index: ipmitool-1.8.18+git20210622.11c7605/lib/ipmi_picmg.c
===================================================================
--- ipmitool-1.8.18+git20210622.11c7605.orig/lib/ipmi_picmg.c
+++ ipmitool-1.8.18+git20210622.11c7605/lib/ipmi_picmg.c
@@ -949,7 +949,7 @@ ipmi_picmg_portstate_get(struct ipmi_int
}
else if (d->type >= 0x06 && d->type <= 0xef)
{
- printf("Reserved\n");
+ printf("Reserved %d\n",d->type);
}
else if (d->type >= 0xf0 && d->type <= 0xfe)
{
@@ -1805,7 +1805,7 @@ ipmi_picmg_clk_get(struct ipmi_intf * in
oemval2str( rsp->data[3], rsp->data[4],
picmg_clk_accuracy_vals));
- printf(" - Freq: %ld\n", freq);
+ printf(" - Freq: %lu\n", freq);
}
}
}

View File

@ -0,0 +1,59 @@
From 8ede995f261edd539bd1f1d454dd74941a6f4aa8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 23 Sep 2020 09:37:22 +0200
Subject: [PATCH 4/6] Adjust SUSE paths
---
contrib/bmc-snmp-proxy | 4 ++++
contrib/bmc-snmp-proxy.service | 4 ++--
contrib/exchange-bmc-os-info.service.redhat | 4 ++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/contrib/bmc-snmp-proxy b/contrib/bmc-snmp-proxy
index fcb2ab8256d3..7f0a5a86472e 100644
--- a/contrib/bmc-snmp-proxy
+++ b/contrib/bmc-snmp-proxy
@@ -14,6 +14,10 @@
#
# Assumptions: This script will work only when /etc/snmp/ is writable.
#
+# Provides: bmc-snmp-proxy
+# Required-Start: ipmi snmp
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
#############################################################################
# GLOBALS
#############################################################################
diff --git a/contrib/bmc-snmp-proxy.service b/contrib/bmc-snmp-proxy.service
index 247137a4fffd..80b7b100c4e2 100644
--- a/contrib/bmc-snmp-proxy.service
+++ b/contrib/bmc-snmp-proxy.service
@@ -11,8 +11,8 @@ ConditionPathExists=/var/run/bmc-info
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/libexec/bmc-snmp-proxy start
-ExecStop=/usr/libexec/bmc-snmp-proxy stop
+ExecStart=/usr/sbin/bmc-snmp-proxy start
+ExecStop=/usr/sbin/bmc-snmp-proxy stop
[Install]
WantedBy=multi-user.target
diff --git a/contrib/exchange-bmc-os-info.service.redhat b/contrib/exchange-bmc-os-info.service.redhat
index eb28ffee1f33..34e90fdb19bb 100644
--- a/contrib/exchange-bmc-os-info.service.redhat
+++ b/contrib/exchange-bmc-os-info.service.redhat
@@ -7,8 +7,8 @@ AssertPathExistsGlob=/dev/ipmi*
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/libexec/exchange-bmc-os-info start
-ExecStop=/usr/libexec/exchange-bmc-os-info stop
+ExecStart=/usr/sbin/exchange-bmc-os-info start
+ExecStop=/usr/sbin/exchange-bmc-os-info stop
[Install]
WantedBy=multi-user.target
--
2.26.0

View File

@ -0,0 +1,28 @@
From d682f056d836b7978d67c5f9170a3ebfb103f54d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 23 Sep 2020 09:38:11 +0200
Subject: [PATCH 5/6] HPM x compatibility message is DEBUG only
bsc#948540
Signed-off-by: Thomas Renninger <trenn@suse.com>
---
lib/hpm2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/hpm2.c b/lib/hpm2.c
index 52e5366c7725..c7ae2343c004 100644
--- a/lib/hpm2.c
+++ b/lib/hpm2.c
@@ -99,7 +99,7 @@ int hpm2_get_capabilities(struct ipmi_intf * intf,
lprintf(LOG_DEBUG, "IPM Controller is not HPM.2 compatible");
return rsp->ccode;
} else if (rsp->ccode) {
- lprintf(LOG_NOTICE, "Get HPM.x Capabilities request failed,"
+ lprintf(LOG_DEBUG, "Get HPM.x Capabilities request failed,"
" compcode = %x", rsp->ccode);
return rsp->ccode;
}
--
2.26.0

View File

@ -0,0 +1,56 @@
From: Thomas Renninger <trenn@suse.com>
Subject: Fix time format for sel list -v
References: bsc#1213390
Patch-Mainline:
Git-commit: d34a56908da3d85c4ddce1be1aab90941177b13b
Git-repo: git@github.com:watologo1/ipmitool.git.git
The time for sel entries gets wrongly formatted:
SEL Record ID : 3135
Record Type : 02
Timestamp : 18.07.2023 18.07.2023
Generator ID : 0044
This patch fixes this:
SEL Record ID : 3135
Record Type : 02
Timestamp : 18.07.2023 11:26:24 CEST
Generator ID : 0044
The first hunk for:
`sel list -v`
The snd hunk for:
`sel get ID`
Signed-off-by: <trenn@suse.com>
diff --git a/lib/ipmi_sel.c b/lib/ipmi_sel.c
index 31c0eea..7d6d01f 100644
--- a/lib/ipmi_sel.c
+++ b/lib/ipmi_sel.c
@@ -2043,11 +2043,9 @@ ipmi_sel_print_std_entry_verbose(struct ipmi_intf * intf, struct sel_event_recor
{
printf(" Timestamp : ");
if (evt->record_type < 0xc0)
- printf("%s %s", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp),
- ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
+ printf("%s", ipmi_timestamp_numeric(evt->sel_type.standard_type.timestamp));
else
- printf("%s %s", ipmi_timestamp_date(evt->sel_type.oem_ts_type.timestamp),
- ipmi_timestamp_time(evt->sel_type.oem_ts_type.timestamp));
+ printf("%s", ipmi_timestamp_numeric(evt->sel_type.oem_ts_type.timestamp));
printf("\n");
}
@@ -2133,8 +2131,7 @@ ipmi_sel_print_extended_entry_verbose(struct ipmi_intf * intf, struct sel_event_
if (evt->record_type < 0xe0)
{
printf(" Timestamp : ");
- printf("%s %s\n", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp),
- ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
+ printf("%s\n", ipmi_timestamp_numeric(evt->sel_type.standard_type.timestamp));
}

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="obs_scm" mode="localonly">
<param name="url">https://github.com/ipmitool/ipmitool.git</param>
<param name="scm">git</param>
<param name="version">HEAD</param>
<param name="versionrewrite-pattern">IPMITOOL_([0-9]*)_([0-9]*)_([0-9]*)</param>
<param name="versionrewrite-replacement">\1.\2.\3</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.g%h</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="localonly"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="download_url" mode="localonly">
<param name="protocol">http</param>
<param name="host">www.iana.org</param>
<param name="path">assignments/enterprise-numbers/enterprise-numbers</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/ipmitool/ipmitool.git</param>
<param name="changesrevision">be11d948f89b10be094e28d8a0a5e8fb532c7b60</param></service></servicedata>

243062
enterprise-numbers Normal file

File diff suppressed because it is too large Load Diff

13
ipmievd.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Ipmievd Daemon
After=syslog.target
After=ipmi.service
[Service]
EnvironmentFile=-/etc/ipmievd
ExecStart=/usr/sbin/ipmievd $IPMIEVD_OPTIONS
Type=forking
PIDFile=/run/ipmievd.pid
[Install]
WantedBy=multi-user.target

1
ipmievd.sysconf Normal file
View File

@ -0,0 +1 @@
IPMIEVD_OPTIONS="sel daemon pidfile=/run/ipmievd.pid"

BIN
ipmitool-1.8.19.13.gbe11d94.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

593
ipmitool.changes Normal file
View File

@ -0,0 +1,593 @@
-------------------------------------------------------------------
Mon Jul 24 10:38:53 UTC 2023 - trenn@suse.de
- Fix: ipmitool duplicates the timestamp (bsc#1213390)
A Fix-time-format-for-sel-list-v.patch
- Remove: Make-IANA-PEN-download-configurable (is mainline)
D 0006-Make-IANA-PEN-download-configurable-fix-uninitalized.patch
- Update to version 1.8.19.13.gbe11d94:
* configure.ac: allow disabling registry downloads
* lan: channel: Fix set alert on/off
* make: use correct docdir variable provided by autotools
* Do not require the IANA PEN registry file
* configure.ac: fix readline static build
* Update github actions for modern OSes
* Update macos target name in github actions
* delloem: Fix the unalign bug in arm64
* lanplus: Realloc the msg if the payload_length gets updated
* fru print: Add area checksum verification
* fru: Add decoder for multirec system mgmt records
* Fix enterprise-numbers URL
* Update issue templates
-------------------------------------------------------------------
Wed Sep 07 03:06:48 UTC 2022 - trenn@suse.de
- Update to version 1.8.19.0.g19d7878:
* Release Version 1.8.19
* Cast type before the left shift
* sel: Fix the deasserted thresholds inequality
-------------------------------------------------------------------
Tue May 10 08:12:53 UTC 2022 - moritz.kodytek@suse.com
- Update to version 1.8.18.249.g4d25a93:
* man: Update the text for -C option
* chassis restart_cause: Add new causes
* sel: Remove redundant "Reserve SEL"
* sdr: Fix modifier unit
* Refactor bridging level detection to dedicated function
* Fix double bridge detection in get_max_(req|rsp)_data_size()
-------------------------------------------------------------------
Wed Aug 11 10:10:52 UTC 2021 - trenn@suse.de
- Update to version 1.8.18.238.gb7adc1d:
* ipmi_mc: Fix the IPM_DEV_FWREV1_MAJOR_MASK
- Use %{?systemd_ordering} instead of %{?systemd_requires}
-------------------------------------------------------------------
Thu Jul 08 15:10:12 UTC 2021 - trenn@suse.de
- Update to version 1.8.18+git20210622.11c7605:
* Fix codefactor-io / CodeFactor warnings
* Use /run instead of /var/run
* oem: Update product IDs for YADRO
* lan: Add processing of get/set specific CCs
* lan: Refactor pointer style
* doc: update lanplus doc to reflect default cipher suite change
* ekanalyzer: Fix internal use area off-by-one bug
* ekanalyzer frushow: Fix internal area size calc
* sel: Fix "power supply inactive" flag offset
* free: Fix implicit function declarations
* Convert line endings to LF
- Update source file:
M enterprise-numbers
- Adopt to latest sources:
M 0003-Cleanup-and-compiler-issues-only-no-functional-chang.patch
- Remove mainline patches:
D 0007-bsc#1175328-check-for-correct-fd.patch
D 0008-bsc#1181063-dont-parametrize-pidfile-name.patch
D Use-run-instead-of-var-run.patch
D lanplus-don-t-retry-pre-session-Get-cipher-suites.patch
- Config file in /etc must not be executable
/etc/bmc-snmp-proxy
- Enhance _service file to always get latest sources and get the
version correctly parsed
-------------------------------------------------------------------
Tue May 25 17:59:48 UTC 2021 - Thomas Renninger <trenn@suse.de>
- Correct /etc/ipmievd config file to point to the new pidfile in /run
not /var/run
-------------------------------------------------------------------
Wed Apr 28 08:19:29 UTC 2021 - Thomas Renninger <trenn@suse.de>
- Use /run instead of /var/run (bsc#1185162)
A Use-run-instead-of-var-run.patch
Be aware that the patch has been submitted mainstream, therefore
the git hash tag, but may not have been accepted.
-------------------------------------------------------------------
Wed Feb 3 11:08:48 UTC 2021 - Thomas Renninger <trenn@suse.de>
- Fixes (bsc#1179133) lanplus: hanging on getting cipher suites for 10 seconds
A lanplus-don-t-retry-pre-session-Get-cipher-suites.patch
-------------------------------------------------------------------
Thu Jan 28 13:53:14 UTC 2021 - Josef Möllers <josef.moellers@suse.com>
- Do not append the device number to the PIDFILE pathname
as this will confuse systemd.
[bsc#1181063, 0008-bsc#1181063-dont-parametrize-pidfile-name.patch]
-------------------------------------------------------------------
Thu Jan 28 09:10:47 UTC 2021 - Josef Möllers <josef.moellers@suse.com>
- When really starting the daemon, in lib/helper.c::ipmi_start_daemon()
stdin/stdout/stderr are redirected to /dev/null and this is checked
but the check for stderr tests for STDOUT_FILENO. This is, most
likely, a copy-paste error.
[bsc#1175328, 0007-bsc#1175328-check-for-correct-fd.patch]
-------------------------------------------------------------------
Wed Sep 23 07:49:45 UTC 2020 - Klaus Kämpf <kkaempf@suse.com>
- clean up patches
rename fwum_enhance_output.patch
to 0001-Enhance-fwum-output.patch
rename fix_file_permissions.patch
to 0002-Fix-file-permissions.patch
rename several_more_compile_fixes.patch
to 0003-Cleanup-and-compiler-issues-only-no-functional-chang.patch
rename ipmitool_adjust_suse_paths.patch
to 0004-Adjust-SUSE-paths.patch
rename hpm_x_compatibility_msg_is_debug_only.patch
to 0005-HPM-x-compatibility-message-is-DEBUG-only.patch
rename autotools_define_DOWNLOAD.diff
to 0006-Make-IANA-PEN-download-configurable-fix-uninitalized.patch
-------------------------------------------------------------------
Wed Sep 23 07:30:26 UTC 2020 - kkaempf@suse.com
- Update to version 1.8.18+git20200916.1245aaa387dc:
* fru: Fix crashes on 6-bit ASCII strings
* Refix 6e037d6bfbbb93b349c8ca331ebde03a837f76bf
* oem: Add product ID for YADRO VEGMAN
* configure.ac: add '--location' for curl to follow location
* configure.ac: replace '-#' by '--progress-bar' with curl
* log: refix 16f937a1: Add missing header changes
* Add version info to debug output
* doc, ci: Fix an error in package name for Windows
* doc: Fix a small typo in INSTALL
* RPM support: updated spec file changelog
-------------------------------------------------------------------
Tue Feb 11 13:39:26 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Don't hardcode /usr but use rpm variables
-------------------------------------------------------------------
Mon Feb 10 08:27:23 UTC 2020 - trenn@suse.de
- bsc#1163026
- CVE-2020-5208
- Use license macro for COPYING, instead of doc
- Add ChangeLog mainline log to docs for shorter
obs changelogs. This will be the last more detailed
changelog, due to more important buffer overflow patches.
Otherwise this changelog will not include (mainline) changes
anymore.
- Update to version 1.8.18+git20200204.7ccea28:
* fru, sdr: Fix id_string buffer overflows
* lanp: Fix buffer overflows in get_lan_param_select
* channel: Fix buffer overflow
* session: Fix buffer overflow in ipmi_get_session_info
* fru: Fix buffer overflow in ipmi_spd_print_fru
* fru: Fix buffer overflow vulnerabilities
* chassis: bootmbox: Refix 62a04390
* configure: Drop requirement for curses et. al libs
- Add a configure option to disable IANA PEN database internet download
A autotools_define_DOWNLOAD.diff
D create_pen_list_from_local_file.patch
- New pen database:
M enterprise-numbers
- Patches adjusted to latest mainline code:
M fix_file_permissions.patch
M ipmitool_adjust_suse_paths.patch
M several_more_compile_fixes.patch
-------------------------------------------------------------------
Mon Sep 2 16:22:47 UTC 2019 - trenn@suse.de
- Enable USB interface by explicit passing --enable-intf-usb (jira#SLE-7780)
- Enable free interface by adding freeipmi-devel package to
build requires
-------------------------------------------------------------------
Wed Sep 26 07:49:44 UTC 2018 - trenn@suse.de
- Update to latest git HEAD revision of 1.8.18 version
commit 6f336d04f14b420822902dca7ef595cd49847d21
Date: Mon Sep 24 15:41:00 2018 +0200
- Change git repo and URL in spec from sourceforge to github
- Add download of iana pen list via _service
from www.iana.org which is used to
create a C include file at build time (lib/ipmi_pen_list.inc.c)
Downloaded file added:
A enterprise-numbers
- Add possiblity to create the include file from an already
downloaded, local file
A create_pen_list_from_local_file.patch
-------------------------------------------------------------------
Fri Jul 27 14:50:26 UTC 2018 - jengelh@inai.de
- Use noun phrase in summary.
-------------------------------------------------------------------
Thu Jun 28 14:58:47 UTC 2018 - josef.moellers@suse.com
- Make bmc-snmp-proxy into a (sub)package of its own.
[fate#322044, ipmitool.spec]
-------------------------------------------------------------------
Fri Oct 6 13:26:36 UTC 2017 - josef.moellers@suse.com
- Added missing references.
[bsc#1041374,bsc#976123,bsc#988443,bsc#989985,bsc#968105,
bsc#948540,fate#321578,fate#321579,fate#320439]
-------------------------------------------------------------------
Thu Jul 27 18:58:24 UTC 2017 - tchvatal@suse.com
- Switch to OBS service to generate the tarball and changelog
automatically from git "osc service dr"
- Update to version git checkout 20170406.ecb4cfb:
* Prevent autoreconf from complaining about missing NEWS
* Add git hash and dirty mark to ipmitool version
- Remove patch ipmitool_1_8_18_ecb4cfbff855_to_HEAD.patch as the
patch is directly in the tarball
- Rename patch:
ipmitool_adjust_suse.paths to ipmitool_adjust_suse_paths.patch
- Drop the --pic switch as it was only for static library
- Reduce the suse_version for 1210 check to switch systemd on as
the package is not building on sle11 anyway
* properly depend on systemd-rpm-macros and not full systemd
- Enable switch for file-security to be more strict on open files
-------------------------------------------------------------------
Wed Jul 5 14:07:41 UTC 2017 - trenn@suse.de
- Update to latest git HEAD revision of 1.8.18 version
commit ecb4cfbff855bb24099f2a80a6dd558518702c7d
All these patches are now included in one big revision (1.8.18) to
HEAD patch:
D 0001-fix-typo.patch
D 0002-added-microTCA-major-version.patch
D 0003-replaced-removed-defines-which-are-already-present-i.patch
D 0004-fix-typo.patch
D 0006-ID-461-OpenSSL-1.1-compatibility-error-storage-size-.patch
D 0007-ID-461-Make-compiler-happier-about-changes-related-t.patch
D 0008-ID-474-Compile-fix-on-nonlinux-systems.patch
D 0009-Add-bootstrap-support-for-Mac.patch
D 0013-ID-478-ekanalyzer-Fixed-decoding-of-FRU-fields.patch
D 0014-ID-479-ekanalyzer-fix-processing-of-custom-mfg.-fiel.patch
D 0015-ID-477-fru-Fix-decoding-of-non-text-data-in-get_fru_.patch
D 0017-ID-480-ipmitool-coredumps-in-EVP_CIPHER_CTX_init.patch
This is the big revision (1.8.18) to HEAD patch:
A ipmitool_1_8_18_ecb4cfbff855_to_HEAD.patch
- Note: the tarball has been generated with git archive from the git
repo. It slightly differs (.gitignore and configure.ac) from what
was in osc before. No idea why, but the change is tiny and does not matter.
-------------------------------------------------------------------
Fri Apr 28 15:22:39 UTC 2017 - trenn@suse.de
- Lower prio of message from error to debug (bsc#948540)
A hpm_x_compatibility_msg_is_debug_only.patch
-------------------------------------------------------------------
Tue Mar 28 16:41:02 UTC 2017 - trenn@suse.de
- Update to latest git HEAD version adding quite some fixes (fate#321578)
* Add:
0001-fix-typo.patch
0002-added-microTCA-major-version.patch
0003-replaced-removed-defines-which-are-already-present-i.patch
0004-fix-typo.patch
0006-ID-461-OpenSSL-1.1-compatibility-error-storage-size-.patch
0007-ID-461-Make-compiler-happier-about-changes-related-t.patch
0008-ID-474-Compile-fix-on-nonlinux-systems.patch
0009-Add-bootstrap-support-for-Mac.patch
0013-ID-478-ekanalyzer-Fixed-decoding-of-FRU-fields.patch
0014-ID-479-ekanalyzer-fix-processing-of-custom-mfg.-fiel.patch
0015-ID-477-fru-Fix-decoding-of-non-text-data-in-get_fru_.patch
0017-ID-480-ipmitool-coredumps-in-EVP_CIPHER_CTX_init.patch
-------------------------------------------------------------------
Wed Jan 25 12:23:27 UTC 2017 - felix.gerling@suse.com
- Update to latest version: 1.8.18 (fate#321579)
D 0001-Incorporate-upstream-comments-to-289-add-whitespace.patch
-------------------------------------------------------------------
Tue May 3 13:08:43 UTC 2016 - trenn@suse.de
- Update to latest version: 1.8.17
D ipmitool-1.8.10-implicit-fortify-decl.patch
D ipmitool-1_8_16_HEAD.patch
D latest_compile_fixes.patch
D ipmitool-sol_memleak.patch
D ipmitool-1_8_15_HEAD.patch
- Remove whitespace changes from:
M 0001-Incorporate-upstream-comments-to-289-add-whitespace.patch
-------------------------------------------------------------------
Thu Feb 25 11:57:55 UTC 2016 - trenn@suse.de
- Update to latest ipmitool source code
commit 9020b67347f46554009591ae91e4fa8875c65dfa
Date: Tue Jan 12 21:16:37 2016 +0500
- Fix memleak: bnc#968105
Add: ipmitool-sol_memleak.patch
-------------------------------------------------------------------
Wed Feb 24 20:34:19 CET 2016 - ro@suse.de
- do not use systemd macros for non-systemd distributions
-------------------------------------------------------------------
Wed Oct 14 16:02:43 UTC 2015 - trenn@suse.de
- Update to latest ipmitool source code
commit 999cd0ad9192b19ec57574e7aca111571f4d21d8
Date: Fri Mar 6 09:03:05 2015 -0600
and throw away patches that went mainline.
* Remove: fix_dell_oem_exitcode
-------------------------------------------------------------------
Wed Mar 11 15:21:40 UTC 2015 - trenn@suse.de
- Add correct exit code on Dell specific commands which did not get mainline
yet (bnc#886184)
* Add patch: fix_dell_oem_exitcode
-------------------------------------------------------------------
Thu Jan 15 13:56:40 UTC 2015 - trenn@suse.de
- Update to latest ipmitool sources.
This is version 1.8.15 (git tag: IPMITOOL_1_8_15) plus mainline patches up
to commit 708be8bc450f907cddb6d9e4b83aee6ba67b7d04
Date: Fri Jan 9 12:48:35 2015 +0100
* Add: latest_compile_fixes.patch
* Add: ipmitool-1_8_15_HEAD.patch
* Remove: automake-1.13.patch
* Remove: sdradd_close_file_handle.patch
* Remove: ipmitool-1.8.10-implicit-fortify-decl.patch
-------------------------------------------------------------------
Thu Mar 6 11:50:59 UTC 2014 - trenn@suse.de
- Update to latest git head and do not split up version 1.8.13.tar.bz2 tarball
and patch to latest git HEAD.
Reason is that all files in the repository got moved up one directory level
by git commit:
c18ec02f3304ce2a889a50e378f07a4168af3884
Date: Wed Feb 5 17:30:32 2014
Move all files one level up in the file hierarchy, to avoid the useless
ipmitool directory.
We want the latest git head asap, because otherwise additionally needed
patches will never patch cleanly in mainline and our repo and would always
need adjusting.
I asked for a new version tag mainline. As soon this happened, the
tarball name should again match with the exact mainline git tag.
Remove/Delete:
ipmitool_update_to_git_head_31_01_2014_b0aad15d67007c74b.patch
- Incorporate patch on request from Dell: fate#315996
Add: 0001-Incorporate-upstream-comments-to-289-add-whitespace.patch
-------------------------------------------------------------------
Thu Feb 13 23:27:01 UTC 2014 - trenn@suse.de
- Added 3 services:
1) exchange-bmc-os-info - fate#315999
Shows SLES string as OS in the service processor info
2) bmc-snmp-proxy - fate#316000
Exports sel (BMC Error log) via snmpd
3) ipmievd - fate#316002
Logs sel to syslog
1. and 2. are very Dell specific and should not get enabled by default
3. got converted to a native systemd service. Still needs autoconf
adjusting to get send mainline
1. and 2. have somewhat bigger Init V init scripts and time was not
enough to convert them. Therefore they were added via insserv
and friends as well
Add ipmitool_adjust_suse.paths
- Updated to latest git version:
Add ipmitool_update_to_git_head_31_01_2014_b0aad15d67007c74b.patch
-------------------------------------------------------------------
Fri Oct 4 06:38:02 UTC 2013 - kkaempf@suse.com
- Update to 1.8.13
Changes: many, see
http://sourceforge.net/projects/ipmitool/files/ipmitool/1.8.13/
- drop patches included upstream
* compile-fixes.patch
* ekanalyzer_fix_wrong_type_comparison.patch
* increase_possible_fw_file_size.patch
* ipmitool-bigendian.patch
* old-gcc-options.patch
-------------------------------------------------------------------
Tue Jul 16 13:36:07 UTC 2013 - tchvatal@suse.com
- Run format_spec_file so it is up par with others.
-------------------------------------------------------------------
Wed May 15 12:04:25 UTC 2013 - kkaempf@suse.com
- fix GCC 4.3 build
* Adds patch: old-gcc-options.patch
-------------------------------------------------------------------
Mon Mar 18 11:29:30 UTC 2013 - dvaleev@suse.com
- fix build on BE arches (ipmitool-bigendian.patch)
-------------------------------------------------------------------
Thu Feb 28 13:25:09 UTC 2013 - kkaempf@suse.com
- Adapt to Automake 1.13
-------------------------------------------------------------------
Thu Feb 28 12:28:56 UTC 2013 - kkaempf@suse.com
- Version 1.8.12 released 2012-08-09
Changes: many, see
http://ipmitool.cvs.sourceforge.net/viewvc/ipmitool/ipmitool/ChangeLog?revision=1.37&view=markup&pathrev=IPMITOOL_1_8_12
-------------------------------------------------------------------
Mon Feb 13 10:47:55 UTC 2012 - coolo@suse.com
- patch license to follow spdx.org standard
-------------------------------------------------------------------
Sat Oct 15 04:47:10 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to make the spec file more reliable
-------------------------------------------------------------------
Tue May 4 15:58:27 CEST 2010 - meissner@suse.de
- add a missing return value in one error branch.
-------------------------------------------------------------------
Thu Mar 4 01:59:27 CET 2010 - ro@suse.de
- fix one more no-return-in-nonvoid-function issue in ipmievd.c
-------------------------------------------------------------------
Thu Sep 17 17:15:02 CEST 2009 - trenn@suse.de
- Fixed several compiler warnings (bnc#371131, bnc#480347, bnc#439490,
bnc#525831, bnc#534909) and quite some more.
-------------------------------------------------------------------
Tue Sep 15 17:45:24 CEST 2009 - trenn@suse.de
- Update to version 1.8.11
- Fix segfault when doing firmware upgrades with too big FW files
- Be more verbose why a firmware update does not match
-------------------------------------------------------------------
Tue Oct 14 18:21:55 CEST 2008 - crrodriguez@suse.de
- fix implicit-fortify-decl errors
-------------------------------------------------------------------
Fri Sep 26 13:55:29 CEST 2008 - duwe@suse.de
- fix ugly code and sloppy programming found by RPMlint
-------------------------------------------------------------------
Fri Sep 12 16:42:17 CEST 2008 - duwe@suse.de
- update to version 1.8.10 as requested in FATE#304431
+ remove fixes now in mainline
-------------------------------------------------------------------
Thu Jan 17 15:28:30 CET 2008 - duwe@suse.de
- Fix bugs 298222 and 144023 (arg checking and POH scaling)
-------------------------------------------------------------------
Thu Mar 8 12:58:37 CET 2007 - duwe@suse.de
- add new compile fixes
-------------------------------------------------------------------
Wed Mar 7 14:02:54 CET 2007 - duwe@suse.de
- update to 1.8.9, fixing ipmievd crashing.
This was requesten in Bug#246456
-------------------------------------------------------------------
Fri Oct 13 15:07:13 CEST 2006 - duwe@suse.de
- update to today's CVS state
* might fix SoL issues (Fate #30911)
-------------------------------------------------------------------
Tue Oct 10 15:51:47 CEST 2006 - duwe@suse.de
- update to 1.8.8 mainly various fixes:
version 1.8.8
* Fix segfaults in sensor data repository list
* Fix ipmievd to open interface before daemonizing
* Fix IPMIv1.5 authtype NONE to ignore supplied password
* Fix cipher suite display bug in lan print
* Fix typo in IPMIv2 SOL output when sending break
* Fix improper LUN handling with Tyan SOL
* Add LUN support to OpenIPMI interface
* Add support for Kontron OEM commands
* Update to Kontron Firmware Update command
version 1.8.7
* Remove nuclear clause from license
* Add Sun OEM command for blades
* Increase argument size for raw commands in shell/exec
* Fix handling of LUNs for LAN interfaces
* Add IPMIv2 SOL loopback test
* Add support for IBM OEM SEL messages
* Disable file paranoia checks on read files by default
* Support IPMIv2 SOL on older Intel boxes
* Display message and exit if keepalive fails during SOL
* Add support for setting VLAN id and priority
* Add support for FreeBSD OpenIPMI-compatible driver
* Add support for IPMIv2 Firmware Firewall
* Fix gcc4 compile warnings
* Make ipmievd generate pidfile
* Add initscripts for ipmievd
-------------------------------------------------------------------
Mon May 29 13:14:22 CEST 2006 - kukuk@suse.de
- Fix type conversion bug in ipmi_pef.c [#173658]
-------------------------------------------------------------------
Fri May 26 16:40:00 CEST 2006 - schwab@suse.de
- Add readline-devel to BuildRequires to enable shell command.
- Fix use of channel_info bitfield.
- Fix byte swapping.
-------------------------------------------------------------------
Mon Feb 13 15:17:19 CET 2006 - kukuk@suse.de
- Update to ipmitool 1.8.6 [#134708,#131823]
- Fix memory corruption when sending encrypted SOL traffic
- Add keepalive timer to IPMIv2 SOL sessions
- Raise privilege level after creating IPMIv2 session
- Add support for settable SOL escape character with -e option
- Add support for Kg BMC key for IPMIv2 authentication with -k option
- Add support for Tyan IPMIv1.5 SOL with tsol command
- Add support for PICMG devices
- Add support for OEM SEL event parsing
- Add support for command bridging over lan and lanplus interfaces
- New 'chassis selftest' command
- Many bufxies and patches from contributors
-------------------------------------------------------------------
Wed Jan 25 21:36:39 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Jan 20 23:06:33 CET 2006 - schwab@suse.de
- Don't strip binaries.
-------------------------------------------------------------------
Mon Sep 19 09:07:21 CEST 2005 - kukuk@suse.de
- Fix missing return value
-------------------------------------------------------------------
Thu Aug 4 11:54:33 CEST 2005 - kukuk@suse.de
- Initial release (FeatureID #165)

4
ipmitool.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: ipmitool
version: 1.8.19.13.gbe11d94
mtime: 1673520680
commit: be11d948f89b10be094e28d8a0a5e8fb532c7b60

156
ipmitool.spec Normal file
View File

@ -0,0 +1,156 @@
#
# spec file for package ipmitool
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ipmitool
Version: 1.8.19.13.gbe11d94
Release: 0
Summary: Utility for IPMI Control
License: BSD-3-Clause
Group: System/Management
URL: https://github.com/ipmitool/ipmitool
Source: %{name}-%{version}.tar.xz
Source1: ipmievd.service
Source2: ipmievd.sysconf
Source3: enterprise-numbers
Patch1: 0001-Enhance-fwum-output.patch
Patch2: 0002-Fix-file-permissions.patch
Patch3: 0003-Cleanup-and-compiler-issues-only-no-functional-chang.patch
Patch4: 0004-Adjust-SUSE-paths.patch
Patch5: 0005-HPM-x-compatibility-message-is-DEBUG-only.patch
Patch6: Fix-time-format-for-sel-list-v.patch
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: readline-devel
# Taken over from freeipmi.spec:
# Necessary as only those archs implement iopl and friends (#368541)
%ifarch %{ix86} x86_64 ia64 alpha aarch64
BuildRequires: freeipmi-devel
%endif
%{?systemd_odering}
%description
This package contains a utility for interfacing with devices that
support the Intelligent Platform Management Interface specification.
IPMI is an open standard for machine health, inventory, and remote
power control.
This utility can communicate with IPMI-enabled devices through either a
kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in
the IPMI specification. IPMIv2 adds support for encrypted LAN
communications and remote Serial-over-LAN functionality.
It provides commands for reading the Sensor Data Repository (SDR) and
displaying sensor values, displaying the contents of the System Event
Log (SEL), printing Field Replaceable Unit (FRU) information, reading
and setting LAN configuration, and chassis power control.
%package bmc-snmp-proxy
Summary: SNMP configuration to include the BMC's SNMP agent
Group: System/Management
Requires: net-snmp, ipmitool >= %{version}
BuildArch: noarch
%description bmc-snmp-proxy
Given a host with BMC, this package would extend system configuration
of net-snmp to include redirections to BMC based SNMP.
%prep
%setup -q
%autopatch -p1
%build
cp %{SOURCE3} lib
autoreconf -fiv
# file-security: enables more security checks on files
%configure \
--enable-file-security \
--enable-intf-usb \
--enable-registry-download=no
make %{?_smp_mflags}
%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc/ipmitool
install -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/misc/enterprise-numbers
# exchange-bmc-os-info service
install -D -m 0755 contrib/exchange-bmc-os-info.init.redhat %{buildroot}/%{_sbindir}/exchange-bmc-os-info
install -D -m 0644 contrib/exchange-bmc-os-info.service.redhat %{buildroot}%{_unitdir}/exchange-bmc-os-info.service
install -D -m 0644 contrib/exchange-bmc-os-info.sysconf %{buildroot}/%{_sysconfdir}/exchange-bmc-os-info
ln -sf service %{buildroot}%{_sbindir}/rcexchange-bmc-os-info
# ipmievd service
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/ipmievd.service
install -D -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/ipmievd
ln -sf service %{buildroot}%{_sbindir}/rcipmievd
# bmc-snmp-proxy
install -D -m 755 contrib/bmc-snmp-proxy %{buildroot}/%{_sbindir}/bmc-snmp-proxy
install -D -m 644 contrib/bmc-snmp-proxy.service %{buildroot}%{_unitdir}/bmc-snmp-proxy.service
install -D -m 755 contrib/bmc-snmp-proxy.sysconf %{buildroot}/%{_sysconfdir}/bmc-snmp-proxy
ln -sf service %{buildroot}%{_sbindir}/rcbmc-snmp-proxy
%pre
%service_add_pre exchange-bmc-os-info.service ipmievd.service
%post
%service_add_post exchange-bmc-os-info.service ipmievd.service
%preun
%service_del_preun exchange-bmc-os-info.service ipmievd.service
%postun
%service_del_postun exchange-bmc-os-info.service ipmievd.service
%pre bmc-snmp-proxy
%service_add_pre bmc-snmp-proxy.service
%post bmc-snmp-proxy
%service_add_post bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
%preun bmc-snmp-proxy
%service_del_preun bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
%postun bmc-snmp-proxy
%service_del_postun bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
%files
%doc AUTHORS README ChangeLog
%license COPYING
%{_datadir}/ipmitool
%attr(755,root,root) %{_bindir}/ipmitool
%attr(755,root,root) %{_sbindir}/ipmievd
%attr(755,root,root) %{_sbindir}/exchange-bmc-os-info
%{_sbindir}/rcipmievd
%{_sbindir}/rcexchange-bmc-os-info
%config(noreplace) %{_sysconfdir}/exchange-bmc-os-info
%config(noreplace) %{_sysconfdir}/ipmievd
%{_unitdir}/exchange-bmc-os-info.service
%{_unitdir}/ipmievd.service
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_datadir}/misc/enterprise-numbers
%files bmc-snmp-proxy
%attr(755,root,root) %{_sbindir}/bmc-snmp-proxy
%{_sbindir}/rcbmc-snmp-proxy
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/bmc-snmp-proxy
%{_unitdir}/bmc-snmp-proxy.service
%changelog