Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37040735
en ru br
Репозитории ALT
S:1.6.11.1-alt1
5.1: 0.8.7-alt1
4.1: 0.5.5-alt1
4.0: 0.4.4-alt1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: freeipmi

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# vim: set ft=spec: -*- rpm-spec -*-

%define docdir %_defaultdocdir/%name-%version

Name: freeipmi
Version: 0.8.7
Release: alt1

Summary: GNU FreeIPMI - Intelligent Platform Management System
Group: Monitoring
License: GPL
Url: http://www.gnu.org/software/freeipmi/

PreReq: lib%name = %version-%release

Source: %name-%version.tar
Patch: %name-%version-%release.patch

# Automatically added by buildreq on Tue Apr 10 2007

BuildRequires: libgcrypt-devel

%description
This project provides "Remote-Console" (out-of-band) and
"System Management Software" (in-band) based on Intelligent
Platform Management Interface (IPMI v1.5/2.0) specification.

%package -n lib%name
Summary: FreeIPMI shared libraries
Group: System/Libraries

%description -n lib%name
FreeIPMI shared libraries.

%package -n lib%name-devel
Summary: GNU FreeIPMI development files
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
GNU FreeIPMI development files.

%package bmc-watchdog
Summary: GNU FreeIPMI BMC watchdog
Group: Monitoring
PreReq: lib%name = %version-%release

%description bmc-watchdog
Watchdog daemon for OS monitoring and recovery.

%package ipmidetectd
Summary: GNU FreeIPMI Detection daemon
Group: Monitoring
PreReq: lib%name = %version-%release

%description ipmidetectd
The ipmidetectd daemon regularly ipmipings remote nodes.
The ipmidetect tool and library will determine detected vs. undetected
ipmi systems based on the most recent ipmipings received.

%package doc
Summary: GNU FreeIPMI documentation
Group: Documentation
Conflicts: lib%name < %version-%release
Conflicts: lib%name > %version-%release

%description doc
GNU FreeIPMI documentation.

%prep
%setup
%add_optflags -D_GNU_SOURCE
%patch -p1

%build
%autoreconf

%configure \
--localstatedir=%_var \
--disable-static
%make_build

%install
%make_install DESTDIR=%buildroot \
docdir=%docdir \
install

find %buildroot%docdir/ -type f -size +4k \( -iname changelog\* -or -iname COPYING\* -or -iname \*ipmi\* \) -print0 |
xargs -r0 bzip2 -9f --

%post -n lib%name
touch %_localstatedir/%name/ipckey

%preun -n lib%name
[ "$1" -eq 0 ] && rm -f %_localstatedir/%name/ipckey ||: >/dev/null 2>&1

%post ipmidetectd
%post_service ipmidetectd

%preun ipmidetectd
%preun_service ipmidetectd

%post bmc-watchdog
%post_service bmc-watchdog

%preun bmc-watchdog
%preun_service bmc-watchdog

%files
%_sbindir/*
%exclude %_sbindir/bmc-watchdog
%exclude %_sbindir/ipmidetectd
%_man8dir/*.8*
%exclude %_man8dir/bmc-watchdog.8*
%exclude %_man8dir/*detectd*.8*
%_man5dir/*.5*
%exclude %_man5dir/*detectd*.5*
%config %_sysconfdir/ipmi_monitoring_sensors.conf
%config %_sysconfdir/freeipmi.conf
%_man7dir/*.7*

%files -n lib%name
%_libdir/lib*.so.*
%dir %_localstatedir/%name
%ghost %_localstatedir/%name/ipckey
%dir %_logdir/%name

%files -n lib%name-devel
%_libdir/lib*.so
%_includedir/*
%_man3dir/*

%files bmc-watchdog
%config %_initdir/bmc-watchdog
%config(noreplace) %_sysconfdir/sysconfig/bmc-watchdog
%_sysconfdir/logrotate.d/bmc-watchdog
%_sbindir/bmc-watchdog
%_man8dir/bmc-watchdog.8*

%files ipmidetectd
%_sbindir/ipmidetectd
%config %_initdir/ipmidetectd
%_man5dir/*detectd*.5*
%_man8dir/*detectd*.8*
%config %_sysconfdir/ipmidetectd.conf

%files doc
%docdir/*
%_infodir/%name-faq.info*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin