/[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.11 by jpp, Sat Jan 5 05:03:30 2019 UTC Revision 1.21 by jcrisp, Wed Jan 22 12:32:48 2020 UTC
# Line 1  Line 1 
1  %define name smeserver-geoip  %define name smeserver-geoip
2  %define version 1.2  %define version 1.2
3  %define release 4  %define release 14
4    
5  Summary: SME Server geoip plugin  Summary: SME Server geoip plugin
6  Name: %{name}  Name: %{name}
# Line 16  Requires: GeoIP >= 1.6.5 Line 16  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-conf-typo.patch  Patch0: smeserver-geoip-conf-typo.patch
18  Patch1: smeserver-geoip-fix-city-createlinks.patch  Patch1: smeserver-geoip-fix-city-createlinks.patch
19    Patch2: smeserver-geoip-1.2-check_badcountries.patch
20    Patch3: smeserver-geoip-1.2-check_badcountries-mailstats.patch
21    Patch4: smeserver-geoip-1.2-bz10820-geoipv1-blockvountries-qpsmtpd.patch
22    Patch5: smeserver-geoip-1.2-bz10815-display-country.patch
23    Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch
24    Patch7: smeserver-geoip-1.2-fix-product-id.patch
25    
26  %description  %description
27  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 42  SIGNAL EVENT: signal-event email-update Line 48  SIGNAL EVENT: signal-event email-update
48  %package        -n smeserver-geoip2  %package        -n smeserver-geoip2
49  Summary:        SME Server geoip plugin v2  Summary:        SME Server geoip plugin v2
50  Group:          Email  Group:          Email
51    Requires:       smeserver-geoip
52  Requires:       perl-GeoIP2  Requires:       perl-GeoIP2
53  Requires:       GeoIP >= 1.6.5  Requires:       GeoIP >= 1.6.5
54    Requires: libmaxminddb >= 1.1.1
55    Requires: libmaxminddb-devel >= 1.1.1
56    Requires: geolite2-country
57    Requires: geolite2-city
58  BuildRequires:  e-smith-devtools >= 1.13.1-03  BuildRequires:  e-smith-devtools >= 1.13.1-03
59    
60    
# Line 55  SIGNAL EVENT: signal-event email-update Line 66  SIGNAL EVENT: signal-event email-update
66  #----------------------------------------------------  #----------------------------------------------------
67    
68  %changelog  %changelog
69    * Wed Jan 22 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-14.sme
70    - Change template from EditionID to ProductID
71    - fix 20databasestore has a trailing tilde
72    
73    * Tue Jan 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-13.sme
74    - add support for mmdblookup  [SME: 10740]
75    - add support for download with AccountID and LicenseKey [SME: 10859]
76    
77    * Sun Oct 20 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-10.sme
78    - fix country not logged if no badcountries defined [SME: 10815]
79    
80    * Fri Oct 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-9.sme
81    - revert blocking country for geoipv1 qpsmtpd plugin [SME: 10820]
82    
83    * Thu Jan 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-8.sme
84    - make smeserver-geoip2 requires smeserver-geoip  [SME: 10691]
85      this will avoid having both packages sharing few files.
86    
87    * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-7.sme
88    - Update check_badcountries to work with mailstats
89    
90    * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-6.sme
91    - remove crontab fragment for v1 [SME: 10691]
92    
93    * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-5.sme
94    - fix wrong loglevel LOGINFO instead of LOGNOTICE needed [SME: 10679]
95    - try first db v2 and back on v1 if not available [SME: 10691]
96    - workaround FATAL PLUGIN ERROR when method name_by_addr not existing priori geo-ip 1.39 [SME: 10691]
97    
98  * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme  * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme
99  - split smeserver-geoip into smeservergeoip and smeserver-geoip2 for compatibility [SME: 10691]  - split smeserver-geoip into smeserver-geoip and smeserver-geoip2 for compatibility [SME: 10691]
100  - workaround to find for plugin compatibility  - TODO: workaround to find for plugin compatibility
101    
102  * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme  * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
103  - Fix Use of uninitialized value $city in string eq  - Fix Use of uninitialized value $city in string eq
# Line 113  SIGNAL EVENT: signal-event email-update Line 153  SIGNAL EVENT: signal-event email-update
153  %setup  %setup
154  %patch0 -p1  %patch0 -p1
155  %patch1 -p1  %patch1 -p1
156    %patch2 -p1
157    %patch3 -p1
158    %patch4 -p1
159    %patch5 -p1
160    %patch6 -p1
161    %patch7 -p1
162    
163  %build  %build
164  %{__mkdir_p} root/var/lib/GeoIP  %{__mkdir_p} root/var/lib/GeoIP
# Line 130  cat %{name}-%{version}-filelist \ Line 176  cat %{name}-%{version}-filelist \
176  |grep -v 'usr/bin/geocountry.pl'\  |grep -v 'usr/bin/geocountry.pl'\
177  |grep -v 'smeserver-geopip-download-action' \  |grep -v 'smeserver-geopip-download-action' \
178  |grep -v 'templates2expand/etc/GeoIP.conf' \  |grep -v 'templates2expand/etc/GeoIP.conf' \
179    |grep -v '/etc/crontab/91_Update_Geoip_db' \
180    |grep -v '/usr/bin/geoiplook' \
181    |grep -v '/etc/e-smith/db/configuration/defaults/geoip' \
182   > %{name}-%{version}-filelist-v1   > %{name}-%{version}-filelist-v1
183    diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2
184    
185  %clean  %clean
186  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 144  rm -rf $RPM_BUILD_ROOT Line 194  rm -rf $RPM_BUILD_ROOT
194    
195    
196    
197  %files -n smeserver-geoip2 -f %{name}-%{version}-filelist  %files -n smeserver-geoip2 -f %{name}-%{version}-filelist-v2
198  %defattr(-,root,root,-)  %defattr(-,root,root,-)
199    
200  %files -n smeserver-geoip1 -f %{name}-%{version}-filelist-v1  %files -n smeserver-geoip1 -f %{name}-%{version}-filelist-v1


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