Blame SPECS/ipmitool.spec

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