- pl description
[packages/apache-mod_vhost_limit.git] / apache-mod_vhost_limit.spec
1 %define         mod_name        vhost_limit
2 %define         apxs            /usr/sbin/apxs
3 Summary:        Apache module: vhost_limit limits
4 Summary(pl):    Modu³ do apache: limity pasma dla serwerów wirtualnych
5 Name:           apache-mod_%{mod_name}
6 Version:        0.4
7 Release:        1
8 License:        Apache
9 Group:          Networking/Daemons
10 Source0:        http://www.nowhere-land.org/programs/mod_vhost_limit/mod_%{mod_name}-%{version}.tar.gz
11 URL:            http://www.nowhere-land.org/programs/mod_vhost_limit/
12 BuildRequires:  apache(EAPI)-devel
13 Requires(post,preun):   %{apxs}
14 Requires(post,preun):   grep
15 Requires(preun):        fileutils
16 Requires:       apache(EAPI)
17 Requires:       crondaemon
18 Requires:       procps
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
22 %define         _sysconfdir     /etc/httpd
23
24 %description
25 This is the module for Apache Web Server to restrict the number of
26 simultaneous connections per a virtual host.
27
28 %description -l pl
29 Ten pakiet zawiera modu³ dla serwera WWW Apache s³u¿±cy do
30 ograniczania liczby jednoczesnych po³±czeñ dla serwerów wirtualnych.
31
32 %prep
33 %setup -q -n mod_%{mod_name}-%{version}
34
35 %build
36 %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
41
42 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 %{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
49 if [ -f /var/lock/subsys/httpd ]; then
50         /etc/rc.d/init.d/httpd restart 1>&2
51 fi
52
53 %preun
54 if [ "$1" = "0" ]; then
55         %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
56         if [ -f /var/lock/subsys/httpd ]; then
57                 /etc/rc.d/init.d/httpd restart 1>&2
58         fi
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc */*html
64 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.03643 seconds and 3 git commands to generate.