|
# $Id: smeserver-geoip.spec,v 1.4 2010/03/04 16:11:51 slords Exp $ |
|
|
# Authority: nocvs |
|
|
# Name: Thouvenin Romain |
|
|
|
|
1 |
%define name smeserver-geoip |
%define name smeserver-geoip |
2 |
%define version 1.0.0 |
%define version 1.1.2 |
3 |
%define release b2 |
%define release 5 |
4 |
|
|
5 |
Summary: SME Server geoip plugin |
Summary: SME Server geoip plugin |
6 |
Name: %{name} |
Name: %{name} |
7 |
Version: %{version} |
Version: %{version} |
8 |
Release: %{release} |
Release: %{release}%{?dist} |
9 |
License: GPL |
License: GPL |
10 |
Group: Email |
Group: Email |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
|
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 |
BuildRequires: e-smith-devtools |
Requires: perl-Geo-IP |
16 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
17 |
|
Patch0 : smeserver-geoip-remove-createlink-add-geoip-download-actions.patch |
18 |
|
Patch1: smeserver-geoip-1.1.2.geoip-update-event.patch |
19 |
|
Patch2: smeserver-geoip-whitelist_by_IP.patch |
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. |
22 |
|
|
24 |
SIGNAL EVENT: signal-event email-update |
SIGNAL EVENT: signal-event email-update |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
* Fri Apr 24 2009 Jonathan Martens <smeserver-bugzilla@contribs.org> 1.0.0-b2 |
* Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5 |
28 |
- Add e-smith-devtools as a requirement [SME: 1866] |
- Add ability to whitelist an IP |
29 |
|
|
30 |
|
* Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4 |
31 |
|
- the event geoip-update download the geoip database |
32 |
|
- added smeserver-geoip-1.1.2.geoip-update-event.patch |
33 |
|
|
34 |
|
* Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2 |
35 |
|
- added createlinks |
36 |
|
- added actions and crontab to download geoip database |
37 |
|
|
38 |
|
* Mon Sep 03 2012 Doug Kruhm <dakruhm@daknetworks.net> 1.0.5 |
39 |
|
- defining $country to reduce noise if not found [SME: 5011] |
40 |
|
- fixed misspelling in response if country is blocked [SME: 7058] |
41 |
|
- cleaning up versioning to MAJOR-MINOR-PATCH |
42 |
|
|
43 |
|
* Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-04 |
44 |
|
- added response to connecting server if blocked [SME: 5011] |
45 |
|
|
46 |
|
* Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-03 |
47 |
|
- added line to reduce log noise [SME: 5011] |
48 |
|
|
49 |
|
* Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-02 |
50 |
|
- db defaults migrated from SPEC file to rpm files [SME: 5193] |
51 |
|
- removed %post and %postun macros [SME: 5194] |
52 |
|
- added Requires perl-Geo-IP [SME: 1866] |
53 |
|
- added e-smith-devtools as a requirement [SME: 1866] |
54 |
|
|
55 |
* Thu Jun 16 2007 Doug Kruhm <dakruhm@daknetworks.net> |
* Thu Jun 16 2007 Doug Kruhm <dakruhm@daknetworks.net> |
56 |
- 1.0.0-01 |
- 1.0.0-01 |
57 |
- Original version |
- Original version |
58 |
|
|
59 |
|
|
60 |
%prep |
%prep |
61 |
%setup |
%setup |
62 |
|
%patch0 -p1 |
63 |
|
%patch1 -p1 |
64 |
|
%patch2 -p1 |
65 |
|
|
66 |
%build |
%build |
67 |
|
%{__mkdir_p} root/var/lib/GeoIP |
68 |
DEFAULTS=root/etc/e-smith/db/configuration/defaults/qpsmtpd |
perl createlinks |
|
mkdir -p $DEFAULTS |
|
|
|
|
|
echo "enabled" > $DEFAULTS/GeoIP |
|
|
echo "" > $DEFAULTS/BadCountries |
|
|
|
|
69 |
|
|
70 |
%install |
%install |
71 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
77 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
78 |
|
|
79 |
%post |
%post |
|
/etc/e-smith/events/actions/initialize-default-databases |
|
|
/sbin/e-smith/expand-template /var/service/qpsmtpd/config/badcountries |
|
|
/sbin/e-smith/expand-template /var/service/qpsmtpd/config/peers/0 |
|
|
true |
|
80 |
|
|
81 |
%postun |
%postun |
|
/sbin/e-smith/expand-template /var/service/qpsmtpd/config/peers/0 |
|
|
true |
|
82 |
|
|
83 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
84 |
%defattr(-,root,root) |
%defattr(-,root,root) |