1 |
%define name smeserver-geoip |
%define name smeserver-geoip |
2 |
%define version 1.2 |
%define version 1.2 |
3 |
%define release 17 |
%define release 18 |
4 |
|
|
5 |
Summary: SME Server geoip plugin |
Summary: SME Server geoip plugin |
6 |
Name: %{name} |
Name: %{name} |
21 |
# for legacy |
# for legacy |
22 |
Requires: perl-Geo-IP |
Requires: perl-Geo-IP |
23 |
Requires: GeoIP >= 1.6.5 |
Requires: GeoIP >= 1.6.5 |
|
Requires: GeoIP-GeoLite-data |
|
|
Requires: GeoIP-GeoLite-data-extra |
|
24 |
# |
# |
25 |
Provides: smeserver-geoip2 = %{version}-%{release} |
Provides: smeserver-geoip2 = %{version}-%{release} |
26 |
PRovides: smeserver-geoip-legacy = %{version}-%{release} |
PRovides: smeserver-geoip-legacy = %{version}-%{release} |
34 |
Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch |
Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch |
35 |
Patch7: smeserver-geoip-1.2-fix-product-id.patch |
Patch7: smeserver-geoip-1.2-fix-product-id.patch |
36 |
Patch8: smeserver-geoip-1.2-sme10-update.patch |
Patch8: smeserver-geoip-1.2-sme10-update.patch |
37 |
|
Patch9: smeserver-geoip-1.2-Add-expand-template-for-the-qpsmtpd-peers.patch |
38 |
|
|
39 |
%description |
%description |
40 |
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. |
48 |
#Group: Email |
#Group: Email |
49 |
#Requires: perl-Geo-IP |
#Requires: perl-Geo-IP |
50 |
#Requires: GeoIP >= 1.6.5 |
#Requires: GeoIP >= 1.6.5 |
|
#Requires: GeoIP-GeoLite-data |
|
|
#Requires: GeoIP-GeoLite-data-extra |
|
51 |
#Requires: smeserver-geoip = %{version}-%{release} |
#Requires: smeserver-geoip = %{version}-%{release} |
52 |
#BuildRequires: e-smith-devtools >= 1.13.1-03 |
#BuildRequires: e-smith-devtools >= 1.13.1-03 |
53 |
#%description -n smeserver-geoip-legacy |
#%description -n smeserver-geoip-legacy |
56 |
#---------------------------------------------------- |
#---------------------------------------------------- |
57 |
|
|
58 |
%changelog |
%changelog |
59 |
|
* Thu Mar 18 2021 Brian Read <brianr@bjsystems.co.uk> 1.2-18.sme |
60 |
|
- Add expand template for the qpsmtpd peers [SME: 11023] |
61 |
|
|
62 |
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-17.sme |
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-17.sme |
63 |
- merge legacy with main as we have few packages still using legacy [SME: 11023] |
- merge legacy with main as we have few packages still using legacy [SME: 11023] |
64 |
those are php*-pecl-geoip proftpd bind-libs* bind-utils. |
those are php*-pecl-geoip proftpd bind-libs* bind-utils. |
167 |
%patch7 -p1 |
%patch7 -p1 |
168 |
rm -rf root/var/ |
rm -rf root/var/ |
169 |
%patch8 -p1 |
%patch8 -p1 |
170 |
|
%patch9 -p1 |
171 |
# commented for legacy |
# commented for legacy |
172 |
#mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy |
#mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy |
173 |
|
|