- split ipmitool to separate package
- add 'reload' functionality to init script Resolves: #177970
This commit is contained in:
parent
9e8e57ea1b
commit
c0c5af5fe1
@ -3,19 +3,16 @@
|
|||||||
Summary: OpenIPMI (Intelligent Platform Management Interface) library and tools
|
Summary: OpenIPMI (Intelligent Platform Management Interface) library and tools
|
||||||
Name: OpenIPMI
|
Name: OpenIPMI
|
||||||
Version: 2.0.14
|
Version: 2.0.14
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: BSD and BSD with advertising and LGPLv2+ and GPLv2+
|
License: BSD and BSD with advertising and LGPLv2+ and GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://sourceforge.net/projects/openipmi/
|
URL: http://sourceforge.net/projects/openipmi/
|
||||||
Source: http://downloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
|
||||||
Source2: http://downloads.sourceforge.net/ipmitool/ipmitool-%{ipmitoolver}.tar.gz
|
Source1: openipmi.sysconf
|
||||||
Source3: openipmi.sysconf
|
Source2: openipmi.initscript
|
||||||
Source4: openipmi.initscript
|
|
||||||
Patch100: ipmitool-1.8.9-open.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel
|
BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel
|
||||||
BuildRequires: openssl-devel python-devel readline-devel popt-devel
|
BuildRequires: openssl-devel python-devel perl-devel chrpath
|
||||||
BuildRequires: perl-devel chrpath
|
|
||||||
Requires(post): chkconfig
|
Requires(post): chkconfig
|
||||||
Requires(preun): chkconfig
|
Requires(preun): chkconfig
|
||||||
|
|
||||||
@ -32,14 +29,6 @@ Summary: The OpenIPMI runtime libraries
|
|||||||
The OpenIPMI-libs package contains the runtime libraries for shared binaries
|
The OpenIPMI-libs package contains the runtime libraries for shared binaries
|
||||||
and applications.
|
and applications.
|
||||||
|
|
||||||
%package tools
|
|
||||||
Group: Applications/System
|
|
||||||
Summary: OpenIPMI utilities and scripts from ipmitool
|
|
||||||
|
|
||||||
%description tools
|
|
||||||
The OpenIPMI-tools package contains the addon utilities and script from the
|
|
||||||
ipmitool project.
|
|
||||||
|
|
||||||
%package perl
|
%package perl
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: OpenIPMI Perl language bindings
|
Summary: OpenIPMI Perl language bindings
|
||||||
@ -66,24 +55,13 @@ The OpenIPMI-devel package contains the development libraries and header files
|
|||||||
of the OpenIPMI project.
|
of the OpenIPMI project.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 2
|
%setup -q
|
||||||
pushd ipmitool-%{ipmitoolver}
|
|
||||||
%patch100 -p1 -b .open
|
|
||||||
for f in AUTHORS ChangeLog; do
|
|
||||||
iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8
|
|
||||||
mv ${f}.utf8 ${f}
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS=-fPIC
|
export CFLAGS=-fPIC
|
||||||
%configure --with-pythoninstall=%{python_sitearch}
|
%configure --with-pythoninstall=%{python_sitearch} --disable-dependency-tracking --with-tcl=no --with-tkinter=no
|
||||||
sed -i 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
|
sed -i 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
|
||||||
make
|
make
|
||||||
pushd ipmitool-%{ipmitoolver}
|
|
||||||
%configure
|
|
||||||
make
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -95,15 +73,11 @@ rm -rf $RPM_BUILD_ROOT/usr/lib
|
|||||||
%endif
|
%endif
|
||||||
# Remove rpaths from libOpenIPMIposix.so.0.0.1
|
# Remove rpaths from libOpenIPMIposix.so.0.0.1
|
||||||
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libOpenIPMIposix.so.0.0.1
|
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libOpenIPMIposix.so.0.0.1
|
||||||
pushd ipmitool-%{ipmitoolver}
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
#rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/
|
|
||||||
popd
|
|
||||||
|
|
||||||
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||||
install -m 644 %SOURCE3 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/ipmi
|
install -m 644 %SOURCE1 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/ipmi
|
||||||
install -d ${RPM_BUILD_ROOT}%{_initrddir}
|
install -d ${RPM_BUILD_ROOT}%{_initrddir}
|
||||||
install -m 755 %SOURCE4 ${RPM_BUILD_ROOT}%{_initrddir}/ipmi
|
install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}%{_initrddir}/ipmi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add ipmi
|
/sbin/chkconfig --add ipmi
|
||||||
@ -140,7 +114,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/solterm
|
%{_bindir}/solterm
|
||||||
%{_mandir}/man1/ipmi_ui*
|
%{_mandir}/man1/ipmi_ui*
|
||||||
%{_mandir}/man1/openipmicmd*
|
%{_mandir}/man1/openipmicmd*
|
||||||
%{_mandir}/man1/openipmigui*
|
|
||||||
%{_mandir}/man1/openipmish*
|
%{_mandir}/man1/openipmish*
|
||||||
%{_mandir}/man1/rmcp_ping*
|
%{_mandir}/man1/rmcp_ping*
|
||||||
%{_mandir}/man1/solterm*
|
%{_mandir}/man1/solterm*
|
||||||
@ -155,15 +128,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files python
|
%files python
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/python*/site-packages/*
|
%{_libdir}/python*/site-packages/*OpenIPMI*
|
||||||
|
|
||||||
%files tools
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/ipmitool
|
|
||||||
%{_mandir}/man1/ipmitool*
|
|
||||||
%{_mandir}/man8/ipmievd*
|
|
||||||
%{_datadir}/doc/ipmitool
|
|
||||||
/usr/sbin/ipmievd
|
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -171,13 +136,16 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_mandir}/man7/*
|
|
||||||
%{_includedir}/OpenIPMI
|
%{_includedir}/OpenIPMI
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 16 2008 Jan Safranek <jsafrane@redhat.com> - 2.0.14-3
|
||||||
|
- split ipmitool to separate package
|
||||||
|
- add 'reload' functionality to init script
|
||||||
|
|
||||||
* Wed Jul 30 2008 Phil Knirsch <pknirsch@redhat.com> - 2.0.14-2
|
* Wed Jul 30 2008 Phil Knirsch <pknirsch@redhat.com> - 2.0.14-2
|
||||||
- Fixed rpath problem in libOpenIPMIposix.so.0.0.1
|
- Fixed rpath problem in libOpenIPMIposix.so.0.0.1
|
||||||
|
|
||||||
|
@ -464,6 +464,15 @@ restart()
|
|||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
|
reload()
|
||||||
|
{
|
||||||
|
stop_all
|
||||||
|
RETVAL=0
|
||||||
|
start
|
||||||
|
}
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
status_all()
|
status_all()
|
||||||
{
|
{
|
||||||
minimum_modules_loaded
|
minimum_modules_loaded
|
||||||
@ -552,6 +561,7 @@ case "$1" in
|
|||||||
start) start ;;
|
start) start ;;
|
||||||
stop) stop ;;
|
stop) stop ;;
|
||||||
restart) restart ;;
|
restart) restart ;;
|
||||||
|
reload) reload ;;
|
||||||
status) status ;;
|
status) status ;;
|
||||||
status-all) status_all ;;
|
status-all) status_all ;;
|
||||||
condrestart) condrestart ;;
|
condrestart) condrestart ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user