2024-01-05 23:58:07 +01:00
|
|
|
Name: ipvsadm
|
2024-01-05 23:58:07 +01:00
|
|
|
Version: 1.31
|
|
|
|
Release: 2mamba
|
2024-01-05 23:58:07 +01:00
|
|
|
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
|
2024-01-05 23:58:07 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: ldconfig
|
|
|
|
BuildRequires: libnl-devel
|
|
|
|
BuildRequires: libpopt-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: kernelheaders
|
2024-01-05 23:58:07 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-05 23:58:07 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 23:58:07 +01:00
|
|
|
%prep
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-01-05 23:58:07 +01:00
|
|
|
make MANDIR=%{_mandir}
|
|
|
|
#INCLUDE="-I/usr/src/linux-`uname -r`/include -I.. -I."
|
2024-01-05 23:58:07 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-05 23:58:07 +01:00
|
|
|
* Thu Feb 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.31-2mamba
|
|
|
|
- added debug package
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Automatic Build System <autodist@mambasoft.it> 1.31-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:58:07 +01:00
|
|
|
* Sat Jan 14 2017 Automatic Build System <autodist@mambasoft.it> 1.29-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:58:07 +01:00
|
|
|
* Tue Mar 10 2015 Automatic Build System <autodist@mambasoft.it> 1.28-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 23:58:07 +01:00
|
|
|
* 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
|