--- rpms/smeserver-geoip/contribs8/smeserver-geoip.spec 2013/06/26 23:33:33 1.2 +++ rpms/smeserver-geoip/contribs8/smeserver-geoip.spec 2015/09/23 20:42:45 1.9 @@ -1,11 +1,11 @@ %define name smeserver-geoip -%define version 1.0.5 -%define release 1 +%define version 1.1.2 +%define release 5 Summary: SME Server geoip plugin Name: %{name} Version: %{version} -Release: %{release} +Release: %{release}%{?dist} License: GPL Group: Email Source: %{name}-%{version}.tar.gz @@ -14,7 +14,9 @@ BuildRoot: /var/tmp/%{name}-%{version}-% BuildArchitectures: noarch Requires: perl-Geo-IP BuildRequires: e-smith-devtools >= 1.13.1-03 - +Patch0 : smeserver-geoip-remove-createlink-add-geoip-download-actions.patch +Patch1: smeserver-geoip-1.1.2.geoip-update-event.patch +Patch2: smeserver-geoip-whitelist_by_IP.patch %description 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,6 +24,17 @@ CHANGE THE CONFIG DB: config setprop qps SIGNAL EVENT: signal-event email-update %changelog +* Wed Sep 23 2015 John Crisp 1.1.2-5 +- Add ability to whitelist an IP [SME:8981] + +* Tue Sep 22 2015 stephane de Labrusse 1.1.2-4 +- the event geoip-update download the geoip database +- added smeserver-geoip-1.1.2.geoip-update-event.patch + +* Sun Jun 14 2015 stephane de Labrusse 1.1.2-2 +- added createlinks +- added actions and crontab to download geoip database + * Mon Sep 03 2012 Doug Kruhm 1.0.5 - defining $country to reduce noise if not found [SME: 5011] - fixed misspelling in response if country is blocked [SME: 7058] @@ -46,9 +59,13 @@ SIGNAL EVENT: signal-event email-update %prep %setup +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build - +%{__mkdir_p} root/var/lib/GeoIP +perl createlinks %install rm -rf $RPM_BUILD_ROOT