/[smecontribs]/rpms/smeserver-geoip/contribs9/smeserver-geoip.spec
ViewVC logotype

Diff of /rpms/smeserver-geoip/contribs9/smeserver-geoip.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by stephdl, Tue Sep 22 21:41:35 2015 UTC Revision 1.8 by jcrisp, Tue Jun 19 13:20:57 2018 UTC
# Line 1  Line 1 
1  %define name smeserver-geoip  %define name smeserver-geoip
2  %define version 1.1.2  %define version 1.2
3  %define release 3  %define release 1
4    
5  Summary: SME Server geoip plugin  Summary: SME Server geoip plugin
6  Name: %{name}  Name: %{name}
# Line 12  Source: %{name}-%{version}.tar.gz Line 12  Source: %{name}-%{version}.tar.gz
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: perl-GeoIP2
16    Requires: GeoIP >= 1.6.5
17  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
18  Patch0 : smeserver-geoip-remove-createlink-add-geoip-download-actions.patch  #Patch0: smeserver-geoip-remove-createlink-add-geoip-download-actions.patch
19  Patch1: smeserver-geoip-1.1.2.Remove_GEOIP_Download_Action.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    
# Line 23  CHANGE THE CONFIG DB: config setprop qps Line 24  CHANGE THE CONFIG DB: config setprop qps
24  SIGNAL EVENT: signal-event email-update  SIGNAL EVENT: signal-event email-update
25    
26  %changelog  %changelog
27  * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-3  * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme
28  - the action to download the geoip database is removed  - Update to latest v2 DBs [SME: 9033]
29  - added smeserver-geoip-1.1.2.Remove_GEOIP_Download_Action.patch  - add geocity.pl and geocountry.pl test files
30    
31    * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme
32    - update requirement for GeoIP 1.6.5 [SME: 9714]
33    
34    * Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6
35    - Use newer versions of GeoIP databases [SME: 9714]
36    
37    * Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5
38    - Add ability to whitelist an IP [SME:8981]
39    
40    * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4
41    - the event geoip-update download the geoip database
42    - added smeserver-geoip-1.1.2.geoip-update-event.patch
43    
44  * Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2  * Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2
45  - added createlinks  - added createlinks
# Line 55  SIGNAL EVENT: signal-event email-update Line 69  SIGNAL EVENT: signal-event email-update
69    
70  %prep  %prep
71  %setup  %setup
72  %patch0 -p1  #%patch0 -p1
 %patch1 -p1  
73    
74  %build  %build
75  %{__mkdir_p} root/var/lib/GeoIP  %{__mkdir_p} root/var/lib/GeoIP
# Line 72  rm -f %{name}-%{version}-filelist Line 85  rm -f %{name}-%{version}-filelist
85  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
86    
87  %post  %post
 #download the first time the geoip database  
 wget -O /var/lib/GeoIP/GeoIP.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz 2>&1 1>/dev/null  
 gunzip -f /var/lib/GeoIP/GeoIP.dat.gz 2>&1 1>/dev/null  
88    
89  %postun  %postun
90    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed