0794d8
%global _hardened_build 1
0794d8
0794d8
Name:         ipmitool
0794d8
Summary:      Utility for IPMI control
0794d8
Version:      1.8.18
0794d8
Release:      7%{?dist}
0794d8
License:      BSD
0794d8
Group:        System Environment/Base
0794d8
URL:          http://ipmitool.sourceforge.net/
0794d8
Source0:      http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
0794d8
Source1:      openipmi-ipmievd.sysconf
0794d8
Source2:      ipmievd.service
0794d8
Source3:      exchange-bmc-os-info.service
0794d8
Source4:      exchange-bmc-os-info.sysconf
0794d8
Source5:      set-bmc-url.sh
0794d8
Source6:      exchange-bmc-os-info
0794d8
0794d8
BuildRequires: openssl-devel readline-devel ncurses-devel
0794d8
BuildRequires: systemd-units
0794d8
# bootstrap
0794d8
BuildRequires: automake autoconf libtool
0794d8
Requires:OpenIPMI-modalias
0794d8
Requires(post): systemd-sysv
0794d8
Requires(post): systemd-units
0794d8
Requires(preun): systemd-units
0794d8
Requires(postun): systemd-units
0794d8
Obsoletes: OpenIPMI-tools < 2.0.14-3
0794d8
Provides: OpenIPMI-tools = 2.0.14-3
0794d8
0794d8
Patch1:  0001-ipmitool-1.8.10-ipmievd-init.patch.patch
0794d8
Patch2:  0002-ipmitool-1.8.10-ipmievd-condrestart.patch.patch
0794d8
Patch4:  0004-ipmitool-1.8.11-set-kg-key.patch.patch
0794d8
Patch7:  0007-ipmitool-1.8.11-remove-umask0.patch.patch
0794d8
Patch9:  0009-ipmitool-1.8.11-bz1126333-slowswid.patch.patch
0794d8
Patch10: 0010-ipmitool-1.8.11-bz878614-overname.patch.patch
0794d8
Patch15: 0015-ID-390-Support-for-new-Communication-Interface-USB-M.patch
0794d8
Patch16: 0016-ipmitool-1.8.18-verbose.patch
0794d8
Patch17: 0017-ipmitool-1.8.18-check-input-values.patch
0794d8
0794d8
0794d8
%description
0794d8
This package contains a utility for interfacing with devices that support
0794d8
the Intelligent Platform Management Interface specification.  IPMI is
0794d8
an open standard for machine health, inventory, and remote power control.
0794d8
0794d8
This utility can communicate with IPMI-enabled devices through either a
0794d8
kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in
0794d8
the IPMI specification.  IPMIv2 adds support for encrypted LAN
0794d8
communications and remote Serial-over-LAN functionality.
0794d8
0794d8
It provides commands for reading the Sensor Data Repository (SDR) and
0794d8
displaying sensor values, displaying the contents of the System Event
0794d8
Log (SEL), printing Field Replaceable Unit (FRU) information, reading and
0794d8
setting LAN configuration, and chassis power control.
0794d8
0794d8
%package -n bmc-snmp-proxy
0794d8
Requires: net-snmp
0794d8
Requires: exchange-bmc-os-info
0794d8
Requires:OpenIPMI-modalias
0794d8
BuildArch: noarch
0794d8
Summary: Reconfigure SNMP to include host SNMP agent within BMC
0794d8
%description -n bmc-snmp-proxy
0794d8
Given a host with BMC, this package would extend system configuration
0794d8
of net-snmp to include redirections to BMC based SNMP.
0794d8
0794d8
0794d8
%package -n exchange-bmc-os-info
0794d8
Requires: hostname
0794d8
Requires: ipmitool OpenIPMI
0794d8
Requires:OpenIPMI-modalias
0794d8
BuildArch: noarch
0794d8
Requires(post): systemd-sysv
0794d8
Requires(post): systemd-units
0794d8
Requires(preun): systemd-units
0794d8
Requires(postun): systemd-units
0794d8
0794d8
Summary: Let OS and BMC exchange info
0794d8
0794d8
%description -n exchange-bmc-os-info
0794d8
Given a host with BMC, this package would pass the hostname &
0794d8
OS information to the BMC and also capture the BMC ip info
0794d8
for the host OS to use.
0794d8
0794d8
0794d8
%prep
0794d8
0794d8
%setup -q
0794d8
0794d8
%patch1 -p1
0794d8
%patch2 -p1
0794d8
%patch4 -p1
0794d8
%patch7 -p1
0794d8
%patch9 -p1
0794d8
%patch10 -p1
0794d8
%patch15 -p1
0794d8
%patch16 -p1
0794d8
%patch17 -p1
0794d8
0794d8
for f in AUTHORS ChangeLog; do
0794d8
    iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8
