/[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.1 by stephdl, Sun Jun 14 19:25:06 2015 UTC Revision 1.12 by jpp, Sat Jan 5 19:53:29 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 1  %define release 5
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
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-fix-city-createlinks.patch
19    Patch2: smeserver-geoip-1.2-check_badcountries.patch
20    
21  %description  %description
22  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.
23    
24  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)
25  SIGNAL EVENT: signal-event email-update  SIGNAL EVENT: signal-event email-update
26    
27    #----------------------------------------------------
28    
29    %package        -n smeserver-geoip1
30    Summary:        SME Server geoip plugin v1
31    Group:          Email
32    Requires:       perl-Geo-IP
33    Requires:       GeoIP >= 1.6.5
34    BuildRequires:  e-smith-devtools >= 1.13.1-03
35    
36    %description    -n smeserver-geoip1
37    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.
38    
39    CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
40    SIGNAL EVENT: signal-event email-update
41    #----------------------------------------------------
42    
43    %package        -n smeserver-geoip2
44    Summary:        SME Server geoip plugin v2
45    Group:          Email
46    Requires:       perl-GeoIP2
47    Requires:       GeoIP >= 1.6.5
48    BuildRequires:  e-smith-devtools >= 1.13.1-03
49    
50    
51    %description    -n smeserver-geoip2
52    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.
53    
54    CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
55    SIGNAL EVENT: signal-event email-update
56    #----------------------------------------------------
57    
58  %changelog  %changelog
59  * Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-1  * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-5.sme
60    - fix wrong loglevel LOGINFO instead of LOGNOTICE needed [SME: 10679]
61    - try first db v2 and back on v1 if not available [SME: 10691]
62    - workaround FATAL PLUGIN ERROR when method name_by_addr not existing priori geo-ip 1.39 [SME: 10691]
63    
64    * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme
65    - split smeserver-geoip into smeserver-geoip and smeserver-geoip2 for compatibility [SME: 10691]
66    - TODO: workaround to find for plugin compatibility
67    
68    * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
69    - Fix Use of uninitialized value $city in string eq
70    - Fix createlinks geoip-update action
71    
72    * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
73    - Fix typo in createlinks
74    
75    * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme
76    - Update to latest v2 DBs [SME: 9033]
77    - add geocity.pl and geocountry.pl test files
78    
79    * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme
80    - update requirement for GeoIP 1.6.5 [SME: 9714]
81    
82    * Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6
83    - Use newer versions of GeoIP databases [SME: 9714]
84    
85    * Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5
86    - Add ability to whitelist an IP [SME:8981]
87    
88    * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4
89    - the event geoip-update download the geoip database
90    - added smeserver-geoip-1.1.2.geoip-update-event.patch
91    
92    * Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2
93  - added createlinks  - added createlinks
94  - added actions and crontab to download geoip database  - added actions and crontab to download geoip database
95    
# Line 51  SIGNAL EVENT: signal-event email-update Line 118  SIGNAL EVENT: signal-event email-update
118  %prep  %prep
119  %setup  %setup
120  %patch0 -p1  %patch0 -p1
121    %patch1 -p1
122    %patch2 -p1
123    
124  %build  %build
125  %{__mkdir_p} root/var/lib/GeoIP  %{__mkdir_p} root/var/lib/GeoIP
# Line 62  rm -rf $RPM_BUILD_ROOT Line 131  rm -rf $RPM_BUILD_ROOT
131  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
132  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
133    
134    cat %{name}-%{version}-filelist \
135    |grep -v 'etc/e-smith/templates/etc/GeoIP.conf' \
136    |grep -v 'usr/bin/geocity.pl' \
137    |grep -v 'usr/bin/geocountry.pl'\
138    |grep -v 'smeserver-geopip-download-action' \
139    |grep -v 'templates2expand/etc/GeoIP.conf' \
140     > %{name}-%{version}-filelist-v1
141    
142  %clean  %clean
143  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
144    
# Line 69  rm -rf $RPM_BUILD_ROOT Line 146  rm -rf $RPM_BUILD_ROOT
146    
147  %postun  %postun
148    
149  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist-v1
150  %defattr(-,root,root)  %defattr(-,root,root)
151    
152    
153    
154    %files -n smeserver-geoip2 -f %{name}-%{version}-filelist
155    %defattr(-,root,root,-)
156    
157    %files -n smeserver-geoip1 -f %{name}-%{version}-filelist-v1
158    %defattr(-,root,root,-)
159    
160    
161    


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