Logoj0ke.net Open Build Service > Projects > Apache:Modules > apache2-mod_limitipconn > Changes
Sign Up | Log In

Changes of Revision 6

[-] Added apache2-mod_limitipconn.spec
x
 
1
@@ -0,0 +1,39 @@
2
+%define mod_name mod_limitipconn
3
+%define version 0.22
4
+%define apxs /usr/sbin/apxs2
5
+%define apache apache2
6
+%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
7
+%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
8
+%define apache_includedir %(%{apxs} -q INCLUDEDIR)
9
+%define apache_serverroot %(%{apxs} -q PREFIX)
10
+%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR)
11
+%define apache_mmn        %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
12
+
13
+BuildRequires:     apache2-devel
14
+Summary:   Limit simultaneous connections by an IP address
15
+Name:          apache2-mod_limitipconn
16
+Version:   %{version}
17
+Release:   1
18
+License:   X11
19
+Group:     Networking/Daemons
20
+Source:        http://sc.dominia.org/~djao/%{mod_name}-%{version}.tar.gz
21
+Packager:  David Jao <djao@dominia.org>
22
+
23
+%description
24
+The mod_limitipconn module lets you enforce limits on the number of
25
+simultaneous downloads allowed from a single IP address. You can also
26
+control which MIME types are affected by the limits.
27
+
28
+%prep
29
+%setup -n %{mod_name}-%{version}
30
+
31
+%build
32
+%{apxs} -c %{mod_name}.c
33
+
34
+%install
35
+%{__install} -Dd -m 0755 %{buildroot}%{apache_libexecdir}
36
+cp -p .libs/%{mod_name}.so %{buildroot}%{apache_libexecdir}/%{mod_name}.so
37
+
38
+%files
39
+%doc README ChangeLog INSTALL
40
+%{apache_libexecdir}/%{mod_name}.so
41