Blame SPECS/ipmitool.spec

390991
Name:         ipmitool
390991
Summary:      Utility for IPMI control
390991
Version:      1.8.18
bb166e
Release:      17%{?dist}
390991
License:      BSD
390991
URL:          http://ipmitool.sourceforge.net/
390991
Source0:      http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
390991
Source1:      openipmi-ipmievd.sysconf
390991
Source2:      ipmievd.service
390991
Source3:      exchange-bmc-os-info.service
390991
Source4:      exchange-bmc-os-info.sysconf
390991
Source5:      set-bmc-url.sh
390991
Source6:      exchange-bmc-os-info
390991
390991
Patch1:       0001-CVE-2011-4339-OpenIPMI.patch
390991
# WARNING:  THIS PATCH MUST BE USED FOR RAWHIDE (f26+) BRANCH
390991
Patch2:       0002-openssl.patch
390991
Patch3:       0003-ipmitool-1.8.11-set-kg-key.patch
390991
Patch4:       0004-slowswid.patch
390991
Patch5:       0005-sensor-id-length.patch
390991
Patch6:       0006-enable-usb.patch
390991
Patch7:       0007-check-input.patch
115784
Patch8:       0008-use-best-cipher.patch
bb166e
Patch9:       0009-CVE-2020-5208.patch
bb166e
Patch10:      0010-quanta-oem-support.patch
bb166e
Patch11:      0011-pef-missing-newline.patch
bb166e
Patch12:      0012-lanplus-cipher-retry.patch
390991
390991
BuildRequires: openssl-devel readline-devel ncurses-devel
390991
%{?systemd_requires}
390991
BuildRequires: systemd
390991
# bootstrap
390991
BuildRequires: automake autoconf libtool
390991
Obsoletes: OpenIPMI-tools < 2.0.14-3
390991
Provides: OpenIPMI-tools = 2.0.14-3
390991
390991
390991
%description
390991
This package contains a utility for interfacing with devices that support
390991
the Intelligent Platform Management Interface specification.  IPMI is
390991
an open standard for machine health, inventory, and remote power control.
390991
390991
This utility can communicate with IPMI-enabled devices through either a
390991
kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in
390991
the IPMI specification.  IPMIv2 adds support for encrypted LAN
390991
communications and remote Serial-over-LAN functionality.
390991
390991
It provides commands for reading the Sensor Data Repository (SDR) and
390991
displaying sensor values, displaying the contents of the System Event
390991
Log (SEL), printing Field Replaceable Unit (FRU) information, reading and
390991
setting LAN configuration, and chassis power control.
390991
390991
390991
%package -n ipmievd
390991
Requires: ipmitool
390991
%{?systemd_requires}
390991
BuildRequires: systemd
390991
Summary: IPMI event daemon for sending events to syslog
390991
%description -n ipmievd
390991
ipmievd is a daemon which will listen for events from the BMC that are
390991
being  sent to the SEL and also log those messages to syslog.
390991
390991
390991
%package -n bmc-snmp-proxy
390991
Requires: net-snmp
390991
Requires: exchange-bmc-os-info
390991
BuildArch: noarch
390991
Summary: Reconfigure SNMP to include host SNMP agent within BMC
390991
%description -n bmc-snmp-proxy
390991
Given a host with BMC, this package would extend system configuration
390991
of net-snmp to include redirections to BMC based SNMP.
390991
390991
390991
%package -n exchange-bmc-os-info
390991
Requires: hostname
390991
Requires: ipmitool
390991
BuildArch: noarch
390991
%{?systemd_requires}
390991
BuildRequires: systemd
390991
390991
Summary: Let OS and BMC exchange info
390991
390991
%description -n exchange-bmc-os-info
390991
Given a host with BMC, this package would pass the hostname &
390991
OS information to the BMC and also capture the BMC ip info
390991
for the host OS to use.
390991
390991
390991
%prep
390991
%autosetup -p1
390991
390991
for f in AUTHORS ChangeLog; do
390991
    iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8
390991
    mv ${f}.utf8 ${f}
