/[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.6 by reetspetit, Thu Dec 22 13:08:06 2016 UTC Revision 1.14 by jcrisp, Wed Jan 16 12:35:12 2019 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 6  %define release 7
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: GeoIP >= 1.6.5
 Requires: GeoIP  
 Requires: geoipupdate  
16  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
17  Patch0: smeserver-geoip-remove-createlink-add-geoip-download-actions.patch  Patch0: smeserver-geoip-conf-typo.patch
18  Patch1: smeserver-geoip-1.1.2.geoip-update-event.patch  Patch1: smeserver-geoip-fix-city-createlinks.patch
19  Patch2: smeserver-geoip-whitelist_by_IP.patch  Patch2: smeserver-geoip-1.2-check_badcountries.patch
20  Patch3: smeserver-geoip-use-newer-databases.patch  Patch3: smeserver-geoip-1.2-check_badcountries-mailstats.patch
21    
22  %description  %description
23  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.
# Line 27  The GEOIP plugin lets us know which coun Line 25  The GEOIP plugin lets us know which coun
25  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)
26  SIGNAL EVENT: signal-event email-update  SIGNAL EVENT: signal-event email-update
27    
28    #----------------------------------------------------
29    
30    %package        -n smeserver-geoip1
31    Summary:        SME Server geoip plugin v1
32    Group:          Email
33    Requires:       perl-Geo-IP
34    Requires:       GeoIP >= 1.6.5
35    BuildRequires:  e-smith-devtools >= 1.13.1-03
36    
37    %description    -n smeserver-geoip1
38    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.
39    
40    CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
41    SIGNAL EVENT: signal-event email-update
42    #----------------------------------------------------
43    
44    %package        -n smeserver-geoip2
45    Summary:        SME Server geoip plugin v2
46    Group:          Email
47    Requires:       perl-GeoIP2
48    Requires:       GeoIP >= 1.6.5
49    BuildRequires:  e-smith-devtools >= 1.13.1-03
50    
51    
52    %description    -n smeserver-geoip2
53    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.
54    
55    CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
56    SIGNAL EVENT: signal-event email-update
57    #----------------------------------------------------
58    
59  %changelog  %changelog
60    * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-7.sme
61    - Update check_badcountries to work with mailstats
62    
63    * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-6.sme
64    - remove crontab fragment for v1 [SME: 10691]
65    
66    * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-5.sme
67    - fix wrong loglevel LOGINFO instead of LOGNOTICE needed [SME: 10679]
68    - try first db v2 and back on v1 if not available [SME: 10691]
69    - workaround FATAL PLUGIN ERROR when method name_by_addr not existing priori geo-ip 1.39 [SME: 10691]
70    
71    * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme
72    - split smeserver-geoip into smeserver-geoip and smeserver-geoip2 for compatibility [SME: 10691]
73    - TODO: workaround to find for plugin compatibility
74    
75    * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
76    - Fix Use of uninitialized value $city in string eq
77    - Fix createlinks geoip-update action
78    
79    * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
80    - Fix typo in createlinks
81    
82    * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme
83    - Update to latest v2 DBs [SME: 9033]
84    - add geocity.pl and geocountry.pl test files
85    
86    * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme
87    - update requirement for GeoIP 1.6.5 [SME: 9714]
88    
89  * Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6  * Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6
90  - Use newer versions of GeoIP databases  - Use newer versions of GeoIP databases [SME: 9714]
91    
92  * Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5  * Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5
93  - Add ability to whitelist an IP [SME:8981]  - Add ability to whitelist an IP [SME:8981]
# Line 81  rm -rf $RPM_BUILD_ROOT Line 139  rm -rf $RPM_BUILD_ROOT
139  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
140  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
141    
142    cat %{name}-%{version}-filelist \
143    |grep -v 'etc/e-smith/templates/etc/GeoIP.conf' \
144    |grep -v 'usr/bin/geocity.pl' \
145    |grep -v 'usr/bin/geocountry.pl'\
146    |grep -v 'smeserver-geopip-download-action' \
147    |grep -v 'templates2expand/etc/GeoIP.conf' \
148    |grep -v '/etc/crontab/91_Update_Geoip_db' \
149     > %{name}-%{version}-filelist-v1
150    
151  %clean  %clean
152  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
153    
# Line 88  rm -rf $RPM_BUILD_ROOT Line 155  rm -rf $RPM_BUILD_ROOT
155    
156  %postun  %postun
157    
158  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist-v1
159  %defattr(-,root,root)  %defattr(-,root,root)
160    
161    
162    
163    %files -n smeserver-geoip2 -f %{name}-%{version}-filelist
164    %defattr(-,root,root,-)
165    
166    %files -n smeserver-geoip1 -f %{name}-%{version}-filelist-v1
167    %defattr(-,root,root,-)
168    
169    
170    


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