0794d8
    mv ${f}.utf8 ${f}
0794d8
done
0794d8
0794d8
%build
0794d8
# --disable-dependency-tracking speeds up the build
0794d8
# --enable-file-security adds some security checks
0794d8
# --disable-intf-free disables FreeIPMI support - we don't want to depend on
0794d8
#   FreeIPMI libraries, FreeIPMI has its own ipmitoool-like utility.
0794d8
0794d8
# begin: release auto-tools
0794d8
# Used to be needed by aarch64 support, now only cxoem patch makefiles are left.
0794d8
aclocal
0794d8
libtoolize --automake --copy
0794d8
autoheader
0794d8
automake --foreign --add-missing --copy
0794d8
aclocal
0794d8
autoconf
0794d8
automake --foreign
0794d8
# end: release auto-tools
0794d8
0794d8
%configure --disable-dependency-tracking --enable-file-security --disable-intf-free
0794d8
make %{?_smp_mflags}
0794d8
0794d8
%install
0794d8
make DESTDIR=%{buildroot} install
0794d8
0794d8
install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/ipmievd.service
0794d8
install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd
0794d8
install -Dm 644 %{SOURCE3} %{buildroot}%{_unitdir}/exchange-bmc-os-info.service
0794d8
install -Dm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/exchange-bmc-os-info
0794d8
install -Dm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/set-bmc-url.sh
0794d8
install -Dm 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info
0794d8
0794d8
0794d8
install -Dm 644 contrib/bmc-snmp-proxy.sysconf %{buildroot}%{_sysconfdir}/sysconfig/bmc-snmp-proxy
0794d8
install -Dm 644 contrib/bmc-snmp-proxy.service %{buildroot}%{_unitdir}/bmc-snmp-proxy.service
0794d8
install -Dm 755 contrib/bmc-snmp-proxy         %{buildroot}%{_libexecdir}/bmc-snmp-proxy
0794d8
0794d8
%post
0794d8
%systemd_post ipmievd.service
0794d8
0794d8
%preun
0794d8
%systemd_preun ipmievd.service
0794d8
0794d8
%postun
0794d8
%systemd_postun_with_restart ipmievd.service
0794d8
0794d8
%post -n exchange-bmc-os-info
0794d8
%systemd_post exchange-bmc-os-info.service
0794d8
0794d8
%preun -n exchange-bmc-os-info
0794d8
%systemd_preun exchange-bmc-os-info.service
0794d8
0794d8
%postun -n exchange-bmc-os-info
0794d8
%systemd_postun_with_restart exchange-bmc-os-info.service
0794d8
0794d8
0794d8
%triggerun -- ipmievd < 1.8.11-7
0794d8
# Save the current service runlevel info
0794d8
# User must manually run systemd-sysv-convert --apply ipmievd
0794d8
# to migrate them to systemd targets
0794d8
/usr/bin/systemd-sysv-convert --save ipmievd >/dev/null 2>&1 ||:
0794d8
0794d8
# Run these because the SysV package being removed won't do them
0794d8
/sbin/chkconfig --del ipmievd >/dev/null 2>&1 || :
0794d8
/bin/systemctl try-restart ipmievd.service >/dev/null 2>&1 || :
0794d8
0794d8
%files
0794d8
%config(noreplace) %{_sysconfdir}/sysconfig/ipmievd
0794d8
%{_unitdir}/ipmievd.service
0794d8
%{_bindir}/*
0794d8
%{_sbindir}/*
0794d8
%{_mandir}/man*/*
0794d8
%doc %{_datadir}/doc/ipmitool
0794d8
%{_datadir}/ipmitool
0794d8
0794d8
%files -n exchange-bmc-os-info
0794d8
%config(noreplace) %{_sysconfdir}/sysconfig/exchange-bmc-os-info
0794d8
%{_sysconfdir}/profile.d/set-bmc-url.sh
0794d8
%{_unitdir}/exchange-bmc-os-info.service
0794d8
%{_libexecdir}/exchange-bmc-os-info
0794d8
0794d8
%files -n bmc-snmp-proxy
0794d8
%config(noreplace) %{_sysconfdir}/sysconfig/bmc-snmp-proxy
0794d8
%{_unitdir}/bmc-snmp-proxy.service
0794d8
%{_libexecdir}/bmc-snmp-proxy
0794d8
0794d8
%changelog
0794d8
* Tue Feb 06 2018 Josef Ridky <jridky@redhat.com> - 0:1.8.18-7
0794d8
- Remove debug prints shown without -v option (#1483163)
0794d8
0794d8
* Tue Oct 03 2017 Josef Ridky <jridky@redhat.com> - 0:1.8.18-6
0794d8
- Hide unrequested verbose output (#1483163)
0794d8
- Fix doc for check input values (#1495098)
0794d8
0794d8
* Mon Apr 10 2017 Josef Ridky <jridky@redhat.com> - 0:1.8.18-5
0794d8
- Remove RPMDiff fix file (#1439269) related to #1398658
0794d8
0794d8
* Tue Feb 21 2017 Josef Ridky <jridky@redhat.com> - 0:1.8.18-4
0794d8
- Fix RPMDiff issues and rebuild
0794d8
0794d8
* Thu Feb 16 2017 Josef Ridky <jridky@redhat.com> - 0:1.8.18-3
0794d8
- Fix issues with warning: dereferencing type-punned pointer 
0794d8
  will break strict-aliasing rules from RPMDiff
0794d8
0794d8
* Mon Feb 13 2017 Josef Ridky <jridky@redhat.com> - 0:1.8.18-2
0794d8
- Fix issue in file sources
0794d8
0794d8
* Thu Feb 02 2017 Josef Ridky <jridky@redhat.com> - 0:1.8.18-1
0794d8
- New upstream release 1.8.18 (#1398658)
0794d8
0794d8
* Tue May 03 2016 Boris Ranto <branto@redhat.com> - 0:1.8.15-7
0794d8
- New release (0:1.8.15-7)
0794d8
- ID:437 - sel: Fix "sel time set <time>"
0794d8
- ID 408 - fix sel list last X listing
0794d8
0794d8
* Thu Mar 24 2016 Boris Ranto <branto@redhat.com> - 1.8.15-6
0794d8
- Fix missing return in ipmi_kontronoem_main() - CID#1261317
0794d8
0794d8
* Fri Feb 19 2016 Boris Ranto <branto@redhat.com> - 1.8.15-5
0794d8
- allow to upgrade the latest HPM files using usb options
0794d8
- resolves: rhbz#1257316
0794d8
0794d8
* Thu Feb 18 2016 Boris Ranto <branto@redhat.com> - 1.8.15-4
0794d8
- use meaningful generator ID for ipmitool sel
0794d8
- resolves: rhbz#1289507
0794d8
0794d8
* Thu Feb 18 2016 Boris Ranto <branto@redhat.com> - 1.8.15-3
0794d8
- perform a hardened build
0794d8
- resolves: rhbz#1092551
0794d8
0794d8
* Thu Feb 18 2016 Boris Ranto <branto@redhat.com> - 1.8.15-2
0794d8
- avoid assert on mismatched session ID
0794d8
- resolves: rhbz#1286035
0794d8
0794d8
* Fri Dec 11 2015 Boris Ranto <branto@redhat.com> - 1.8.15-1
0794d8
- rebase to latest stable upstream version
0794d8
- resolves: rhbz#1269523
0794d8
0794d8
* Mon Mar 09 2015 Ales Ledvinka <aledvink@redhat.com> - 1.8.13-8
0794d8
- Chassis boot parameter settings support.
0794d8
0794d8
* Wed Mar 05 2014 Ales Ledvinka <aledvink@redhat.com> - 1.8.13-7
0794d8
- Allow setting channel Kg key.
0794d8
0794d8
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.8.13-6
0794d8
- Mass rebuild 2014-01-24
0794d8
0794d8
* Mon Jan 20 2014 Ales Ledvinka <aledvink@redhat.com> 1.8.13-5
0794d8
- bmc-snmp-proxy upstream bugfixes.
0794d8
0794d8
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.8.13-4
0794d8
- Mass rebuild 2013-12-27
0794d8
0794d8
* Tue Nov  5 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.13-3
0794d8
- Cleanup of dual bridge option.
0794d8
0794d8
* Tue Oct 15 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.13-2
0794d8
- BMC SNMP agent redirection
0794d8
0794d8
* Mon Oct 14 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.13-1
0794d8
- Upstream release 1.8.13
0794d8
0794d8
* Fri Aug 09 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.12-13073103
0794d8
- Avoid FIPS mode crashes if possible.
0794d8
- Document FIPS limitations.
0794d8
0794d8
* Wed Jul  31 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.12-13073101
0794d8
- Include current upstream bugfixes.
0794d8
0794d8
* Thu Jul 25 2013 Ales Ledvinka <aledvink@redhat.com> 1.8.12-16
0794d8
- Calxeda OEM extensions.
0794d8
0794d8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.12-15
0794d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0794d8
0794d8
* Mon Dec 17 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.8.12-14
0794d8
- Updated the exchange-bmc-os-info's service file with Requires stmt
0794d8
0794d8
* Fri Dec 14 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-13
0794d8
- fixed argument parsing leaks
0794d8
- ask user for password only once and do so only when interactive password
0794d8
  is the chosen password method.
0794d8
0794d8
* Thu Dec 13 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.8.12-12
0794d8
- Removed the extra symbols in the patch, as the build is failing.
0794d8
0794d8
* Thu Dec 13 2012 Praveen K Paladugu <praveen_paladugu@dell.com> - 1.8.12-11
0794d8
- Subpackage for exchange-bmc-os-info as it requires OPenIPMI
0794d8
0794d8
* Wed Dec 12 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-10
0794d8
- documented fixed and conditional defaults. adjusted synopsis
0794d8
0794d8
* Tue Dec 4 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-9
0794d8
- fixed ipmitool documentation
0794d8
0794d8
* Fri Nov 30 2012 Praveen K Paladugu <praveen_paladugu@dell.com> 1.8.12-8
0794d8
- service & scripts to allow OS to capture BMC's IP & URL info
0794d8
- Also pass the OS information to BMC
0794d8
- patches submitted by Charles Rose (charles_rose[at]dell.com)
0794d8
0794d8
* Fri Nov 16 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-7
0794d8
- failed sol session activation crashes while logging exit
0794d8
0794d8
* Fri Nov 16 2012 Ales Ledvinka <aledvink@redhat.com> 1.8.12-6
0794d8
- revert default cipersuite back to 3 which includes integrity and confidentiality
0794d8
0794d8
* Thu Oct 18 2012 Dan Horák <dan[at]danny.cz> - 1.8.12-5
0794d8
- fix build on big endian arches
0794d8
0794d8
* Wed Oct 17 2012 Ales Ledvinka <aledvink@redhat.cz> 1.8.12-4
0794d8
- support setting OS name and Hostname on BMC
0794d8
0794d8
* Tue Sep 04 2012 Dan Horák <dan[at]danny.cz> - 1.8.12-3
0794d8
- fix build on big endian arches
0794d8
0794d8
* Mon Aug 27 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-2
0794d8
- Fixed starting ipmievd under systemd (#819234).
0794d8
- Updated RPM scriplets with latest systemd-rpm macros (#850161)
0794d8
0794d8
* Fri Aug 10 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-1
0794d8
- update to ipmitool-1.8.12
0794d8
0794d8
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-12
0794d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0794d8
0794d8
* Tue May 22 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.11-11
0794d8
- start ipmievd.service after ipmi (#819234)
0794d8
0794d8
* Thu Apr 26 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.11-10
0794d8
- fixed ipmievd.service systemd unit (#807757)
0794d8
0794d8
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-9
0794d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0794d8
0794d8
* Tue Dec 13 2011 Jan Safranek <jsafrane@redhat.com> - 1.8.11-8
0794d8
- fixed CVE-2011-4339
0794d8
0794d8
* Mon Sep 12 2011 Tom Callaway <spot@fedoraproject.org> - 1.8.11-7
0794d8
- convert to systemd
0794d8
0794d8
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-6
0794d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0794d8
0794d8
* Wed Mar  3 2010 Jan Safranek <jsafrane@redhat.com> - 1.8.11-5
0794d8
- Fixed exit code of ipmievd initscript with wrong arguments
0794d8
0794d8
* Mon Nov  2 2009 Jan Safranek  <jsafrane@redhat.com> 1.8.11-4
0794d8
- fix ipmievd initscript 'condrestart' action (#532188)
0794d8
0794d8
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.8.11-3
0794d8
- rebuilt with new openssl
0794d8
0794d8
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-2
0794d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0794d8
0794d8
* Thu Feb 26 2009 Jan Safranek <jsafrane@redhat.com> 1.8.11-1
0794d8
- updated to new version
0794d8
0794d8
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.10-4
0794d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0794d8
0794d8
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> 1.8.10-3
0794d8
- rebuild with new openssl
0794d8
0794d8
* Tue Oct 14 2008 Jan Safranek <jsafrane@redhat.com> 1.8.10-2
0794d8
- fix issues found during package review:
0794d8
  - clear Default-Start: line in the init script, the service should be 
0794d8
    disabled by default
0794d8
  - added Obsoletes: OpenIPMI-tools
0794d8
  - compile with --disable-dependency-tracking to speed things up
0794d8
  - compile with --enable-file-security
0794d8
  - compile with --disable-intf-free, don't depend on FreeIPMI libraries
0794d8
    (FreeIPMI has its own ipmitool-like utility)
0794d8
0794d8
* Mon Oct 13 2008 Jan Safranek <jsafrane@redhat.com> 1.8.10-1
0794d8
- package created, based on upstream .spec file