Blame SPECS/ipmitool.spec

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