1 |
%define name smeserver-geoip |
%define name smeserver-geoip |
2 |
%define version 1.2 |
%define version 1.2 |
3 |
%define release 3 |
%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 |
|
Requires: perl-GeoIP2 |
|
15 |
Requires: GeoIP >= 1.6.5 |
Requires: GeoIP >= 1.6.5 |
16 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
17 |
Patch0: smeserver-geoip-conf-typo.patch |
Patch0: smeserver-geoip-conf-typo.patch |
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 |
* Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme |
63 |
- Fix Use of uninitialized value $city in string eq |
- Fix Use of uninitialized value $city in string eq |
64 |
- Fix createlinks geoip-update action |
- Fix createlinks geoip-update action |
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 |
|
|