1 |
unnilennium |
1.1 |
%define name smeserver-geoip |
2 |
stephdl |
1.4 |
%define version 1.1.2 |
3 |
unnilennium |
1.2 |
%define release 1 |
4 |
unnilennium |
1.1 |
|
5 |
|
|
Summary: SME Server geoip plugin |
6 |
|
|
Name: %{name} |
7 |
|
|
Version: %{version} |
8 |
stephdl |
1.3 |
Release: %{release}%{?dist} |
9 |
unnilennium |
1.1 |
License: GPL |
10 |
|
|
Group: Email |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
unnilennium |
1.2 |
Packager: Doug Kruhm <dakruhm@daknetworks.net> |
13 |
unnilennium |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
14 |
|
|
BuildArchitectures: noarch |
15 |
unnilennium |
1.2 |
Requires: perl-Geo-IP |
16 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
17 |
stephdl |
1.3 |
Patch0 : smeserver-geoip-remove-createlink-add-geoip-download-actions.patch |
18 |
unnilennium |
1.1 |
%description |
19 |
|
|
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. |
20 |
|
|
|
21 |
|
|
CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR) |
22 |
|
|
SIGNAL EVENT: signal-event email-update |
23 |
|
|
|
24 |
|
|
%changelog |
25 |
stephdl |
1.4 |
* Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-1 |
26 |
stephdl |
1.3 |
- added createlinks |
27 |
|
|
- added actions and crontab to download geoip database |
28 |
|
|
|
29 |
unnilennium |
1.2 |
* Mon Sep 03 2012 Doug Kruhm <dakruhm@daknetworks.net> 1.0.5 |
30 |
|
|
- defining $country to reduce noise if not found [SME: 5011] |
31 |
|
|
- fixed misspelling in response if country is blocked [SME: 7058] |
32 |
|
|
- cleaning up versioning to MAJOR-MINOR-PATCH |
33 |
|
|
|
34 |
|
|
* Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-04 |
35 |
|
|
- added response to connecting server if blocked [SME: 5011] |
36 |
|
|
|
37 |
|
|
* Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-03 |
38 |
|
|
- added line to reduce log noise [SME: 5011] |
39 |
|
|
|
40 |
|
|
* Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-02 |
41 |
|
|
- db defaults migrated from SPEC file to rpm files [SME: 5193] |
42 |
|
|
- removed %post and %postun macros [SME: 5194] |
43 |
|
|
- added Requires perl-Geo-IP [SME: 1866] |
44 |
|
|
- added e-smith-devtools as a requirement [SME: 1866] |
45 |
unnilennium |
1.1 |
|
46 |
|
|
* Thu Jun 16 2007 Doug Kruhm <dakruhm@daknetworks.net> |
47 |
|
|
- 1.0.0-01 |
48 |
|
|
- Original version |
49 |
|
|
|
50 |
unnilennium |
1.2 |
|
51 |
unnilennium |
1.1 |
%prep |
52 |
|
|
%setup |
53 |
stephdl |
1.3 |
%patch0 -p1 |
54 |
unnilennium |
1.1 |
|
55 |
|
|
%build |
56 |
stephdl |
1.3 |
%{__mkdir_p} root/var/lib/GeoIP |
57 |
|
|
perl createlinks |
58 |
unnilennium |
1.1 |
|
59 |
|
|
%install |
60 |
|
|
rm -rf $RPM_BUILD_ROOT |
61 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
62 |
|
|
rm -f %{name}-%{version}-filelist |
63 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
64 |
|
|
|
65 |
|
|
%clean |
66 |
|
|
rm -rf $RPM_BUILD_ROOT |
67 |
|
|
|
68 |
|
|
%post |
69 |
|
|
|
70 |
|
|
%postun |
71 |
|
|
|
72 |
|
|
%files -f %{name}-%{version}-filelist |
73 |
|
|
%defattr(-,root,root) |