Group :: System/Libraries
RPM: iptables-ratelimit
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: iptables-ratelimit
Version: 0.3.3
Release: alt1
Summary: ipt-ratelimit module implements traffic policing
Group: System/Libraries
Packager: Alexei Takaseev <taf at altlinux.ru>
License: GPLv2
Url: https://github.com/aabc/ipt-ratelimit
Source0: %name-%version.tar
Patch0: %name-%version-%release.patch
BuildRequires: iptables-devel
BuildPreReq: rpm-build-kernel
%description
ipt-ratelimit module implements traffic policing (i.e. limiting traffic bit
rate) using, standard for this purpose, token bucket filter (TBF) algorithm.
Particular implementation is based on FreeBSD's implementation of Cisco's TBF
with extended burst value (which is used to implement RED-like drop
behavior)
%package -n kernel-source-%name
Summary: Kernel module for ipt-ratelimit
License: GPLv2
Group: Development/Kernel
BuildArch: noarch
%description -n kernel-source-%name
Provide ipt-ratelimit kernel module
%prep
%setup
%patch0 -p1
tar -cjf ../%name-%version.tar.bz2 ../%name-%version
%build
make libxt_ratelimit.so
%install
make linstall DESTDIR=%buildroot
mkdir -p %kernel_srcdir
install -pDm0644 ../%name-%version.tar.bz2 %kernel_srcdir/%name-%version.tar.bz2
%files
%doc CREDITS NEWS README
/%_lib/iptables/*.so
%files -n kernel-source-%name
%attr(0644,root,root) %kernel_src/%name-%version.tar.bz2
%changelog
…
Full changelog you can see here
Version: 0.3.3
Release: alt1
Summary: ipt-ratelimit module implements traffic policing
Group: System/Libraries
Packager: Alexei Takaseev <taf at altlinux.ru>
License: GPLv2
Url: https://github.com/aabc/ipt-ratelimit
Source0: %name-%version.tar
Patch0: %name-%version-%release.patch
BuildRequires: iptables-devel
BuildPreReq: rpm-build-kernel
%description
ipt-ratelimit module implements traffic policing (i.e. limiting traffic bit
rate) using, standard for this purpose, token bucket filter (TBF) algorithm.
Particular implementation is based on FreeBSD's implementation of Cisco's TBF
with extended burst value (which is used to implement RED-like drop
behavior)
%package -n kernel-source-%name
Summary: Kernel module for ipt-ratelimit
License: GPLv2
Group: Development/Kernel
BuildArch: noarch
%description -n kernel-source-%name
Provide ipt-ratelimit kernel module
%prep
%setup
%patch0 -p1
tar -cjf ../%name-%version.tar.bz2 ../%name-%version
%build
make libxt_ratelimit.so
%install
make linstall DESTDIR=%buildroot
mkdir -p %kernel_srcdir
install -pDm0644 ../%name-%version.tar.bz2 %kernel_srcdir/%name-%version.tar.bz2
%files
%doc CREDITS NEWS README
/%_lib/iptables/*.so
%files -n kernel-source-%name
%attr(0644,root,root) %kernel_src/%name-%version.tar.bz2
%changelog
…
Full changelog you can see here