1 |
%define name smeserver-geoip |
%define name smeserver-geoip |
2 |
%define version 1.1.2 |
%define version 1.2 |
3 |
%define release 3 |
%define release 3 |
4 |
|
|
5 |
Summary: SME Server geoip plugin |
Summary: SME Server geoip plugin |
12 |
Packager: Doug Kruhm <dakruhm@daknetworks.net> |
Packager: Doug Kruhm <dakruhm@daknetworks.net> |
13 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
14 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
15 |
Requires: perl-Geo-IP |
Requires: perl-GeoIP2 |
16 |
|
Requires: GeoIP >= 1.6.5 |
17 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
Patch0 : smeserver-geoip-remove-createlink-add-geoip-download-actions.patch |
Patch0: smeserver-geoip-conf-typo.patch |
19 |
Patch1: smeserver-geoip-1.1.2.Remove_GEOIP_Download_Action.patch |
Patch1: smeserver-geoip-fix-city-createlinks.patch |
20 |
|
|
21 |
%description |
%description |
22 |
The GEOIP plugin lets us know which country our mail server is receiving mail from. If we're receiving too much spam from a particular country, this will help track it down and then use that info to reject connections from that country. This ends up taking the load off our servers. |
The GEOIP plugin lets us know which country our mail server is receiving mail from. If we're receiving too much spam from a particular country, this will help track it down and then use that info to reject connections from that country. This ends up taking the load off our servers. |
23 |
|
|
25 |
SIGNAL EVENT: signal-event email-update |
SIGNAL EVENT: signal-event email-update |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
* Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-3 |
* Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme |
29 |
- the action to download the geoip database is removed |
- Fix Use of uninitialized value $city in string eq |
30 |
- added smeserver-geoip-1.1.2.Remove_GEOIP_Download_Action.patch |
- Fix createlinks geoip-update action |
31 |
|
|
32 |
|
* Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme |
33 |
|
- Fix typo in createlinks |
34 |
|
|
35 |
|
* Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme |
36 |
|
- Update to latest v2 DBs [SME: 9033] |
37 |
|
- add geocity.pl and geocountry.pl test files |
38 |
|
|
39 |
|
* Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme |
40 |
|
- update requirement for GeoIP 1.6.5 [SME: 9714] |
41 |
|
|
42 |
|
* Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6 |
43 |
|
- Use newer versions of GeoIP databases [SME: 9714] |
44 |
|
|
45 |
|
* Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5 |
46 |
|
- Add ability to whitelist an IP [SME:8981] |
47 |
|
|
48 |
|
* Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4 |
49 |
|
- the event geoip-update download the geoip database |
50 |
|
- added smeserver-geoip-1.1.2.geoip-update-event.patch |
51 |
|
|
52 |
* Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2 |
* Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2 |
53 |
- added createlinks |
- added createlinks |
94 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
95 |
|
|
96 |
%post |
%post |
|
#download the first time the geoip database |
|
|
wget -O /var/lib/GeoIP/GeoIP.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz 2>&1 1>/dev/null |
|
|
gunzip -f /var/lib/GeoIP/GeoIP.dat.gz 2>&1 1>/dev/null |
|
97 |
|
|
98 |
%postun |
%postun |
99 |
|
|