SPECS: apache-mod_cband.spec (NEW) - new, not tested yet

adamg adamg at pld-linux.org
Sat Sep 10 20:52:44 CEST 2005


Author: adamg                        Date: Sat Sep 10 18:52:44 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, not tested yet

---- Files affected:
SPECS:
   apache-mod_cband.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/apache-mod_cband.spec
diff -u /dev/null SPECS/apache-mod_cband.spec:1.1
--- /dev/null	Sat Sep 10 20:52:44 2005
+++ SPECS/apache-mod_cband.spec	Sat Sep 10 20:52:38 2005
@@ -0,0 +1,86 @@
+# $Revision$, $Date$
+%define		mod_name	cband
+%define 	apxs		/usr/sbin/apxs
+%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR)
+%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR)
+
+Summary:	Apache module: bandwidth limits per vhosts
+Summary(pl):	Moduł do Apache: limity pasma per vhosty
+Name:		apache-mod_%{mod_name}
+Version:	0.9.1
+Release:	0.1
+License:	Apache
+Group:		Networking/Daemons
+Source0:	http://cband.linux.pl/download/mod_%{mod_name}-%{version}.tgz
+# Source0-md5:	8f00b72f194719ee99d52a6175a74dbb
+Source1:	%{name}.conf
+Source2:	%{name}.conf.examples
+URL:		http://cband.linux.pl/
+BuildRequires:	apache-devel >= 2.0.0
+BuildRequires:	%{apxs}
+Requires(post,preun):	%{apxs}
+Requires(post,preun):	grep
+Requires(preun):	fileutils
+Requires:	apache >= 2.0.0
+Requires:	crondaemon
+Requires:	procps
+Obsoletes:	apache-mod_%{mod_name} <= %{version}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+mod_cband is an Apache 2 module provided to solve the problem of
+limiting users' and virtualhosts' bandwidth usage. When the configured
+virtualhost's transfer limit is exceeded, mod_cband will redirect all
+further requests to a location specified in the configuration file.
+
+%description -l pl
+mod_cband to moduł mający za zadanie ograniczanie zużycia pasma przez
+użytkowników i virtualhostów. Gdy określony limit zostanie
+przekroczony, mod_cband przekieruje wszelkie zapytania do strony
+wskazanej w pliku konfiguracyjnym.
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+cp %{SOURCE2} .
+
+%build
+%{apxs} -c mod_%{mod_name}.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/97_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /var/lock/subsys/apache ]; then
+	/etc/rc.d/init.d/apache restart 1>&2
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+	umask 027
+	if [ -f /var/lock/subsys/apache ]; then
+		/etc/rc.d/init.d/apache restart 1>&2
+	fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc *.examples
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*mod_*.conf
+%attr(755,root,root) %{_pkglibdir}/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/09/10 18:52:38  adamg
+- new, not tested yet
+
================================================================



More information about the pld-cvs-commit mailing list