1 |
%define name smeserver-geoip |
%define name smeserver-geoip |
2 |
%define version 1.2 |
%define version 1.2 |
3 |
%define release 10 |
%define release 11 |
4 |
|
|
5 |
Summary: SME Server geoip plugin |
Summary: SME Server geoip plugin |
6 |
Name: %{name} |
Name: %{name} |
20 |
Patch3: smeserver-geoip-1.2-check_badcountries-mailstats.patch |
Patch3: smeserver-geoip-1.2-check_badcountries-mailstats.patch |
21 |
Patch4: smeserver-geoip-1.2-bz10820-geoipv1-blockvountries-qpsmtpd.patch |
Patch4: smeserver-geoip-1.2-bz10820-geoipv1-blockvountries-qpsmtpd.patch |
22 |
Patch5: smeserver-geoip-1.2-bz10815-display-country.patch |
Patch5: smeserver-geoip-1.2-bz10815-display-country.patch |
23 |
|
Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch |
24 |
|
|
25 |
%description |
%description |
26 |
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. |
50 |
Requires: smeserver-geoip |
Requires: smeserver-geoip |
51 |
Requires: perl-GeoIP2 |
Requires: perl-GeoIP2 |
52 |
Requires: GeoIP >= 1.6.5 |
Requires: GeoIP >= 1.6.5 |
53 |
|
Requires: libmaxminddb >= 1.1.1 |
54 |
|
Requires: libmaxminddb-devel >= 1.1.1 |
55 |
|
Requires: geolite2-country |
56 |
|
Requires: geolite2-city |
57 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
58 |
|
|
59 |
|
|
65 |
#---------------------------------------------------- |
#---------------------------------------------------- |
66 |
|
|
67 |
%changelog |
%changelog |
68 |
|
* Tue Jan 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-11.sme |
69 |
|
- add support for mmdblookup [SME: 10740] |
70 |
|
- add support for download with AccountID and LicenseKey [SME: 10859] |
71 |
|
|
72 |
* Sun Oct 20 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-10.sme |
* Sun Oct 20 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-10.sme |
73 |
- fix country not logged if no badcountries defined [SME: 10815] |
- fix country not logged if no badcountries defined [SME: 10815] |
74 |
|
|
152 |
%patch3 -p1 |
%patch3 -p1 |
153 |
%patch4 -p1 |
%patch4 -p1 |
154 |
%patch5 -p1 |
%patch5 -p1 |
155 |
|
%patch6 -p1 |
156 |
|
|
157 |
%build |
%build |
158 |
%{__mkdir_p} root/var/lib/GeoIP |
%{__mkdir_p} root/var/lib/GeoIP |
171 |
|grep -v 'smeserver-geopip-download-action' \ |
|grep -v 'smeserver-geopip-download-action' \ |
172 |
|grep -v 'templates2expand/etc/GeoIP.conf' \ |
|grep -v 'templates2expand/etc/GeoIP.conf' \ |
173 |
|grep -v '/etc/crontab/91_Update_Geoip_db' \ |
|grep -v '/etc/crontab/91_Update_Geoip_db' \ |
174 |
|
|grep -v '/usr/bin/geoiplook' \ |
175 |
> %{name}-%{version}-filelist-v1 |
> %{name}-%{version}-filelist-v1 |
176 |
diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2 |
diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2 |
177 |
|
|