2011-10-18 09:05:58 +00:00
|
|
|
#
|
2012-03-19 10:56:23 +00:00
|
|
|
# spec file for package freeipmi
|
|
|
|
#
|
2013-02-28 08:23:16 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-10-18 09:05:58 +00:00
|
|
|
# Copyright (c) 2003-2008 FreeIPMI Core Team
|
|
|
|
#
|
2012-03-19 10:56:23 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
|
|
|
|
%define name freeipmi
|
- FreeIPMI 1.3.1 - 08/22/13
Tools - New Features
--------------------
o In all tools reporting time (ipmi-sel, ipmi-fru, ipmi-oem,
bmc-device, ipmi-sensors, ipmi-dcmi), timestamps are now reporting
under the assumption the timestamp is already in localtime (compared
to being in UTC time and converted to localtime). This is by
definition in the IPMI specification.
o In all tools reporting time (ipmi-sel, ipmi-fru, ipmi-oem,
bmc-device, ipmi-sensors, ipmi-dcmi), support --utc-to-localtime,
--localtime-to-utc, and --utc-offset options to allow users to
adjust timestamps as needed for certain environments.
o In ipmi-fru, support output of DDR3 SDRAM modules.
o In ipmi-fru, support output of new FRU multirecords, most notably
extended DC output and extended DC load (per FRU Revision 1.2
update).
o In bmc-device, support --get-sel-time-utc-offset and
--set-sel-time-utc-offset.
Tools - Bug Fixes/Minor Changes
-------------------------------
o In ipmi-fru, report power supply low/high end voltage ranges as
signed numbers (per FRU Revision 1.2 update).
o In ipmi-fru, output "unspecified" for manufacturing date/time or
peak capacity as appropriate (per FRU Revision 1.2 update).
o In ipmi-fru, bridge additional FRU entries as appropriate.
o In all tools reporting time (ipmi-sel, ipmi-fru, ipmi-oem,
bmc-device, ipmi-sensors, ipmi-dcmi), special timestamps such as
Post-Init and Unspecified will now be output.
o Fix output corner case with entity sensor names in various tools.
Libraries
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=28
2013-08-26 07:12:26 +00:00
|
|
|
%define version 1.3.1
|
2011-10-18 09:05:58 +00:00
|
|
|
%if %{?_with_debug:1}%{!?_with_debug:0}
|
|
|
|
%define release 1.debug%{?dist}
|
|
|
|
%else
|
|
|
|
%define release 1%{?dist}
|
|
|
|
%endif
|
|
|
|
|
2012-07-04 13:30:03 +00:00
|
|
|
%{!?_initddir: %global _initddir %{_sysconfdir}/init.d}
|
|
|
|
|
2012-03-19 10:56:23 +00:00
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
|
|
|
Url: http://www.gnu.org/software/freeipmi/
|
2013-06-24 08:52:11 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2012-05-08 08:34:30 +00:00
|
|
|
Summary: FreeIPMI
|
2012-06-29 07:19:46 +00:00
|
|
|
License: GPL-3.0+
|
- FreeIPMI 1.2.3 - 11/14/12
-------------------------
Tools
------
o In ipmi-oem, support new Dell Poweredge R720 OEM commands extensions,
including:
- get-nic-selection-failover
- set-nic-selection-failover
- power-monitoring-over-interval
- power-monitoring-interval-range
- get-last-post-code
o In ipmi-oem, update active-lom-status for Dell Poweredge R720.
o In ipmi-oem, support new Dell Poweredge R720 get-system-info option
'cmc-info'.
o In ipmi-oem, Dell get-system-info "slot-number" key changed to
"blade-slot-info". Legacy option still supported.
o In ipmi-sel, support Dell Poweredge R720 OEM SEL extensions.
o In all tools, support nochecksumcheck workaround option.
o In all daemons (ipmiseld, ipmidetectd, bmc-watchdog), check for
syscall errors during daemon setup.
Libraries
---------
o In libfreeipmi, support Dell R720 OEM extension intepretations.
o In libfreeipmi, libipmimonitoring, and libipmiconsole, support
NO_CHECKSUM_CHECK workaround flag.
o In libipmiconsole, IPMICONSOLE_DEBUG_FILE logs debug to files in
current working directory and not /var/log. PID is also appended
to debug files.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=16
2012-11-15 11:54:06 +00:00
|
|
|
Group: System/Management
|
2012-05-08 08:34:30 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: texinfo
|
2012-10-04 14:16:53 +00:00
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
|
2012-05-08 08:34:30 +00:00
|
|
|
Obsoletes: freeipmi-ipmimonitoring
|
2012-03-19 10:56:23 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-10-18 09:05:58 +00:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
|
|
|
# Necessary as only those archs implement iopl and friends (#368541)
|
2012-03-19 10:56:23 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64 ia64 alpha
|
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
%description
|
2012-03-06 16:23:13 +00:00
|
|
|
This project provides "Remote-Console" (out-of-band) and
|
2011-10-18 09:05:58 +00:00
|
|
|
"System Management Software" (in-band) based on Intelligent
|
|
|
|
Platform Management Interface specification.
|
|
|
|
|
|
|
|
%package devel
|
2012-03-19 10:56:23 +00:00
|
|
|
Summary: Development package for FreeIPMI
|
|
|
|
Group: Development/System
|
2012-05-08 08:34:30 +00:00
|
|
|
Requires: freeipmi = %{version}
|
2012-03-19 10:56:23 +00:00
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
%description devel
|
|
|
|
Development package for FreeIPMI. This package includes the FreeIPMI
|
|
|
|
header files and static libraries.
|
|
|
|
|
|
|
|
%package bmc-watchdog
|
2012-03-19 10:56:23 +00:00
|
|
|
Summary: FreeIPMI BMC watchdog
|
- FreeIPMI 1.2.3 - 11/14/12
-------------------------
Tools
------
o In ipmi-oem, support new Dell Poweredge R720 OEM commands extensions,
including:
- get-nic-selection-failover
- set-nic-selection-failover
- power-monitoring-over-interval
- power-monitoring-interval-range
- get-last-post-code
o In ipmi-oem, update active-lom-status for Dell Poweredge R720.
o In ipmi-oem, support new Dell Poweredge R720 get-system-info option
'cmc-info'.
o In ipmi-oem, Dell get-system-info "slot-number" key changed to
"blade-slot-info". Legacy option still supported.
o In ipmi-sel, support Dell Poweredge R720 OEM SEL extensions.
o In all tools, support nochecksumcheck workaround option.
o In all daemons (ipmiseld, ipmidetectd, bmc-watchdog), check for
syscall errors during daemon setup.
Libraries
---------
o In libfreeipmi, support Dell R720 OEM extension intepretations.
o In libfreeipmi, libipmimonitoring, and libipmiconsole, support
NO_CHECKSUM_CHECK workaround flag.
o In libipmiconsole, IPMICONSOLE_DEBUG_FILE logs debug to files in
current working directory and not /var/log. PID is also appended
to debug files.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=16
2012-11-15 11:54:06 +00:00
|
|
|
Group: System/Management
|
2011-10-18 09:05:58 +00:00
|
|
|
%if 0%{?suse_version}
|
2012-05-08 08:34:30 +00:00
|
|
|
Requires(pre): %fillup_prereq
|
2011-10-18 09:05:58 +00:00
|
|
|
%endif
|
2012-05-08 08:34:30 +00:00
|
|
|
Requires: freeipmi = %{version}
|
2011-10-18 09:05:58 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
%endif
|
2012-03-19 10:56:23 +00:00
|
|
|
Requires: logrotate
|
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
%description bmc-watchdog
|
|
|
|
Provides a watchdog daemon for OS monitoring and recovery.
|
|
|
|
|
|
|
|
%package ipmidetectd
|
2012-03-19 10:56:23 +00:00
|
|
|
Summary: IPMI node detection monitoring daemon
|
- FreeIPMI 1.2.3 - 11/14/12
-------------------------
Tools
------
o In ipmi-oem, support new Dell Poweredge R720 OEM commands extensions,
including:
- get-nic-selection-failover
- set-nic-selection-failover
- power-monitoring-over-interval
- power-monitoring-interval-range
- get-last-post-code
o In ipmi-oem, update active-lom-status for Dell Poweredge R720.
o In ipmi-oem, support new Dell Poweredge R720 get-system-info option
'cmc-info'.
o In ipmi-oem, Dell get-system-info "slot-number" key changed to
"blade-slot-info". Legacy option still supported.
o In ipmi-sel, support Dell Poweredge R720 OEM SEL extensions.
o In all tools, support nochecksumcheck workaround option.
o In all daemons (ipmiseld, ipmidetectd, bmc-watchdog), check for
syscall errors during daemon setup.
Libraries
---------
o In libfreeipmi, support Dell R720 OEM extension intepretations.
o In libfreeipmi, libipmimonitoring, and libipmiconsole, support
NO_CHECKSUM_CHECK workaround flag.
o In libipmiconsole, IPMICONSOLE_DEBUG_FILE logs debug to files in
current working directory and not /var/log. PID is also appended
to debug files.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=16
2012-11-15 11:54:06 +00:00
|
|
|
Group: System/Management
|
2012-05-08 08:34:30 +00:00
|
|
|
Requires: freeipmi = %{version}
|
2011-10-18 09:05:58 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
%endif
|
2012-03-19 10:56:23 +00:00
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
%description ipmidetectd
|
2012-03-06 16:23:13 +00:00
|
|
|
This service detects and monitors IPMI nodes.
|
2011-10-18 09:05:58 +00:00
|
|
|
|
|
|
|
%if %{?_with_debug:1}%{!?_with_debug:0}
|
|
|
|
%define _enable_debug --enable-debug --enable-trace
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2012-07-30 19:01:21 +00:00
|
|
|
%if 0%{?suse_version} >= 1110
|
2011-10-18 09:05:58 +00:00
|
|
|
aclocal -I config
|
|
|
|
autoheader
|
|
|
|
libtoolize --force --automake --copy
|
|
|
|
autoconf
|
2012-07-04 13:19:13 +00:00
|
|
|
automake --gnu --include-deps --copy --add-missing
|
|
|
|
%endif
|
- FreeIPMI 1.2.3 - 11/14/12
-------------------------
Tools
------
o In ipmi-oem, support new Dell Poweredge R720 OEM commands extensions,
including:
- get-nic-selection-failover
- set-nic-selection-failover
- power-monitoring-over-interval
- power-monitoring-interval-range
- get-last-post-code
o In ipmi-oem, update active-lom-status for Dell Poweredge R720.
o In ipmi-oem, support new Dell Poweredge R720 get-system-info option
'cmc-info'.
o In ipmi-oem, Dell get-system-info "slot-number" key changed to
"blade-slot-info". Legacy option still supported.
o In ipmi-sel, support Dell Poweredge R720 OEM SEL extensions.
o In all tools, support nochecksumcheck workaround option.
o In all daemons (ipmiseld, ipmidetectd, bmc-watchdog), check for
syscall errors during daemon setup.
Libraries
---------
o In libfreeipmi, support Dell R720 OEM extension intepretations.
o In libfreeipmi, libipmimonitoring, and libipmiconsole, support
NO_CHECKSUM_CHECK workaround flag.
o In libipmiconsole, IPMICONSOLE_DEBUG_FILE logs debug to files in
current working directory and not /var/log. PID is also appended
to debug files.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=16
2012-11-15 11:54:06 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
|
|
%define docpath %{_docdir}/%{name}-%{version}
|
|
|
|
%else
|
|
|
|
%define docpath %{_docdir}/%{name}
|
|
|
|
%endif
|
2011-10-18 09:05:58 +00:00
|
|
|
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
|
- FreeIPMI 1.2.3 - 11/14/12
-------------------------
Tools
------
o In ipmi-oem, support new Dell Poweredge R720 OEM commands extensions,
including:
- get-nic-selection-failover
- set-nic-selection-failover
- power-monitoring-over-interval
- power-monitoring-interval-range
- get-last-post-code
o In ipmi-oem, update active-lom-status for Dell Poweredge R720.
o In ipmi-oem, support new Dell Poweredge R720 get-system-info option
'cmc-info'.
o In ipmi-oem, Dell get-system-info "slot-number" key changed to
"blade-slot-info". Legacy option still supported.
o In ipmi-sel, support Dell Poweredge R720 OEM SEL extensions.
o In all tools, support nochecksumcheck workaround option.
o In all daemons (ipmiseld, ipmidetectd, bmc-watchdog), check for
syscall errors during daemon setup.
Libraries
---------
o In libfreeipmi, support Dell R720 OEM extension intepretations.
o In libfreeipmi, libipmimonitoring, and libipmiconsole, support
NO_CHECKSUM_CHECK workaround flag.
o In libipmiconsole, IPMICONSOLE_DEBUG_FILE logs debug to files in
current working directory and not /var/log. PID is also appended
to debug files.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=16
2012-11-15 11:54:06 +00:00
|
|
|
--docdir=%{docpath} \
|
2011-10-18 09:05:58 +00:00
|
|
|
%{?_enable_debug} --disable-static
|
2012-05-08 08:34:30 +00:00
|
|
|
CFLAGS="%{optflags}" make %{?_smp_mflags}
|
2011-10-18 09:05:58 +00:00
|
|
|
|
|
|
|
%install
|
2012-05-08 08:34:30 +00:00
|
|
|
mkdir -p %{buildroot}
|
2011-10-18 09:05:58 +00:00
|
|
|
|
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
|
|
# /etc/rc.d/init.d
|
2012-05-08 08:34:30 +00:00
|
|
|
mkdir -p %{buildroot}/%{_initddir}
|
2011-10-18 09:05:58 +00:00
|
|
|
# 'make install' installs to /etc/init.d
|
|
|
|
# /etc/init.d -> /etc/rc.d/init.d
|
2012-05-08 08:34:30 +00:00
|
|
|
(cd %{buildroot}/%{_sysconfdir}; ln -s rc.d/init.d init.d)
|
2011-10-18 09:05:58 +00:00
|
|
|
%endif
|
|
|
|
|
2012-07-30 19:01:21 +00:00
|
|
|
%if 0%{?suse_version}
|
2012-07-04 13:19:13 +00:00
|
|
|
%makeinstall
|
2012-07-30 19:01:21 +00:00
|
|
|
%else
|
- FreeIPMI 1.2.3 - 11/14/12
-------------------------
Tools
------
o In ipmi-oem, support new Dell Poweredge R720 OEM commands extensions,
including:
- get-nic-selection-failover
- set-nic-selection-failover
- power-monitoring-over-interval
- power-monitoring-interval-range
- get-last-post-code
o In ipmi-oem, update active-lom-status for Dell Poweredge R720.
o In ipmi-oem, support new Dell Poweredge R720 get-system-info option
'cmc-info'.
o In ipmi-oem, Dell get-system-info "slot-number" key changed to
"blade-slot-info". Legacy option still supported.
o In ipmi-sel, support Dell Poweredge R720 OEM SEL extensions.
o In all tools, support nochecksumcheck workaround option.
o In all daemons (ipmiseld, ipmidetectd, bmc-watchdog), check for
syscall errors during daemon setup.
Libraries
---------
o In libfreeipmi, support Dell R720 OEM extension intepretations.
o In libfreeipmi, libipmimonitoring, and libipmiconsole, support
NO_CHECKSUM_CHECK workaround flag.
o In libipmiconsole, IPMICONSOLE_DEBUG_FILE logs debug to files in
current working directory and not /var/log. PID is also appended
to debug files.
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=16
2012-11-15 11:54:06 +00:00
|
|
|
make install DESTDIR=%{buildroot}
|
2012-07-30 19:01:21 +00:00
|
|
|
%endif
|
2011-10-18 09:05:58 +00:00
|
|
|
|
2012-03-06 16:23:13 +00:00
|
|
|
# Silent build check warning
|
2012-07-30 19:01:21 +00:00
|
|
|
rm -f %{buildroot}%{_datadir}/doc/packages/freeipmi/INSTALL
|
2012-03-06 16:23:13 +00:00
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
|
|
# remove /etc/init.d -> /etc/rc.d/init.d
|
2012-05-08 08:34:30 +00:00
|
|
|
(cd %{buildroot}/%{_sysconfdir}; rm init.d)
|
2011-10-18 09:05:58 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
# fix coherance problems with associated script filenames
|
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
|
|
|
# kludge to get around rpmlint complaining about 0 length semephore file
|
2012-07-30 19:01:21 +00:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/freeipmi
|
2011-10-18 09:05:58 +00:00
|
|
|
echo freeipmi > %{buildroot}%{_localstatedir}/lib/freeipmi/ipckey
|
|
|
|
# Remove .la files
|
2012-05-08 08:34:30 +00:00
|
|
|
rm -rf %{buildroot}/%{_libdir}/*.la
|
2011-10-18 09:05:58 +00:00
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2012-05-08 08:34:30 +00:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
|
|
mv %{buildroot}%{_sysconfdir}/sysconfig/bmc-watchdog %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.bmc-watchdog
|
2011-10-18 09:05:58 +00:00
|
|
|
%endif
|
|
|
|
|
2012-10-04 14:16:53 +00:00
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
%fdupes $RPM_BUILD_ROOT
|
|
|
|
%endif
|
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
%clean
|
2012-05-08 08:34:30 +00:00
|
|
|
rm -rf %{buildroot}
|
2011-10-18 09:05:58 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
if [ -x /sbin/install-info ]; then
|
|
|
|
#/sbin/install-info %{_infodir}/freeipmi.info.gz %{_infodir}/dir
|
|
|
|
/sbin/install-info %{_infodir}/freeipmi-faq.info.gz %{_infodir}/dir
|
|
|
|
fi
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
if [ -x /sbin/install-info ]; then
|
|
|
|
#/sbin/install-info --delete %{_infodir}/freeipmi.info.gz %{_infodir}/dir
|
|
|
|
/sbin/install-info --delete %{_infodir}/freeipmi-faq.info.gz %{_infodir}/dir
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post bmc-watchdog
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%{fillup_only}
|
|
|
|
%endif
|
|
|
|
if [ "$1" = 1 ]; then
|
2012-05-08 08:34:30 +00:00
|
|
|
if [ -x %{_initddir}/bmc-watchdog ]; then
|
2011-10-18 09:05:58 +00:00
|
|
|
/sbin/chkconfig --add bmc-watchdog
|
|
|
|
/sbin/chkconfig bmc-watchdog off
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ $1 -ge 1 ]; then
|
2012-05-08 08:34:30 +00:00
|
|
|
if [ -x %{_initddir}/bmc-watchdog ]; then
|
|
|
|
if %{_initddir}/bmc-watchdog status | grep -q running; then
|
|
|
|
%{_initddir}/bmc-watchdog restart
|
2011-10-18 09:05:58 +00:00
|
|
|
else
|
2012-05-08 08:34:30 +00:00
|
|
|
%{_initddir}/bmc-watchdog condrestart
|
2011-10-18 09:05:58 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun bmc-watchdog
|
|
|
|
#
|
2012-05-08 08:34:30 +00:00
|
|
|
# Stop bmc-watchdog if it is running
|
2011-10-18 09:05:58 +00:00
|
|
|
#
|
|
|
|
if [ "$1" = 0 ]; then
|
2012-05-08 08:34:30 +00:00
|
|
|
if [ -x %{_initddir}/bmc-watchdog ]; then
|
|
|
|
if %{_initddir}/bmc-watchdog status | grep -q running; then
|
|
|
|
%{_initddir}/bmc-watchdog stop
|
2011-10-18 09:05:58 +00:00
|
|
|
fi
|
|
|
|
/sbin/chkconfig --del bmc-watchdog
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%post ipmidetectd
|
|
|
|
if [ "$1" = 1 ]; then
|
2012-05-08 08:34:30 +00:00
|
|
|
if [ -x %{_initddir}/ipmidetectd ]; then
|
2011-10-18 09:05:58 +00:00
|
|
|
/sbin/chkconfig --add ipmidetectd
|
|
|
|
/sbin/chkconfig ipmidetectd off
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ $1 -ge 1 ]; then
|
2012-05-08 08:34:30 +00:00
|
|
|
if [ -x %{_initddir}/ipmidetectd ]; then
|
|
|
|
if %{_initddir}/ipmidetectd status | grep -q running; then
|
|
|
|
%{_initddir}/ipmidetectd restart
|
2011-10-18 09:05:58 +00:00
|
|
|
else
|
2012-05-08 08:34:30 +00:00
|
|
|
%{_initddir}/ipmidetectd condrestart
|
2011-10-18 09:05:58 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%preun ipmidetectd
|
|
|
|
#
|
2012-05-08 08:34:30 +00:00
|
|
|
# Stop ipmidetectd if it is running
|
2011-10-18 09:05:58 +00:00
|
|
|
#
|
|
|
|
if [ "$1" = 0 ]; then
|
2012-05-08 08:34:30 +00:00
|
|
|
if [ -x %{_initddir}/ipmidetectd ]; then
|
|
|
|
if %{_initddir}/ipmidetectd status | grep -q running; then
|
|
|
|
%{_initddir}/ipmidetectd stop
|
2011-10-18 09:05:58 +00:00
|
|
|
fi
|
|
|
|
/sbin/chkconfig --del ipmidetectd
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# %attr(0444,root,root) %config(noreplace) %{_sysconfdir}/ipmi_monitoring_sensors.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/freeipmi/freeipmi.conf
|
|
|
|
%dir %{_sysconfdir}/freeipmi
|
2012-03-06 16:23:13 +00:00
|
|
|
%config %{_sysconfdir}/freeipmi/freeipmi_interpret_sel.conf
|
|
|
|
%config %{_sysconfdir}/freeipmi/freeipmi_interpret_sensor.conf
|
|
|
|
%config %{_sysconfdir}/freeipmi/ipmidetect.conf
|
|
|
|
%config %{_sysconfdir}/freeipmi/libipmiconsole.conf
|
2011-10-18 09:05:58 +00:00
|
|
|
%doc AUTHORS
|
|
|
|
%doc COPYING
|
|
|
|
%doc ChangeLog
|
|
|
|
%doc ChangeLog.0
|
2012-03-06 16:23:13 +00:00
|
|
|
# doc INSTALL
|
2011-10-18 09:05:58 +00:00
|
|
|
%doc NEWS
|
|
|
|
%doc README
|
|
|
|
%doc TODO
|
|
|
|
%doc %{_infodir}/*
|
|
|
|
%doc COPYING.ipmiping
|
|
|
|
%doc COPYING.ipmipower
|
|
|
|
%doc COPYING.ipmiconsole
|
|
|
|
%doc COPYING.ipmimonitoring
|
|
|
|
%doc COPYING.pstdout
|
|
|
|
%doc COPYING.ipmidetect
|
|
|
|
%doc COPYING.ipmi-fru
|
|
|
|
%doc COPYING.ZRESEARCH
|
|
|
|
%doc DISCLAIMER.ipmiping
|
|
|
|
%doc DISCLAIMER.ipmipower
|
|
|
|
%doc DISCLAIMER.ipmiconsole
|
2012-10-04 14:16:53 +00:00
|
|
|
%doc DISCLAIMER.ipmidetect
|
2011-10-18 09:05:58 +00:00
|
|
|
%doc DISCLAIMER.ipmimonitoring
|
|
|
|
%doc DISCLAIMER.pstdout
|
|
|
|
%doc DISCLAIMER.ipmi-fru
|
|
|
|
%doc DISCLAIMER.ipmiping.UC
|
|
|
|
%doc DISCLAIMER.ipmipower.UC
|
|
|
|
%doc DISCLAIMER.ipmiconsole.UC
|
|
|
|
%doc DISCLAIMER.ipmimonitoring.UC
|
|
|
|
%doc DISCLAIMER.pstdout.UC
|
|
|
|
%doc DISCLAIMER.ipmidetect.UC
|
|
|
|
%doc DISCLAIMER.ipmi-fru.UC
|
|
|
|
%doc doc/freeipmi-coding.txt
|
|
|
|
%doc doc/freeipmi-hostrange.txt
|
|
|
|
%doc doc/freeipmi-libraries.txt
|
|
|
|
%doc doc/freeipmi-bugs-issues-and-workarounds.txt
|
|
|
|
#%dir %{_docdir}
|
2012-11-16 13:40:39 +00:00
|
|
|
#%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
|
|
|
|
#%{_docdir}
|
|
|
|
#%endif
|
2012-10-04 14:16:53 +00:00
|
|
|
%config %{_sysconfdir}/freeipmi/ipmiseld.conf
|
|
|
|
%{_initddir}/ipmiseld
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_libdir}/libipmiconsole*so.*
|
|
|
|
%{_libdir}/libipmidetect*so.*
|
2012-10-04 14:16:53 +00:00
|
|
|
%{_libdir}/libfreeipmi*so.*
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_libdir}/libipmimonitoring.so.*
|
|
|
|
%{_localstatedir}/lib/*
|
|
|
|
%{_sbindir}/bmc-config
|
|
|
|
%{_sbindir}/bmc-info
|
|
|
|
%{_sbindir}/bmc-device
|
|
|
|
%{_sbindir}/ipmi-fru
|
|
|
|
%{_sbindir}/ipmi-locate
|
|
|
|
%{_sbindir}/ipmi-oem
|
|
|
|
%{_sbindir}/ipmi-pef-config
|
|
|
|
%{_sbindir}/pef-config
|
|
|
|
%{_sbindir}/ipmi-raw
|
|
|
|
%{_sbindir}/ipmi-sel
|
2012-10-04 14:16:53 +00:00
|
|
|
%{_sbindir}/ipmiseld
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_sbindir}/ipmi-sensors
|
|
|
|
%{_sbindir}/ipmi-sensors-config
|
|
|
|
%{_sbindir}/ipmiping
|
|
|
|
%{_sbindir}/ipmipower
|
|
|
|
%{_sbindir}/ipmiconsole
|
|
|
|
%{_sbindir}/ipmimonitoring
|
|
|
|
%{_sbindir}/ipmi-chassis
|
|
|
|
%{_sbindir}/ipmi-chassis-config
|
|
|
|
%{_sbindir}/ipmi-dcmi
|
|
|
|
%{_sbindir}/ipmidetect
|
|
|
|
%{_sbindir}/ipmi-console
|
|
|
|
%{_sbindir}/ipmi-detect
|
|
|
|
%{_sbindir}/ipmi-ping
|
|
|
|
%{_sbindir}/ipmi-power
|
|
|
|
%{_sbindir}/rmcp-ping
|
|
|
|
%{_sbindir}/rmcpping
|
2012-03-06 16:23:13 +00:00
|
|
|
%{_sbindir}/ipmi-pet
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_mandir}/man8/bmc-config.8*
|
|
|
|
%{_mandir}/man5/bmc-config.conf.5*
|
|
|
|
%{_mandir}/man8/bmc-info.8*
|
|
|
|
%{_mandir}/man8/bmc-device.8*
|
|
|
|
%{_mandir}/man8/ipmi-fru.8*
|
|
|
|
%{_mandir}/man8/ipmi-locate.8*
|
|
|
|
%{_mandir}/man8/ipmi-pef-config.8*
|
|
|
|
%{_mandir}/man8/pef-config.8*
|
|
|
|
%{_mandir}/man8/ipmi-oem.8*
|
|
|
|
%{_mandir}/man8/ipmi-raw.8*
|
|
|
|
%{_mandir}/man8/ipmi-sel.8*
|
|
|
|
%{_mandir}/man8/ipmi-sensors.8*
|
|
|
|
%{_mandir}/man8/ipmi-sensors-config.8*
|
|
|
|
%{_mandir}/man8/ipmiping.8*
|
|
|
|
%{_mandir}/man8/ipmipower.8*
|
|
|
|
%{_mandir}/man5/ipmipower.conf.5*
|
|
|
|
%{_mandir}/man8/ipmiconsole.8*
|
|
|
|
%{_mandir}/man5/ipmiconsole.conf.5*
|
|
|
|
%{_mandir}/man8/ipmimonitoring.8*
|
|
|
|
%{_mandir}/man5/ipmi_monitoring_sensors.conf.5*
|
|
|
|
%{_mandir}/man5/ipmimonitoring_sensors.conf.5*
|
|
|
|
%{_mandir}/man5/ipmimonitoring.conf.5*
|
|
|
|
%{_mandir}/man5/libipmimonitoring.conf.5*
|
|
|
|
%{_mandir}/man8/ipmi-chassis.8*
|
|
|
|
%{_mandir}/man8/ipmi-chassis-config.8*
|
|
|
|
%{_mandir}/man8/ipmi-dcmi.8*
|
|
|
|
%{_mandir}/man8/ipmidetect.8*
|
|
|
|
%{_mandir}/man5/freeipmi.conf.5*
|
|
|
|
%{_mandir}/man5/ipmidetect.conf.5*
|
|
|
|
%{_mandir}/man7/freeipmi.7*
|
|
|
|
%{_mandir}/man8/rmcp-ping.8*
|
|
|
|
%{_mandir}/man8/rmcpping.8*
|
|
|
|
%{_mandir}/man5/freeipmi_interpret_sel.conf.5*
|
|
|
|
%{_mandir}/man5/freeipmi_interpret_sensor.conf.5*
|
|
|
|
%{_mandir}/man5/libipmiconsole.conf.5*
|
2012-10-04 14:16:53 +00:00
|
|
|
%{_mandir}/man5/ipmiseld.conf.5*
|
|
|
|
%{_mandir}/man8/ipmiseld.8*
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_mandir}/man8/ipmi-console.8*
|
|
|
|
%{_mandir}/man8/ipmi-detect.8*
|
|
|
|
%{_mandir}/man8/ipmi-ping.8*
|
|
|
|
%{_mandir}/man8/ipmi-power.8*
|
2012-03-06 16:23:13 +00:00
|
|
|
%{_mandir}/man8/ipmi-pet.8*
|
2011-10-18 09:05:58 +00:00
|
|
|
%dir %{_localstatedir}/cache/ipmimonitoringsdrcache
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libipmiconsole.so
|
|
|
|
%{_libdir}/libfreeipmi.so
|
|
|
|
%{_libdir}/libipmidetect.so
|
|
|
|
%{_libdir}/libipmimonitoring.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%dir %{_includedir}/freeipmi
|
|
|
|
%dir %{_includedir}/freeipmi/api
|
|
|
|
%dir %{_includedir}/freeipmi/cmds
|
|
|
|
%dir %{_includedir}/freeipmi/debug
|
|
|
|
%dir %{_includedir}/freeipmi/driver
|
|
|
|
%dir %{_includedir}/freeipmi/fiid
|
2012-10-04 14:16:53 +00:00
|
|
|
%dir %{_includedir}/freeipmi/fru
|
2011-10-18 09:05:58 +00:00
|
|
|
%dir %{_includedir}/freeipmi/interface
|
|
|
|
%dir %{_includedir}/freeipmi/interpret
|
|
|
|
%dir %{_includedir}/freeipmi/locate
|
|
|
|
%dir %{_includedir}/freeipmi/payload
|
|
|
|
%dir %{_includedir}/freeipmi/record-format
|
2012-10-04 14:16:53 +00:00
|
|
|
%dir %{_includedir}/freeipmi/sdr
|
|
|
|
%dir %{_includedir}/freeipmi/sel
|
2011-10-18 09:05:58 +00:00
|
|
|
%dir %{_includedir}/freeipmi/sensor-read
|
|
|
|
%dir %{_includedir}/freeipmi/spec
|
|
|
|
%dir %{_includedir}/freeipmi/templates
|
|
|
|
%dir %{_includedir}/freeipmi/util
|
2012-03-19 10:56:23 +00:00
|
|
|
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_includedir}/ipmiconsole.h
|
|
|
|
%{_includedir}/ipmidetect.h
|
|
|
|
%{_includedir}/ipmi_monitoring.h
|
|
|
|
%{_includedir}/ipmi_monitoring_bitmasks.h
|
|
|
|
%{_includedir}/ipmi_monitoring_offsets.h
|
|
|
|
%{_includedir}/freeipmi/*.h
|
|
|
|
%{_includedir}/freeipmi/api/*.h
|
|
|
|
%{_includedir}/freeipmi/cmds/*.h
|
|
|
|
%{_includedir}/freeipmi/debug/*.h
|
|
|
|
%{_includedir}/freeipmi/driver/*.h
|
|
|
|
%{_includedir}/freeipmi/fiid/*.h
|
2012-10-04 14:16:53 +00:00
|
|
|
%{_includedir}/freeipmi/fru/*.h
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_includedir}/freeipmi/interface/*.h
|
|
|
|
%{_includedir}/freeipmi/interpret/ipmi-interpret.h
|
|
|
|
%{_includedir}/freeipmi/locate/*.h
|
|
|
|
%{_includedir}/freeipmi/payload/ipmi-sol-payload.h
|
|
|
|
%{_includedir}/freeipmi/record-format/*.h
|
2012-10-04 14:16:53 +00:00
|
|
|
%{_includedir}/freeipmi/sdr/*.h
|
|
|
|
%{_includedir}/freeipmi/sel/*.h
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_includedir}/freeipmi/sensor-read/*.h
|
|
|
|
%{_includedir}/freeipmi/spec/*.h
|
|
|
|
%{_includedir}/freeipmi/templates/*.h
|
|
|
|
%{_includedir}/freeipmi/util/*.h
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%files bmc-watchdog
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING.bmc-watchdog
|
|
|
|
%doc DISCLAIMER.bmc-watchdog
|
|
|
|
%doc DISCLAIMER.bmc-watchdog.UC
|
2012-05-08 08:34:30 +00:00
|
|
|
%config(noreplace) %{_initddir}/bmc-watchdog
|
2011-10-18 09:05:58 +00:00
|
|
|
%if 0%{?suse_version}
|
2012-05-08 08:34:30 +00:00
|
|
|
%attr(0444,root,root) %config(noreplace) %{_localstatedir}/adm/fillup-templates/sysconfig.bmc-watchdog
|
2011-10-18 09:05:58 +00:00
|
|
|
%else
|
|
|
|
%attr(0444,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/bmc-watchdog
|
|
|
|
%endif
|
2012-10-04 14:16:53 +00:00
|
|
|
# %attr(0444,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/bmc-watchdog
|
2011-10-18 09:05:58 +00:00
|
|
|
%{_sbindir}/bmc-watchdog
|
|
|
|
%{_mandir}/man8/bmc-watchdog.8*
|
2012-10-04 14:16:53 +00:00
|
|
|
# %dir %{_localstatedir}/log/freeipmi
|
2011-10-18 09:05:58 +00:00
|
|
|
|
|
|
|
%files ipmidetectd
|
|
|
|
%defattr(-,root,root)
|
2012-05-08 08:34:30 +00:00
|
|
|
%config(noreplace) %{_initddir}/ipmidetectd
|
2011-10-18 09:05:58 +00:00
|
|
|
%attr(0444,root,root) %config(noreplace) %{_sysconfdir}/freeipmi/ipmidetectd.conf
|
|
|
|
%{_sbindir}/ipmidetectd
|
|
|
|
%{_mandir}/man5/ipmidetectd.conf.5*
|
|
|
|
%{_mandir}/man8/ipmidetectd.8*
|
|
|
|
|
|
|
|
%changelog
|