ipvsadm/ipvsadm.spec

92 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

Name: ipvsadm
Version: 1.28
Release: 1mamba
Summary: User space tools for IPVS (IP Virtual Server)
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.linuxvirtualserver.org
Source: https://www.kernel.org/pub/linux/utils/kernel/ipvsadm/ipvsadm-%{version}.tar.xz
Source1: ipvsadm-initscript
Source2: ipvsadm-sysconfig
License: GPL
BuildRequires: kernelsource
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
IPVS (IP Virtual Server) implements transport-layer load balancing inside the Linux kernel, so called Layer-4 switching. IPVS running on a host acts as a load balancer before a cluster of real servers, it can direct requests for TCP/UDP based services to the real servers, and makes services of the real servers to appear as a virtual service on a single IP address.
This package contains the user space tools for IPVS.
%prep
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%setup -q
%build
make MANDIR=%{_mandir} INCLUDE="-I/usr/src/linux-`uname -r`/include -I.. -I."
%install
make install BUILD_ROOT=%{buildroot} MANDIR=%{_mandir}
mkdir -p %{buildroot}%{_initrddir}
install -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/ipvsadm
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/ipvsadm
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
/sbin/*
%{_mandir}/man8/*
%{_initrddir}/ipvsadm
%config(noreplace) %{_sysconfdir}/sysconfig/ipvsadm
%preun
if [ $1 -eq 0 ]; then
#erase
chkconfig ipvsadm
if test $? -eq 0; then
%{_initrddir}/ipvsadm stop
chkconfig --del ipvsadm
fi
fi
%postun
if [ $1 -eq 1 ]; then
#update
chkconfig ipvsadm
test $? -eq 0 && %{_initrddir}/ipvsadm restart
fi
%changelog
* Tue Mar 10 2015 Automatic Build System <autodist@mambasoft.it> 1.28-1mamba
- automatic version update by autodist
* Sat Sep 14 2013 Automatic Build System <autodist@mambasoft.it> 1.27-1mamba
- update to 1.27
* Mon Feb 14 2011 Automatic Build System <autodist@mambasoft.it> 1.26-1mamba
- automatic update by autodist
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.25-2mamba
- rebuilt to remove executable requirements
* Mon Jan 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.25-1mamba
- automatic update by autodist
* Mon Jul 16 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.24-1mamba
- update to 1.24
* Wed Apr 28 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21-2qilnx
- fixed initscript for chkconfig
* Wed Apr 28 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21-2qilnx
- added initscript
* Tue Apr 27 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21-1qilnx
- first build