1 |
%define name smeserver-geoip |
%define name smeserver-geoip |
2 |
%define version 1.1.2 |
%define version 1.2 |
3 |
%define release 6 |
%define release 4 |
4 |
|
|
5 |
Summary: SME Server geoip plugin |
Summary: SME Server geoip plugin |
6 |
Name: %{name} |
Name: %{name} |
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: GeoIP >= 1.6.5 |
|
Requires: GeoIP |
|
|
Requires: geoipupdate |
|
16 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
17 |
Patch0: smeserver-geoip-remove-createlink-add-geoip-download-actions.patch |
Patch0: smeserver-geoip-conf-typo.patch |
18 |
Patch1: smeserver-geoip-1.1.2.geoip-update-event.patch |
Patch1: smeserver-geoip-fix-city-createlinks.patch |
|
Patch2: smeserver-geoip-whitelist_by_IP.patch |
|
|
Patch3: smeserver-geoip-use-newer-databases.patch |
|
19 |
|
|
20 |
%description |
%description |
21 |
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 |
CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR) |
CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR) |
24 |
SIGNAL EVENT: signal-event email-update |
SIGNAL EVENT: signal-event email-update |
25 |
|
|
26 |
|
#---------------------------------------------------- |
27 |
|
|
28 |
|
%package -n smeserver-geoip1 |
29 |
|
Summary: SME Server geoip plugin v1 |
30 |
|
Group: Email |
31 |
|
Requires: perl-Geo-IP |
32 |
|
Requires: GeoIP >= 1.6.5 |
33 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
34 |
|
|
35 |
|
%description -n smeserver-geoip1 |
36 |
|
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. |
37 |
|
|
38 |
|
CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR) |
39 |
|
SIGNAL EVENT: signal-event email-update |
40 |
|
#---------------------------------------------------- |
41 |
|
|
42 |
|
%package -n smeserver-geoip2 |
43 |
|
Summary: SME Server geoip plugin v2 |
44 |
|
Group: Email |
45 |
|
Requires: perl-GeoIP2 |
46 |
|
Requires: GeoIP >= 1.6.5 |
47 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
48 |
|
|
49 |
|
|
50 |
|
%description -n smeserver-geoip2 |
51 |
|
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. |
52 |
|
|
53 |
|
CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR) |
54 |
|
SIGNAL EVENT: signal-event email-update |
55 |
|
#---------------------------------------------------- |
56 |
|
|
57 |
%changelog |
%changelog |
58 |
|
* Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme |
59 |
|
- split smeserver-geoip into smeservergeoip and smeserver-geoip2 for compatibility [SME: 10691] |
60 |
|
- workaround to find for plugin compatibility |
61 |
|
|
62 |
|
* Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme |
63 |
|
- Fix Use of uninitialized value $city in string eq |
64 |
|
- Fix createlinks geoip-update action |
65 |
|
|
66 |
|
* Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme |
67 |
|
- Fix typo in createlinks |
68 |
|
|
69 |
|
* Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme |
70 |
|
- Update to latest v2 DBs [SME: 9033] |
71 |
|
- add geocity.pl and geocountry.pl test files |
72 |
|
|
73 |
|
* Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme |
74 |
|
- update requirement for GeoIP 1.6.5 [SME: 9714] |
75 |
|
|
76 |
* Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6 |
* Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6 |
77 |
- Use newer versions of GeoIP databases |
- Use newer versions of GeoIP databases [SME: 9714] |
78 |
|
|
79 |
* Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5 |
* Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5 |
80 |
- Add ability to whitelist an IP [SME:8981] |
- Add ability to whitelist an IP [SME:8981] |
113 |
%setup |
%setup |
114 |
%patch0 -p1 |
%patch0 -p1 |
115 |
%patch1 -p1 |
%patch1 -p1 |
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
116 |
|
|
117 |
%build |
%build |
118 |
%{__mkdir_p} root/var/lib/GeoIP |
%{__mkdir_p} root/var/lib/GeoIP |
124 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
125 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
126 |
|
|
127 |
|
cat %{name}-%{version}-filelist \ |
128 |
|
|grep -v 'etc/e-smith/templates/etc/GeoIP.conf' \ |
129 |
|
|grep -v 'usr/bin/geocity.pl' \ |
130 |
|
|grep -v 'usr/bin/geocountry.pl'\ |
131 |
|
|grep -v 'smeserver-geopip-download-action' \ |
132 |
|
|grep -v 'templates2expand/etc/GeoIP.conf' \ |
133 |
|
> %{name}-%{version}-filelist-v1 |
134 |
|
|
135 |
%clean |
%clean |
136 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
137 |
|
|
139 |
|
|
140 |
%postun |
%postun |
141 |
|
|
142 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist-v1 |
143 |
%defattr(-,root,root) |
%defattr(-,root,root) |
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
%files -n smeserver-geoip2 -f %{name}-%{version}-filelist |
148 |
|
%defattr(-,root,root,-) |
149 |
|
|
150 |
|
%files -n smeserver-geoip1 -f %{name}-%{version}-filelist-v1 |
151 |
|
%defattr(-,root,root,-) |
152 |
|
|
153 |
|
|
154 |
|
|