Changes of Revision 2
[-] | Added | apache2-mod_ip_count_modmemcache.spec |
x 1
2 +# 3 +# spec file for package apache2-mod_zrkadlo (Version 1.0) 4 +# 5 +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +%define apxs /usr/sbin/apxs2 15 +%define apache apache2 16 +%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) 17 +%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) 18 +%define apache_includedir %(%{apxs} -q INCLUDEDIR) 19 +%define apache_serverroot %(%{apxs} -q PREFIX) 20 +%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) 21 +%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) 22 + 23 +Name: apache2-mod_ip_count_modmemcache 24 +Summary: A 'DoS' prevention apache2 module, implemented using a memcache daemon 25 +BuildRequires: apache2-devel apache2-prefork 26 +BuildRequires: apache2-mod_memcache 27 +Version: 2.0 28 +Release: 8 29 +License: Apache License 30 +Group: Productivity/Networking/Web/Servers 31 +# http://feh.holsman.net 32 +#URL: http://svn.zilbo.com/svn/mod_ip_count/trunk/ 33 +URL: http://www.zilbo.com/ 34 +# my version that uses mod_memcache 35 +Source0: mod_ip_count_modmemcache.tar.gz 36 +Requires: apache2 %{apache_mmn} 37 +Requires: apache2-mod_memcache 38 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 39 + 40 +%description 41 +mod_ip_count is a DoS prevention apache module. It works by 42 +restricting the number of requests that a given client can issue 43 +to a server pool. It requires a memcache daemon. 44 + 45 +This package contains a version of mod_ip_count which is sligthly change to use 46 +mod_memcache for configuration and initialization of the memcache. 47 + 48 +%prep 49 +%setup -n mod_ip_count_modmemcache 50 + 51 +%build 52 +# the module ships a copy of apr_memcache, but aprutil 1.3 includes it already, 53 +# we have that in the buildsystem and use it directly. 54 +%{apxs} -c -Wc,"-Wall -g" mod_ip_count.c 55 + 56 +%install 57 +mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir} 58 +cp -p .libs/mod_ip_count.so $RPM_BUILD_ROOT/%{apache_libexecdir} 59 + 60 +%files 61 +%defattr(-,root,root) 62 +%doc README LICENSE NOTICE 63 +%{apache_libexecdir}/*.so 64 + 65 +%changelog 66 |