Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Apache:Modules
apache2-mod_bw
apache2-mod_bw.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apache2-mod_bw.spec of Package apache2-mod_bw
# # spec file for package apache2-mod_bw # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define modname mod_bw Name: apache2-mod_bw Version: 0.92 Release: 0 Summary: Apache2 Module to Restrict Bandwidth License: Apache-2.0 Group: Productivity/Networking/Web/Servers Url: http://www.ivn.cl/apache/ Source: http://www.ivn.cl/files/source/%{modname}-%{version}.tgz Source1: %{modname}-suse.tar.bz2 BuildRequires: apache-rex %apache_rex_deps BuildRequires: apache2-devel BuildRequires: apache-rpm-macros Requires: %{apache_mmn} Requires: %{apache_suse_maintenance_mmn} Requires: apache2 Provides: apache2-bw_mod = %{version} Obsoletes: apache2-bw_mod < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Apache2 module to limit bandwidth in several ways. %prep %setup -q -c -n %{modname}-%{version} -a1 %if %{apache_branch} >= 204 sed -i "s:remote_addr:client_addr:" mod_bw.c %endif %build %{apache_apxs} -c mod_bw.c %install mkdir -p %{buildroot}/%{apache_libexecdir} mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d cp -p .libs/%{modname}.so %{buildroot}/%{apache_libexecdir}/%{modname}.so cp mod_bw.conf %{buildroot}/%{apache_sysconfdir}/conf.d %check %apache_rex_check -m .libs/ mod_bw-basic %postun # request restart apache instanaces (which loaded bw) after apache2-mod_bw package update if [ $1 -eq 1 ]; then %apache_request_restart -m bw fi %posttrans # restart apache instances which have this module after zypper or rpm transaction, if not # have restarted already in other posttrans %apache_restart_if_needed %files %defattr(-,root,root) %dir %{_sysconfdir}/apache2/conf.d %config(noreplace) %{_sysconfdir}/apache2/conf.d/mod_bw.conf %doc LICENSE %doc mod_bw.txt %doc README_SUSE %{apache_libexecdir}/*.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor