Sisyphus repository
Last update: 17 december 2017 | SRPMs: 18242 | Visits: 10595216
en ru br
ALT Linux repos
S:0.3-alt2.264518.1

Group :: System/Kernel and hardware
RPM: kernel-modules-ipt-ratelimit-std-def

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define module_name             ipt-ratelimit
%define module_version          0.3
%define module_release alt2

%define flavour std-def
BuildRequires(pre): rpm-build-kernel
BuildRequires(pre): kernel-headers-modules-std-def

%setup_kernel_module %flavour

%define module_dir /lib/modules/%kversion-%flavour-%krelease/kernel/net/netfilter

Name: kernel-modules-%module_name-%flavour
Version: %module_version
Release: %module_release.%kcode.%kbuildrelease

Summary: Linux kernel module for ipt-ratelimit
License: GPLv2
Group: System/Kernel and hardware
Url: https://github.com/aabc/ipt-ratelimit

Packager: Kernel Maintainer Team <kernel at packages.altlinux.org>

ExclusiveOS: Linux
BuildRequires(pre): rpm-build-kernel cmake
BuildRequires: kernel-headers-modules-%flavour = %kepoch%kversion-%krelease
BuildRequires: kernel-source-iptables-ratelimit

Provides: kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release

PreReq: kernel-image-%flavour = %kepoch%kversion-%krelease
ExclusiveArch: %karch

%description
%module_name kernel module for ipt-ratelimit

%prep
rm -rf iptables-ratelimit-%module_version
tar -jxvf %kernel_src/iptables-ratelimit-%module_version.tar.bz2
%setup -D -T -n iptables-ratelimit-%module_version

%build
chmod +x version.sh
make KDIR=%_usrsrc/linux-%kversion-%flavour xt_ratelimit.ko

%install
install -pD -m600 xt_ratelimit.ko %buildroot%module_dir/xt_ratelimit.ko

%files
%module_dir/xt_ratelimit.ko

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin