1 |
%define name smeserver-geoip |
%define name smeserver-geoip |
2 |
%define version 1.1.2 |
%define version 1.1.2 |
3 |
%define release 3 |
%define release 6 |
4 |
|
|
5 |
Summary: SME Server geoip plugin |
Summary: SME Server geoip plugin |
6 |
Name: %{name} |
Name: %{name} |
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-Geo-IP |
16 |
|
Requires: GeoIP |
17 |
|
Requires: geoipupdate |
18 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
19 |
Patch0 : smeserver-geoip-remove-createlink-add-geoip-download-actions.patch |
Patch0: smeserver-geoip-remove-createlink-add-geoip-download-actions.patch |
20 |
Patch1: smeserver-geoip-1.1.2.Remove_GEOIP_Download_Action.patch |
Patch1: smeserver-geoip-1.1.2.geoip-update-event.patch |
21 |
|
Patch2: smeserver-geoip-whitelist_by_IP.patch |
22 |
|
Patch3: smeserver-geoip-use-newer-databases.patch |
23 |
|
|
24 |
%description |
%description |
25 |
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. |
26 |
|
|
28 |
SIGNAL EVENT: signal-event email-update |
SIGNAL EVENT: signal-event email-update |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
* Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-3 |
* Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6 |
32 |
- the action to download the geoip database is removed |
- Use newer versions of GeoIP databases |
33 |
- added smeserver-geoip-1.1.2.Remove_GEOIP_Download_Action.patch |
|
34 |
|
* Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5 |
35 |
|
- Add ability to whitelist an IP [SME:8981] |
36 |
|
|
37 |
|
* Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4 |
38 |
|
- the event geoip-update download the geoip database |
39 |
|
- added smeserver-geoip-1.1.2.geoip-update-event.patch |
40 |
|
|
41 |
* 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 |
42 |
- added createlinks |
- added createlinks |
68 |
%setup |
%setup |
69 |
%patch0 -p1 |
%patch0 -p1 |
70 |
%patch1 -p1 |
%patch1 -p1 |
71 |
|
%patch2 -p1 |
72 |
|
%patch3 -p1 |
73 |
|
|
74 |
%build |
%build |
75 |
%{__mkdir_p} root/var/lib/GeoIP |
%{__mkdir_p} root/var/lib/GeoIP |
85 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
86 |
|
|
87 |
%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 |
|
88 |
|
|
89 |
%postun |
%postun |
90 |
|
|