- allows limiting max clients on per vhost basis
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 19 Nov 2006 00:35:32 +0000 (00:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_vhost_limit.spec -> 1.5

apache-mod_vhost_limit.spec [new file with mode: 0644]

diff --git a/apache-mod_vhost_limit.spec b/apache-mod_vhost_limit.spec
new file mode 100644 (file)
index 0000000..120c34f
--- /dev/null
@@ -0,0 +1,45 @@
+%define                mod_name        vhost_limit
+%define        apxs            /usr/sbin/apxs
+Summary:       Apache module: clients restriction per vhost
+Name:          apache-mod_%{mod_name}
+Version:       0.1
+Release:       1
+License:       Apache
+Group:         Networking/Daemons
+Source0:       http://apache.ivn.cl/files/source/mod_vhost_limit-%{version}.tgz
+# Source0-md5: 58e86dfe8f3813f693652ee6740c1c1b
+URL:           http://apache.ivn.cl/#vhostlimit
+BuildRequires: %{apxs}
+BuildRequires: apache-devel >= 2.0.0
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
+Requires:      apache(modules-api) = %apache_modules_api
+Requires:      crondaemon
+Requires:      procps
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+
+%description
+Restrict the number of simultaneous connections per vhost.
+
+%prep
+%setup -q -n mod_vhost_limit-%{version}
+
+%build
+%{apxs} -c mod_vhost_limit.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pkglibdir}
+
+libtool install mod_vhost_limit.la $RPM_BUILD_ROOT%{_pkglibdir}/
+rm -rf $RPM_BUILD_ROOT%{_pkglibdir}/*.{l,}a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.065716 seconds and 4 git commands to generate.