/[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.9 by jcrisp, Sat Jun 23 11:28:41 2018 UTC Revision 1.20 by jpp, Wed Jan 22 02:09:12 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 2  %define release 13
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
 Requires: perl-GeoIP2  
15  Requires: GeoIP >= 1.6.5  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
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    
25  %description  %description
26  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 23  The GEOIP plugin lets us know which coun Line 28  The GEOIP plugin lets us know which coun
28  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)
29  SIGNAL EVENT: signal-event email-update  SIGNAL EVENT: signal-event email-update
30    
31    #----------------------------------------------------
32    
33    %package        -n smeserver-geoip1
34    Summary:        SME Server geoip plugin v1
35    Group:          Email
36    Requires:       perl-Geo-IP
37    Requires:       GeoIP >= 1.6.5
38    BuildRequires:  e-smith-devtools >= 1.13.1-03
39    
40    %description    -n smeserver-geoip1
41    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.
42    
43    CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
44    SIGNAL EVENT: signal-event email-update
45    #----------------------------------------------------
46    
47    %package        -n smeserver-geoip2
48    Summary:        SME Server geoip plugin v2
49    Group:          Email
50    Requires:       smeserver-geoip
51    Requires:       perl-GeoIP2
52    Requires:       GeoIP >= 1.6.5
53    Requires: libmaxminddb >= 1.1.1
54    Requires: libmaxminddb-devel >= 1.1.1
55    Requires: geolite2-country
56    Requires: geolite2-city
57    BuildRequires:  e-smith-devtools >= 1.13.1-03
58    
59    
60    %description    -n smeserver-geoip2
61    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.
62    
63    CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
64    SIGNAL EVENT: signal-event email-update
65    #----------------------------------------------------
66    
67  %changelog  %changelog
68    * Tue Jan 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-13.sme
69    - add support for mmdblookup  [SME: 10740]
70    - add support for download with AccountID and LicenseKey [SME: 10859]
71    
72    * Sun Oct 20 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-10.sme
73    - fix country not logged if no badcountries defined [SME: 10815]
74    
75    * Fri Oct 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-9.sme
76    - revert blocking country for geoipv1 qpsmtpd plugin [SME: 10820]
77    
78    * Thu Jan 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-8.sme
79    - make smeserver-geoip2 requires smeserver-geoip  [SME: 10691]
80      this will avoid having both packages sharing few files.
81    
82    * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-7.sme
83    - Update check_badcountries to work with mailstats
84    
85    * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-6.sme
86    - remove crontab fragment for v1 [SME: 10691]
87    
88    * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-5.sme
89    - fix wrong loglevel LOGINFO instead of LOGNOTICE needed [SME: 10679]
90    - try first db v2 and back on v1 if not available [SME: 10691]
91    - workaround FATAL PLUGIN ERROR when method name_by_addr not existing priori geo-ip 1.39 [SME: 10691]
92    
93    * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme
94    - split smeserver-geoip into smeserver-geoip and smeserver-geoip2 for compatibility [SME: 10691]
95    - TODO: workaround to find for plugin compatibility
96    
97    * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
98    - Fix Use of uninitialized value $city in string eq
99    - Fix createlinks geoip-update action
100    
101  * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme  * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
102  - Fix typo in createlinks  - Fix typo in createlinks
103    
# Line 73  SIGNAL EVENT: signal-event email-update Line 147  SIGNAL EVENT: signal-event email-update
147  %prep  %prep
148  %setup  %setup
149  %patch0 -p1  %patch0 -p1
150    %patch1 -p1
151    %patch2 -p1
152    %patch3 -p1
153    %patch4 -p1
154    %patch5 -p1
155    %patch6 -p1
156    
157  %build  %build
158  %{__mkdir_p} root/var/lib/GeoIP  %{__mkdir_p} root/var/lib/GeoIP
# Line 84  rm -rf $RPM_BUILD_ROOT Line 164  rm -rf $RPM_BUILD_ROOT
164  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
165  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
166    
167    cat %{name}-%{version}-filelist \
168    |grep -v 'etc/e-smith/templates/etc/GeoIP.conf' \
169    |grep -v 'usr/bin/geocity.pl' \
170    |grep -v 'usr/bin/geocountry.pl'\
171    |grep -v 'smeserver-geopip-download-action' \
172    |grep -v 'templates2expand/etc/GeoIP.conf' \
173    |grep -v '/etc/crontab/91_Update_Geoip_db' \
174    |grep -v '/usr/bin/geoiplook' \
175    |grep -v '/etc/e-smith/db/configuration/defaults/geoip' \
176     > %{name}-%{version}-filelist-v1
177    diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2
178    
179  %clean  %clean
180  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
181    
# Line 91  rm -rf $RPM_BUILD_ROOT Line 183  rm -rf $RPM_BUILD_ROOT
183    
184  %postun  %postun
185    
186  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist-v1
187  %defattr(-,root,root)  %defattr(-,root,root)
188    
189    
190    
191    %files -n smeserver-geoip2 -f %{name}-%{version}-filelist-v2
192    %defattr(-,root,root,-)
193    
194    %files -n smeserver-geoip1 -f %{name}-%{version}-filelist-v1
195    %defattr(-,root,root,-)
196    
197    
198    


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