390991
done
390991
390991
%build
390991
# --disable-dependency-tracking speeds up the build
390991
# --enable-file-security adds some security checks
390991
# --disable-intf-free disables FreeIPMI support - we don't want to depend on
390991
#   FreeIPMI libraries, FreeIPMI has its own ipmitoool-like utility.
390991
390991
# begin: release auto-tools
390991
# Used to be needed by aarch64 support, now only cxoem patch makefiles are left.
390991
aclocal
390991
libtoolize --automake --copy
390991
autoheader
390991
automake --foreign --add-missing --copy
390991
aclocal
390991
autoconf
390991
automake --foreign
390991
# end: release auto-tools
390991
115784
%configure \
115784
    CFLAGS="%{optflags} -fno-strict-aliasing" \
115784
    --disable-dependency-tracking --enable-file-security --disable-intf-free
390991
make %{?_smp_mflags}
390991
390991
%install
390991
make DESTDIR=%{buildroot} install
390991
390991
install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/ipmievd.service
390991
install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd
390991
install -Dm 644 %{SOURCE3} %{buildroot}%{_unitdir}/exchange-bmc-os-info.service
390991
install -Dm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/exchange-bmc-os-info
390991
install -Dm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/set-bmc-url.sh
390991
install -Dm 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info
390991
390991
390991
install -Dm 644 contrib/bmc-snmp-proxy.sysconf %{buildroot}%{_sysconfdir}/sysconfig/bmc-snmp-proxy
390991
install -Dm 644 contrib/bmc-snmp-proxy.service %{buildroot}%{_unitdir}/bmc-snmp-proxy.service
390991
install -Dm 755 contrib/bmc-snmp-proxy         %{buildroot}%{_libexecdir}/bmc-snmp-proxy
390991
390991
%post -n ipmievd
390991
%systemd_post ipmievd.service
390991
390991
%preun -n ipmievd
390991
%systemd_preun ipmievd.service
390991
390991
%postun -n ipmievd
390991
%systemd_postun_with_restart ipmievd.service
390991
390991
%post -n exchange-bmc-os-info
390991
%systemd_post exchange-bmc-os-info.service
390991
390991
%preun -n exchange-bmc-os-info
390991
%systemd_preun exchange-bmc-os-info.service
390991
390991
%postun -n exchange-bmc-os-info
390991
%systemd_postun_with_restart exchange-bmc-os-info.service
390991
390991
390991
%triggerun -- ipmievd < 1.8.11-7
390991
# Save the current service runlevel info
390991
# User must manually run systemd-sysv-convert --apply ipmievd
390991
# to migrate them to systemd targets
390991
/usr/bin/systemd-sysv-convert --save ipmievd >/dev/null 2>&1 ||:
390991
390991
# Run these because the SysV package being removed won't do them
390991
/sbin/chkconfig --del ipmievd >/dev/null 2>&1 || :
390991
/bin/systemctl try-restart ipmievd.service >/dev/null 2>&1 || :
390991
390991
%files
390991
%{_bindir}/ipmitool
390991
%{_mandir}/man1/ipmitool.1*
390991
%doc %{_datadir}/doc/ipmitool
390991
%{_datadir}/ipmitool
390991
390991
%files -n ipmievd
390991
%config(noreplace) %{_sysconfdir}/sysconfig/ipmievd
390991
%{_unitdir}/ipmievd.service
390991
%{_sbindir}/ipmievd
390991
%{_mandir}/man8/ipmievd.8*
390991
390991
%files -n exchange-bmc-os-info
390991
%config(noreplace) %{_sysconfdir}/sysconfig/exchange-bmc-os-info
390991
%{_sysconfdir}/profile.d/set-bmc-url.sh
390991
%{_unitdir}/exchange-bmc-os-info.service
390991
%{_libexecdir}/exchange-bmc-os-info
390991
390991
%files -n bmc-snmp-proxy
390991
%config(noreplace) %{_sysconfdir}/sysconfig/bmc-snmp-proxy
390991
%{_unitdir}/bmc-snmp-proxy.service
390991
%{_libexecdir}/bmc-snmp-proxy
390991
390991
%changelog
bb166e
* Wed Jun 03 2020 Václav Doležal <vdolezal@redhat.com> - 1.8.18-17
bb166e
- Disable retry of pre-session "Get cipher suites" command as some
bb166e
  BMCs are ignoring it (#1831158)
bb166e
bb166e
* Thu Apr 30 2020 Václav Doležal <vdolezal@redhat.com> - 1.8.18-16
bb166e
- Fix "ipmitool pef {status,info}" not printing final newline (#1840546)
bb166e
bb166e
* Thu Apr 30 2020 Václav Doležal <vdolezal@redhat.com> - 1.8.18-15
bb166e
- Backport OEM support for Quanta (#1811941)
bb166e
bb166e
* Fri Feb 07 2020 Václav Doležal <vdolezal@redhat.com> - 1.8.18-14
bb166e
- Fix memory leak (found by covscan)
bb166e
bb166e
* Fri Feb 07 2020 Václav Doležal <vdolezal@redhat.com> - 1.8.18-13
bb166e
- Backport fix for CVE-2020-5208 (#1799039)
bb166e
115784
* Fri Nov 15 2019 Václav Doležal <vdolezal@redhat.com> - 1.8.18-12
115784
- Disable -fstrict-aliasing (RPMDiff issue)
115784
115784
* Tue Oct 15 2019 Václav Doležal <vdolezal@redhat.com> - 1.8.18-11
115784
- Choose the best cipher suite available when connecting over LAN (#1749360)
115784
390991
* Thu Feb 22 2018 Josef Ridky <jridky@redhat.com> - 1.8.18-10
390991
- Spec clean up
390991
- Add support to set kg key
390991
- Fix DDR4 memory issues
390991
- Increase length of sensor id
390991
- Enable usb interface by default
390991
- Fix input options 
390991
390991
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.18-9
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
390991
390991
* Tue Jan 30 2018 Josef Ridky <jridky@redhat.com> - 1.8.18-8
390991
- remove old systemd dependencies
390991
390991
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.18-7
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
390991
390991
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.18-6
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
390991
390991
* Tue Feb 21 2017 Josef Ridky <jridky@redhat.com> - 1.8.18-5
390991
- Fix allocation issue
390991
390991
* Tue Feb 21 2017 Josef Ridky <jridky@redhat.com> - 1.8.18-4
390991
- Add support for OpenSSL-1.1.0 library (#1423743)
390991
390991
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.18-3
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
390991
390991
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.8.18-2
390991
- Rebuild for readline 7.x
390991
390991
* Mon Oct 10 2016 Boris Ranto <branto@redhat.com> - 0:1.8.18-1
390991
- New version (0:1.8.18-1)
390991
- CVE-2011-4339 OpenIPMI
390991
390991
* Tue May 10 2016 Boris Ranto <branto@redhat.com> - 0:1.8.17-1
390991
- New version (0:1.8.17-1)
390991
- CVE-2011-4339 OpenIPMI
390991
390991
* Tue Feb 23 2016 Boris Ranto <branto@redhat.com> - 1.8.16-1
390991
- Rebase to version 1.8.16
390991
390991
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.15-6
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
390991
390991
* Tue Nov 24 2015 Boris Ranto <branto@redhat.com> - 1.8.15-5
390991
- Split ipmievd bits into a separate package
390991
390991
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.15-4
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
390991
390991
* Wed Apr 22 2015 Ales Ledvinka <aledvink@redhat.com> 1.8.15-3
390991
- Remove modalias dependency.
390991
390991
* Thu Mar 19 2015 Ales Ledvinka <aledvink@redhat.com> 1.8.15-1
390991
- Upstream release 1.8.15
390991
390991
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-6
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
390991
390991
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.13-5
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
390991
390991
* Tue Apr  8 2014 Ales Ledvinka <aledvink@redhat.com> 1.8.13-4
390991
- Support for environment variable short options.
390991
390991
* Tue Nov  5 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.13-3
390991
- Cleanup of dual bridge option.
390991
390991
* Tue Oct 15 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.13-2
390991
- BMC SNMP agent redirection
390991
390991
* Mon Oct 14 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.13-1
390991
- Upstream release 1.8.13
390991
390991
* Fri Aug 09 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.12-13073103
390991
- Avoid FIPS mode crashes if possible.
390991
- Document FIPS limitations.
390991
390991
* Wed Jul  31 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.12-13073101
390991
- Include current upstream bugfixes.
390991
390991
* Thu Jul 25 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.12-16
390991
- Calxeda OEM extensions.
390991
390991
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.12-15
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
390991
390991
* Mon Dec 17 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.8.12-14
390991
- Updated the exchange-bmc-os-info's service file with Requires stmt
390991
390991
* Fri Dec 14 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-13
390991
- fixed argument parsing leaks
390991
- ask user for password only once and do so only when interactive password
390991
  is the chosen password method.
390991
390991
* Thu Dec 13 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.8.12-12
390991
- Removed the extra symbols in the patch, as the build is failing.
390991
390991
* Thu Dec 13 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.8.12-11
390991
- Subpackage for exchange-bmc-os-info as it requires OPenIPMI
390991
390991
* Wed Dec 12 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-10
390991
- documented fixed and conditional defaults. adjusted synopsis
390991
390991
* Tue Dec 4 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-9
390991
- fixed ipmitool documentation
390991
390991
* Fri Nov 30 2012 Praveen K Paladugu <praveen_paladugu@dell.com> 1.8.12-8
390991
- service & scripts to allow OS to capture BMC's IP & URL info
390991
- Also pass the OS information to BMC
390991
- patches submitted by Charles Rose (charles_rose[at]dell.com)
390991
390991
* Fri Nov 16 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-7
390991
- failed sol session activation crashes while logging exit
390991
390991
* Fri Nov 16 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-6
390991
- revert default cipersuite back to 3 which includes integrity and confidentiality
390991
390991
* Thu Oct 18 2012 Dan Horák <dan[at]danny.cz> - 1.8.12-5
390991
- fix build on big endian arches
390991
390991
* Wed Oct 17 2012 Ales Ledvinka <aledvink@redhat.cz> 1.8.12-4
390991
- support setting OS name and Hostname on BMC
390991
390991
* Tue Sep 04 2012 Dan Horák <dan[at]danny.cz> - 1.8.12-3
390991
- fix build on big endian arches
390991
390991
* Mon Aug 27 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-2
390991
- Fixed starting ipmievd under systemd (#819234).
390991
- Updated RPM scriplets with latest systemd-rpm macros (#850161)
390991
390991
* Fri Aug 10 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-1
390991
- update to ipmitool-1.8.12
390991
390991
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-12
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
390991
390991
* Tue May 22 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.11-11
390991
- start ipmievd.service after ipmi (#819234)
390991
390991
* Thu Apr 26 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.11-10
390991
- fixed ipmievd.service systemd unit (#807757)
390991
390991
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-9
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
390991
390991
* Tue Dec 13 2011 Jan Safranek <jsafrane@redhat.com> - 1.8.11-8
390991
- fixed CVE-2011-4339
390991
390991
* Mon Sep 12 2011 Tom Callaway <spot@fedoraproject.org> - 1.8.11-7
390991
- convert to systemd
390991
390991
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-6
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
390991
390991
* Wed Mar  3 2010 Jan Safranek <jsafrane@redhat.com> - 1.8.11-5
390991
- Fixed exit code of ipmievd initscript with wrong arguments
390991
390991
* Mon Nov  2 2009 Jan Safranek  <jsafrane@redhat.com> 1.8.11-4
390991
- fix ipmievd initscript 'condrestart' action (#532188)
390991
390991
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.8.11-3
390991
- rebuilt with new openssl
390991
390991
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-2
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
390991
390991
* Thu Feb 26 2009 Jan Safranek <jsafrane@redhat.com> 1.8.11-1
390991
- updated to new version
390991
390991
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.10-4
390991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
390991
390991
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> 1.8.10-3
390991
- rebuild with new openssl
390991
390991
* Tue Oct 14 2008 Jan Safranek <jsafrane@redhat.com> 1.8.10-2
390991
- fix issues found during package review:
390991
  - clear Default-Start: line in the init script, the service should be 
390991
    disabled by default
390991
  - added Obsoletes: OpenIPMI-tools
390991
  - compile with --disable-dependency-tracking to speed things up
390991
  - compile with --enable-file-security
390991
  - compile with --disable-intf-free, don't depend on FreeIPMI libraries
390991
    (FreeIPMI has its own ipmitool-like utility)
390991
390991
* Mon Oct 13 2008 Jan Safranek <jsafrane@redhat.com> 1.8.10-1
390991
- package created, based on upstream .spec file