2007-01-16 00:17:42 +01:00
|
|
|
#
|
2011-09-14 14:03:22 +02:00
|
|
|
# spec file for package ipmitool
|
2007-01-16 00:17:42 +01:00
|
|
|
#
|
2020-02-11 14:59:06 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-16 00:17:42 +01:00
|
|
|
#
|
2008-09-13 02:28:41 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-02-11 14:59:06 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:17:42 +01:00
|
|
|
#
|
|
|
|
|
2008-09-13 02:28:41 +02:00
|
|
|
|
2007-01-16 00:17:42 +01:00
|
|
|
Name: ipmitool
|
2020-02-11 13:28:03 +01:00
|
|
|
Version: 1.8.18+git20200204.7ccea28
|
2017-08-03 17:45:57 +02:00
|
|
|
Release: 0
|
2007-01-16 00:17:42 +01:00
|
|
|
Summary: Utility for IPMI Control
|
2013-02-28 14:23:24 +01:00
|
|
|
License: BSD-3-Clause
|
2007-01-16 00:17:42 +01:00
|
|
|
Group: System/Management
|
2020-02-11 14:59:06 +01:00
|
|
|
URL: https://github.com/ipmitool/ipmitool
|
2018-10-01 15:06:42 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2014-02-17 16:39:37 +01:00
|
|
|
Source1: ipmievd.service
|
|
|
|
Source2: ipmievd.sysconf
|
2018-10-01 15:06:42 +02:00
|
|
|
Source3: enterprise-numbers
|
|
|
|
Patch0: fwum_enhance_output.patch
|
|
|
|
Patch1: fix_file_permissions.patch
|
|
|
|
Patch2: several_more_compile_fixes.patch
|
|
|
|
Patch3: ipmitool_adjust_suse_paths.patch
|
|
|
|
Patch4: hpm_x_compatibility_msg_is_debug_only.patch
|
2020-02-11 13:28:03 +01:00
|
|
|
Patch5: autotools_define_DOWNLOAD.diff
|
2017-08-03 17:45:57 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2019-09-03 16:20:27 +02:00
|
|
|
# Taken over from freeipmi.spec:
|
|
|
|
# Necessary as only those archs implement iopl and friends (#368541)
|
|
|
|
%ifarch %{ix86} x86_64 ia64 alpha aarch64
|
|
|
|
BuildRequires: freeipmi-devel
|
|
|
|
%endif
|
2014-02-17 16:39:37 +01:00
|
|
|
%{?systemd_requires}
|
2007-01-16 00:17:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a utility for interfacing with devices that
|
2017-08-03 17:45:57 +02:00
|
|
|
support the Intelligent Platform Management Interface specification.
|
2007-01-16 00:17:42 +01:00
|
|
|
IPMI is an open standard for machine health, inventory, and remote
|
|
|
|
power control.
|
|
|
|
|
|
|
|
This utility can communicate with IPMI-enabled devices through either a
|
|
|
|
kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in
|
|
|
|
the IPMI specification. IPMIv2 adds support for encrypted LAN
|
|
|
|
communications and remote Serial-over-LAN functionality.
|
|
|
|
|
|
|
|
It provides commands for reading the Sensor Data Repository (SDR) and
|
|
|
|
displaying sensor values, displaying the contents of the System Event
|
|
|
|
Log (SEL), printing Field Replaceable Unit (FRU) information, reading
|
|
|
|
and setting LAN configuration, and chassis power control.
|
|
|
|
|
2018-06-29 14:54:20 +02:00
|
|
|
%package bmc-snmp-proxy
|
2018-07-31 23:39:12 +02:00
|
|
|
Summary: SNMP configuration to include the BMC's SNMP agent
|
2020-02-11 14:59:06 +01:00
|
|
|
Group: System/Management
|
|
|
|
Requires: net-snmp, ipmitool >= %{version}
|
|
|
|
BuildArch: noarch
|
2018-06-29 14:54:20 +02:00
|
|
|
|
|
|
|
%description bmc-snmp-proxy
|
|
|
|
Given a host with BMC, this package would extend system configuration
|
|
|
|
of net-snmp to include redirections to BMC based SNMP.
|
|
|
|
|
2007-01-16 00:17:42 +01:00
|
|
|
%prep
|
2008-10-14 19:04:59 +02:00
|
|
|
%setup -q
|
2017-08-03 17:45:57 +02:00
|
|
|
%autopatch -p1
|
2007-01-16 00:17:42 +01:00
|
|
|
|
|
|
|
%build
|
2018-10-01 15:06:42 +02:00
|
|
|
cp %{SOURCE3} lib
|
2008-10-14 19:04:59 +02:00
|
|
|
autoreconf -fiv
|
2017-08-03 17:45:57 +02:00
|
|
|
# file-security: enables more security checks on files
|
2019-09-03 16:20:27 +02:00
|
|
|
%configure \
|
|
|
|
--enable-file-security \
|
|
|
|
--enable-intf-usb
|
2017-08-03 17:45:57 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:17:42 +01:00
|
|
|
|
|
|
|
%install
|
2017-08-03 17:45:57 +02:00
|
|
|
%make_install
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/ipmitool
|
2014-02-17 16:39:37 +01:00
|
|
|
|
2020-02-11 14:59:06 +01:00
|
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/misc/enterprise-numbers
|
2020-02-11 13:28:03 +01:00
|
|
|
|
2017-08-03 17:45:57 +02:00
|
|
|
# exchange-bmc-os-info service
|
|
|
|
install -D -m 0755 contrib/exchange-bmc-os-info.init.redhat %{buildroot}/%{_sbindir}/exchange-bmc-os-info
|
|
|
|
install -D -m 0644 contrib/exchange-bmc-os-info.service.redhat %{buildroot}%{_unitdir}/exchange-bmc-os-info.service
|
|
|
|
install -D -m 0644 contrib/exchange-bmc-os-info.sysconf %{buildroot}/%{_sysconfdir}/exchange-bmc-os-info
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcexchange-bmc-os-info
|
2014-02-17 16:39:37 +01:00
|
|
|
|
|
|
|
# ipmievd service
|
2017-08-03 17:45:57 +02:00
|
|
|
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/ipmievd.service
|
|
|
|
install -D -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/ipmievd
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcipmievd
|
2014-02-17 16:39:37 +01:00
|
|
|
|
|
|
|
# bmc-snmp-proxy
|
2017-08-03 17:45:57 +02:00
|
|
|
install -D -m 755 contrib/bmc-snmp-proxy %{buildroot}/%{_sbindir}/bmc-snmp-proxy
|
|
|
|
install -D -m 644 contrib/bmc-snmp-proxy.service %{buildroot}%{_unitdir}/bmc-snmp-proxy.service
|
|
|
|
install -D -m 755 contrib/bmc-snmp-proxy.sysconf %{buildroot}/%{_sysconfdir}/bmc-snmp-proxy
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcbmc-snmp-proxy
|
2007-01-16 00:17:42 +01:00
|
|
|
|
2014-02-17 16:39:37 +01:00
|
|
|
%pre
|
2018-06-29 14:54:20 +02:00
|
|
|
%service_add_pre exchange-bmc-os-info.service ipmievd.service
|
2014-02-17 16:39:37 +01:00
|
|
|
|
|
|
|
%post
|
2018-06-29 14:54:20 +02:00
|
|
|
%service_add_post exchange-bmc-os-info.service ipmievd.service
|
2014-02-17 16:39:37 +01:00
|
|
|
|
|
|
|
%preun
|
2018-06-29 14:54:20 +02:00
|
|
|
%service_del_preun exchange-bmc-os-info.service ipmievd.service
|
2014-02-17 16:39:37 +01:00
|
|
|
|
|
|
|
%postun
|
2018-06-29 14:54:20 +02:00
|
|
|
%service_del_postun exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
|
|
|
%pre bmc-snmp-proxy
|
|
|
|
%service_add_pre bmc-snmp-proxy.service
|
|
|
|
|
|
|
|
%post bmc-snmp-proxy
|
|
|
|
%service_add_post bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
|
|
|
%preun bmc-snmp-proxy
|
|
|
|
%service_del_preun bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
|
|
|
%postun bmc-snmp-proxy
|
2014-02-17 16:39:37 +01:00
|
|
|
%service_del_postun bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service
|
|
|
|
|
2007-01-16 00:17:42 +01:00
|
|
|
%files
|
2020-02-11 13:28:03 +01:00
|
|
|
%doc AUTHORS README ChangeLog
|
|
|
|
%license COPYING
|
2008-09-13 02:28:41 +02:00
|
|
|
%{_datadir}/ipmitool
|
2014-02-17 16:39:37 +01:00
|
|
|
%attr(755,root,root) %{_bindir}/ipmitool
|
|
|
|
%attr(755,root,root) %{_sbindir}/ipmievd
|
|
|
|
%attr(755,root,root) %{_sbindir}/exchange-bmc-os-info
|
2015-01-23 15:20:01 +01:00
|
|
|
%{_sbindir}/rcipmievd
|
|
|
|
%{_sbindir}/rcexchange-bmc-os-info
|
2014-02-17 16:39:37 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/exchange-bmc-os-info
|
|
|
|
%config(noreplace) %{_sysconfdir}/ipmievd
|
2017-08-03 17:45:57 +02:00
|
|
|
%{_unitdir}/exchange-bmc-os-info.service
|
|
|
|
%{_unitdir}/ipmievd.service
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man8/*
|
2020-02-11 14:59:06 +01:00
|
|
|
%{_datadir}/misc/enterprise-numbers
|
2007-01-16 00:17:42 +01:00
|
|
|
|
2018-06-29 14:54:20 +02:00
|
|
|
%files bmc-snmp-proxy
|
|
|
|
%attr(755,root,root) %{_sbindir}/bmc-snmp-proxy
|
|
|
|
%{_sbindir}/rcbmc-snmp-proxy
|
|
|
|
%config(noreplace) %{_sysconfdir}/bmc-snmp-proxy
|
|
|
|
%{_unitdir}/bmc-snmp-proxy.service
|
|
|
|
|
2007-03-07 21:27:10 +01:00
|
|
|
%changelog
|