Changes of Revision 2
[-] | Added | apache2-mod_cband.spec |
x 1
2 +# norootforbuild 3 + 4 +%define mod_name mod_cband 5 +%define apxs %{_sbindir}/apxs2 6 +%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) 7 +%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) 8 +%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) 9 +# 10 +Name: apache2-mod_cband 11 +Version: 0.9.7.5 12 +Release: 1 13 +# 14 +License: GPL 15 +Group: Productivity/Networking/Web/Servers 16 +# 17 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 18 +BuildRequires: apache2-devel 19 +Requires: apache2 %{apache_mmn} 20 +# 21 +URL: http://cband.linux.pl 22 +Source: http://cband.linux.pl/download/mod-cband-%{version}.tgz 23 +Patch: mod-cband-0.9.7.3_install.patch 24 +# 25 +Summary: Apache 2 Bandwidth Quota and Throttling. 26 +%description 27 +mod_cband is an Apache 2 module provided to solve the problem of limiting 28 +users' and virtualhosts' bandwidth usage. The current versions can set 29 +virtualhosts' and users' bandwidth quotas, maximal download speed (like in 30 +mod_bandwidth), requests-per-second speed and the maximal number of simultanous 31 +IP connections (like in mod_limitipconn) 32 + 33 +I advise using mod_cband by hosting companies, which would like to limit data 34 +transfer for their users, such as "10 Gb of traffic per month". There already 35 +exists the mod_curb module, which can limit data transfers, but it doesn't work 36 +with virtualhosts and Apache 2, so I wrote my own module fully compatible with 37 +Apache 2 API and supporting per-user and per-virtualhost bandwidth limiting 38 + 39 + 40 + 41 + Authors: 42 +---------- 43 + * Lukasz Dembinski <dembol@cband.linux.pl> 44 + * Sergey V. Beduev <shaman@interdon.net> 45 + * Kyle Poulter <kyle@unixowns.us> 46 + * J. Kendzorra <kenzo@kenzo.homelinux.org> 47 + * Adam Dawidowski <drake@oomkill.net> 48 + * Arvind Srinivasan <arvind@madtux.org> 49 + 50 +%debug_package 51 +%prep 52 +%setup -n mod-cband-%{version} 53 +%patch 54 + 55 +%build 56 +%configure --with-apxs=%{apxs} 57 +%{__make} 58 + 59 +%install 60 +%{__install} -Dd -m 0755 %{buildroot}%{apache_libexecdir} 61 +%makeinstall APXS_INST_FLAGS="-S LIBEXECDIR=%{buildroot}%{apache_libexecdir}" 62 + 63 +%clean 64 +%{__rm} -rf "%{buildroot}" 65 + 66 +%files 67 +%defattr(-,root,root) 68 +%{apache_libexecdir}/%{mod_name}.so 69 +%doc libpatricia.copyright LICENSE Changes AUTHORS INSTALL 70 +%doc conf/ doc/* 71 + 72 |