Blame SPECS/ipmitool.spec

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