]> git.pld-linux.org Git - packages/ipmitool.git/blob - ipmitool.spec
- release 2 (by relup.sh)
[packages/ipmitool.git] / ipmitool.spec
1 Summary:        Simple command-line interface to systems that support the IPMI
2 Summary(pl.UTF-8):      Prosty interfejs do systemów obsługujących IPMI działający z linii poleceń
3 Name:           ipmitool
4 Version:        1.8.15
5 Release:        2
6 License:        BSD
7 Group:          Applications/System
8 Source0:        http://downloads.sourceforge.net/ipmitool/%{name}-%{version}.tar.gz
9 # Source0-md5:  770797da74a72afa45dea2c6114880e6
10 Source1:        %{name}-ipmievd.init
11 Source2:        %{name}-ipmievd.sysconfig
12 URL:            http://ipmitool.sourceforge.net/
13 BuildRequires:  autoconf >= 2.62
14 BuildRequires:  automake
15 BuildRequires:  libltdl-devel
16 BuildRequires:  libtool
17 BuildRequires:  rpmbuild(macros) >= 1.268
18 Suggests:       ipmi-init
19 Obsoletes:      ipmitool-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 IPMItool is a simple command-line interface to systems that support
24 the Intelligent Platform Management Interface (IPMI) v1.5 and v2.0
25 specification. It provides the ability to read the SDR and print
26 sensor values, display the contents of the SEL, print FRU information,
27 read and set LAN configuration parameters, and perform chassis power
28 control. Originally written to take advantage of IPMI-over-LAN
29 interfaces, it is also capable of using a system interface as provided
30 by a kernel device driver such as OpenIPMI.
31
32 %description -l pl.UTF-8
33 IPMItool to prosty, działający z linii poleceń interfejs do systemów
34 obsługujących specyfikację Intelligent Platform Management Interface
35 (IPMI) v1.5 i v2.0. Daje możliwość odczytu SDR i wypisania wartości
36 czujników, wyświetlenia zawartości SEL, wypisania informacji FRU,
37 odczytu i ustawiania parametrów konfiguracji LAN i sterowania
38 zasilaniem. Narzędzie napisano pierwotnie w celu wykorzystania
39 interfejsów IPMI-over-LAN, ale możliwe jest także używanie interfejsu
40 systemowego dostarczonego przez sterownik urządzenia w jądrze, taki
41 jak OpenIPMI.
42
43 %package ipmievd
44 Summary:        IPMI event daemon for sending events to syslog
45 Summary(pl.UTF-8):      Demon IPMI przesyłający zdarzenia do sysloga
46 Group:          Networking/Daemons
47 Requires(post,preun):   /sbin/chkconfig
48 Requires:       rc-scripts
49
50 %description ipmievd
51 ipmievd is a daemon which will listen for events from the BMC that are
52 being sent to the SEL and also log those messages to syslog.
53
54 %description ipmievd -l pl.UTF-8
55 ipmievd to demon, który nasłuchuje na zdarzenia z BMC, które są
56 wysyłane do SEL i loguje wiadomości do sysloga.
57
58 %prep
59 %setup -q
60
61 %build
62 %{__libtoolize} --ltdl
63 %{__aclocal}
64 %{__autoconf}
65 %{__autoheader}
66 %{__automake}
67 %configure \
68         --enable-shared \
69         --disable-static \
70         --enable-intf-bmc \
71         --enable-intf-free \
72         --enable-intf-imb \
73         --enable-intf-lan \
74         --enable-intf-lanplus \
75         --enable-intf-lipmi \
76         --enable-intf-open \
77         --enable-ipmishell
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
87 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ipmievd
88 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ipmievd
89
90 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post ipmievd
96 /sbin/chkconfig --add ipmievd
97 %service ipmievd restart
98
99 %preun ipmievd
100 if [ "$1" = "0" ]; then
101         %service ipmievd stop
102         /sbin/chkconfig --del ipmievd
103 fi
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS COPYING README ChangeLog
108 %attr(755,root,root) %{_bindir}/ipmitool
109 %{_datadir}/ipmitool
110 %{_mandir}/man1/ipmitool.1*
111
112 %files ipmievd
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_sbindir}/ipmievd
115 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ipmievd
116 %attr(754,root,root) /etc/rc.d/init.d/ipmievd
117 %{_mandir}/man8/ipmievd.8*
This page took 0.094951 seconds and 3 git commands to generate.