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