|
|
f43b499 |
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
|
|
|
8fe4685 |
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
|
|
|
f43b499 |
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}}
|
|
|
f43b499 |
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
|
|
|
f43b499 |
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
|
|
36ea15a |
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
|
|
802e47c |
|
|
|
ce7142e |
Summary: Simultaneous connection limiting module for Apache
|
|
|
ce7142e |
Name: mod_limitipconn
|
|
|
ce7142e |
Version: 0.23
|
|
|
9ed20b5 |
Release: 20%{?dist}
|
|
|
ce7142e |
Group: System Environment/Daemons
|
|
|
ce7142e |
License: ASL 2.0
|
|
|
ce7142e |
URL: http://dominia.org/djao/limitipconn2.html
|
|
|
ce7142e |
Source0: http://dominia.org/djao/limit/mod_limitipconn-%{version}.tar.bz2
|
|
|
ce7142e |
Source1: mod_limitipconn.conf
|
|
|
f43b499 |
Patch0: mod_limitipconn-0.23-httpd24.patch
|
|
|
ce7142e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
f43b499 |
Requires: httpd-mmn = %{_httpd_mmn}
|
|
|
ce7142e |
BuildRequires: httpd-devel
|
|
|
ce7142e |
|
|
|
ce7142e |
%description
|
|
|
ce7142e |
Apache module which allows web server administrators to limit the number of
|
|
|
ce7142e |
simultaneous downloads permitted from a single IP address.
|
|
|
ce7142e |
|
|
|
ce7142e |
%prep
|
|
|
ce7142e |
%setup -q
|
|
|
ce7142e |
|
|
|
f43b499 |
%patch0 -p1 -b .httpd24
|
|
|
ce7142e |
|
|
|
ce7142e |
%build
|
|
|
802e47c |
%{_httpd_apxs} -Wc,"%{optflags}" -c mod_limitipconn.c
|
|
|
ce7142e |
|
|
|
ce7142e |
|
|
|
ce7142e |
%install
|
|
|
ce7142e |
rm -rf %{buildroot}
|
|
|
f43b499 |
|
|
|
f43b499 |
%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}"
|
|
|
f43b499 |
# httpd <= 2.2.x
|
|
|
f43b499 |
install -D -p -m 0644 %{SOURCE1} \
|
|
|
f43b499 |
%{buildroot}%{_httpd_modconfdir}/limitipconn.conf
|
|
|
f43b499 |
%else
|
|
|
f43b499 |
# httpd >= 2.4.x
|
|
|
ce7142e |
install -D -p -m 0644 %{SOURCE1} \
|
|
|
f43b499 |
%{buildroot}%{_httpd_modconfdir}/10-limitipconn.conf
|
|
|
f43b499 |
%endif
|
|
|
802e47c |
install -D -p -m 0755 .libs/mod_limitipconn.so \
|
|
|
802e47c |
%{buildroot}%{_httpd_moddir}/mod_limitipconn.so
|
|
|
ce7142e |
|
|
|
ce7142e |
|
|
|
ce7142e |
%clean
|
|
|
ce7142e |
rm -rf %{buildroot}
|
|
|
ce7142e |
|
|
|
ce7142e |
|
|
|
ce7142e |
%files
|
|
|
ce7142e |
%defattr(-,root,root,-)
|
|
|
ce7142e |
%doc README INSTALL LICENSE
|
|
|
f43b499 |
%config(noreplace) %{_httpd_modconfdir}/*.conf
|
|
|
802e47c |
%{_httpd_moddir}/mod_limitipconn.so
|
|
|
ce7142e |
|
|
|
ce7142e |
|
|
|
ce7142e |
%changelog
|
|
|
9ed20b5 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-20
|
|
|
9ed20b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
9ed20b5 |
|
|
|
206c517 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-19
|
|
|
206c517 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
206c517 |
|
|
|
1ba79a6 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-18
|
|
|
1ba79a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
1ba79a6 |
|
|
|
479411b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-17
|
|
|
479411b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
479411b |
|
|
|
86e6c19 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-16
|
|
|
86e6c19 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
86e6c19 |
|
|
|
78e4874 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-15
|
|
|
78e4874 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
78e4874 |
|
|
|
2049b96 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-14
|
|
|
2049b96 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
2049b96 |
|
|
|
8fe4685 |
* Thu Jan 23 2014 Joe Orton <jorton@redhat.com> - 0.23-13
|
|
|
8fe4685 |
- fix _httpd_mmn expansion in absence of httpd-devel
|
|
|
8fe4685 |
|
|
|
5e1244e |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-12
|
|
|
5e1244e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
5e1244e |
|
|
|
3d96795 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-11
|
|
|
3d96795 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3d96795 |
|
|
|
c83488b |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-10
|
|
|
c83488b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c83488b |
|
|
|
36ea15a |
* Thu Apr 19 2012 Joe Orton <jorton@redhat.com> - 0.23-9
|
|
|
36ea15a |
- add _httpd_moddir compat macro as well (#809730)
|
|
|
36ea15a |
|
|
|
956b60f |
* Tue Apr 17 2012 Joe Orton <jorton@redhat.com> - 0.23-8
|
|
|
956b60f |
- improve handling of absent content-type w/2.4
|
|
|
956b60f |
|
|
|
f43b499 |
* Tue Apr 17 2012 Joe Orton <jorton@redhat.com> - 0.23-7
|
|
|
f43b499 |
- update for 2.4 (patch from Jan Kaluza, #809730)
|
|
|
f43b499 |
|
|
|
802e47c |
* Thu Mar 29 2012 Matthias Saou <http://freshrpms.net/> 0.23-6
|
|
|
802e47c |
- Rebuild for new apache httpd... not, we will require patching.
|
|
|
802e47c |
- Use rpm macros provided by the httpd-devel package, with sane fallbacks.
|
|
|
802e47c |
|
|
|
8613f28 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-5
|
|
|
8613f28 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
8613f28 |
|
|
|
af95656 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-4
|
|
|
af95656 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
af95656 |
|
|
|
4a61886 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
|
|
|
4a61886 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
4a61886 |
|
|
|
b41b684 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-2
|
|
|
b41b684 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b41b684 |
|
|
|
ce7142e |
* Mon Dec 1 2008 Matthias Saou <http://freshrpms.net/> 0.23-1
|
|
|
ce7142e |
- Initial RPM release.
|
|
|
ce7142e |
|