]> git.pld-linux.org Git - packages/apache-mod_cband.git/blame - apache-mod_cband.spec
- BR s@%{apxs}@apache-apxs@g
[packages/apache-mod_cband.git] / apache-mod_cband.spec
CommitLineData
11bc755d
AG
1%define mod_name cband
2%define apxs /usr/sbin/apxs
11bc755d 3Summary: Apache module: bandwidth limits per vhosts
246dd922 4Summary(pl.UTF-8): Moduł do Apache: limity pasma dla poszczególnych vhostów
11bc755d 5Name: apache-mod_%{mod_name}
23f55fc8
AG
6Version: 0.9.7.5
7Release: 1
11bc755d
AG
8License: Apache
9Group: Networking/Daemons
bbad1c5e 10Source0: http://cband.linux.pl/download/mod-%{mod_name}-%{version}.tgz
23f55fc8 11# Source0-md5: 5c5d65dc9abe6cdc6931b6dd33be5018
11bc755d 12Source1: %{name}.conf
11bc755d 13URL: http://cband.linux.pl/
e8cd63e8 14BuildRequires: apache-apxs >= 2.0
2d7b94ee 15BuildRequires: apache-devel >= 2.0.0
6bd986d3 16BuildRequires: rpmbuild(macros) >= 1.268
2d7b94ee 17Requires: apache(modules-api) = %apache_modules_api
11bc755d
AG
18Requires: crondaemon
19Requires: procps
11bc755d
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
2d7b94ee
ER
22%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
23%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
24
11bc755d
AG
25%description
26mod_cband is an Apache 2 module provided to solve the problem of
27limiting users' and virtualhosts' bandwidth usage. When the configured
28virtualhost's transfer limit is exceeded, mod_cband will redirect all
29further requests to a location specified in the configuration file.
30
61dea62d
JR
31%description -l pl.UTF-8
32mod_cband to moduł Apache'a 2 mający za zadanie ograniczanie zużycia
33pasma przez użytkowników i hosty wirtualne. Gdy określony limit
59120b67
JB
34zostanie przekroczony, mod_cband przekieruje wszelkie zapytania do
35strony wskazanej w pliku konfiguracyjnym.
11bc755d
AG
36
37%prep
bbad1c5e 38%setup -q -n mod-%{mod_name}-%{version}
11bc755d
AG
39
40%build
e9e8ee55 41%configure \
42 --with-apxs=%{apxs}
43%{__make}
11bc755d
AG
44
45%install
46rm -rf $RPM_BUILD_ROOT
47install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
48
e9e8ee55 49install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
11bc755d
AG
50install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/97_mod_%{mod_name}.conf
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
6bd986d3 56%service -q httpd restart
11bc755d 57
f7f21214 58%postun
11bc755d 59if [ "$1" = "0" ]; then
6bd986d3 60 %service -q httpd restart
11bc755d
AG
61fi
62
63%files
64%defattr(644,root,root,755)
7d90467d 65%doc AUTHORS Changes INSTALL conf/*.example
11bc755d 66%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*mod_*.conf
fe1fffc5 67%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.075012 seconds and 4 git commands to generate.