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

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

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


Revision 1.21 - (hide annotations) (download)
Wed Jan 22 12:32:48 2020 UTC (4 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-14_el6_sme, HEAD
Changes since 1.20: +7 -1 lines
* Wed Jan 22 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-14.sme
- Change template from EditionID to ProductID
- fix 20databasestore has a trailing tilde

1 stephdl 1.1 %define name smeserver-geoip
2 jcrisp 1.8 %define version 1.2
3 jcrisp 1.21 %define release 14
4 stephdl 1.1
5     Summary: SME Server geoip plugin
6     Name: %{name}
7     Version: %{version}
8     Release: %{release}%{?dist}
9     License: GPL
10     Group: Email
11     Source: %{name}-%{version}.tar.gz
12     Packager: Doug Kruhm <dakruhm@daknetworks.net>
13     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14     BuildArchitectures: noarch
15 unnilennium 1.7 Requires: GeoIP >= 1.6.5
16 stephdl 1.1 BuildRequires: e-smith-devtools >= 1.13.1-03
17 jcrisp 1.9 Patch0: smeserver-geoip-conf-typo.patch
18 jcrisp 1.10 Patch1: smeserver-geoip-fix-city-createlinks.patch
19 jpp 1.12 Patch2: smeserver-geoip-1.2-check_badcountries.patch
20 jcrisp 1.14 Patch3: smeserver-geoip-1.2-check_badcountries-mailstats.patch
21 jpp 1.16 Patch4: smeserver-geoip-1.2-bz10820-geoipv1-blockvountries-qpsmtpd.patch
22 jpp 1.17 Patch5: smeserver-geoip-1.2-bz10815-display-country.patch
23 jpp 1.18 Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch
24 jcrisp 1.21 Patch7: smeserver-geoip-1.2-fix-product-id.patch
25 reetspetit 1.6
26 stephdl 1.1 %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.
28    
29     CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
30     SIGNAL EVENT: signal-event email-update
31    
32 jpp 1.11 #----------------------------------------------------
33    
34     %package -n smeserver-geoip1
35     Summary: SME Server geoip plugin v1
36     Group: Email
37     Requires: perl-Geo-IP
38     Requires: GeoIP >= 1.6.5
39     BuildRequires: e-smith-devtools >= 1.13.1-03
40    
41     %description -n smeserver-geoip1
42     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.
43    
44     CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
45     SIGNAL EVENT: signal-event email-update
46     #----------------------------------------------------
47    
48     %package -n smeserver-geoip2
49     Summary: SME Server geoip plugin v2
50     Group: Email
51 jpp 1.15 Requires: smeserver-geoip
52 jpp 1.11 Requires: perl-GeoIP2
53     Requires: GeoIP >= 1.6.5
54 jpp 1.18 Requires: libmaxminddb >= 1.1.1
55     Requires: libmaxminddb-devel >= 1.1.1
56     Requires: geolite2-country
57     Requires: geolite2-city
58 jpp 1.11 BuildRequires: e-smith-devtools >= 1.13.1-03
59    
60    
61     %description -n smeserver-geoip2
62     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.
63    
64     CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
65     SIGNAL EVENT: signal-event email-update
66     #----------------------------------------------------
67    
68 stephdl 1.1 %changelog
69 jcrisp 1.21 * 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 jpp 1.20 * Tue Jan 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-13.sme
74 jpp 1.18 - add support for mmdblookup [SME: 10740]
75     - add support for download with AccountID and LicenseKey [SME: 10859]
76    
77 jpp 1.17 * 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 jpp 1.16 * 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 jpp 1.15 * 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 jcrisp 1.14 * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-7.sme
88     - Update check_badcountries to work with mailstats
89    
90 jpp 1.13 * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-6.sme
91     - remove crontab fragment for v1 [SME: 10691]
92    
93 jpp 1.12 * 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 jpp 1.11 * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme
99 jpp 1.12 - split smeserver-geoip into smeserver-geoip and smeserver-geoip2 for compatibility [SME: 10691]
100     - TODO: workaround to find for plugin compatibility
101 jpp 1.11
102 jcrisp 1.10 * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
103     - Fix Use of uninitialized value $city in string eq
104     - Fix createlinks geoip-update action
105    
106 jcrisp 1.9 * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
107     - Fix typo in createlinks
108    
109 jcrisp 1.8 * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme
110     - Update to latest v2 DBs [SME: 9033]
111     - add geocity.pl and geocountry.pl test files
112    
113 unnilennium 1.7 * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme
114     - update requirement for GeoIP 1.6.5 [SME: 9714]
115    
116 reetspetit 1.6 * Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6
117 unnilennium 1.7 - Use newer versions of GeoIP databases [SME: 9714]
118 reetspetit 1.6
119 reetspetit 1.5 * Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5
120     - Add ability to whitelist an IP [SME:8981]
121    
122 stephdl 1.4 * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4
123     - the event geoip-update download the geoip database
124     - added smeserver-geoip-1.1.2.geoip-update-event.patch
125 stephdl 1.3
126 stephdl 1.2 * Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2
127 stephdl 1.1 - added createlinks
128     - added actions and crontab to download geoip database
129    
130     * Mon Sep 03 2012 Doug Kruhm <dakruhm@daknetworks.net> 1.0.5
131     - defining $country to reduce noise if not found [SME: 5011]
132     - fixed misspelling in response if country is blocked [SME: 7058]
133     - cleaning up versioning to MAJOR-MINOR-PATCH
134    
135     * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-04
136     - added response to connecting server if blocked [SME: 5011]
137    
138     * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-03
139     - added line to reduce log noise [SME: 5011]
140    
141     * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-02
142     - db defaults migrated from SPEC file to rpm files [SME: 5193]
143     - removed %post and %postun macros [SME: 5194]
144     - added Requires perl-Geo-IP [SME: 1866]
145     - added e-smith-devtools as a requirement [SME: 1866]
146    
147     * Thu Jun 16 2007 Doug Kruhm <dakruhm@daknetworks.net>
148     - 1.0.0-01
149     - Original version
150    
151    
152     %prep
153     %setup
154 jcrisp 1.9 %patch0 -p1
155 jcrisp 1.10 %patch1 -p1
156 jpp 1.12 %patch2 -p1
157 jcrisp 1.14 %patch3 -p1
158 jpp 1.16 %patch4 -p1
159 jpp 1.17 %patch5 -p1
160 jpp 1.18 %patch6 -p1
161 jcrisp 1.21 %patch7 -p1
162 stephdl 1.1
163     %build
164     %{__mkdir_p} root/var/lib/GeoIP
165     perl createlinks
166    
167     %install
168     rm -rf $RPM_BUILD_ROOT
169     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
170     rm -f %{name}-%{version}-filelist
171     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
172    
173 jpp 1.11 cat %{name}-%{version}-filelist \
174     |grep -v 'etc/e-smith/templates/etc/GeoIP.conf' \
175     |grep -v 'usr/bin/geocity.pl' \
176     |grep -v 'usr/bin/geocountry.pl'\
177     |grep -v 'smeserver-geopip-download-action' \
178     |grep -v 'templates2expand/etc/GeoIP.conf' \
179 jpp 1.13 |grep -v '/etc/crontab/91_Update_Geoip_db' \
180 jpp 1.18 |grep -v '/usr/bin/geoiplook' \
181 jpp 1.20 |grep -v '/etc/e-smith/db/configuration/defaults/geoip' \
182 jpp 1.11 > %{name}-%{version}-filelist-v1
183 jpp 1.15 diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2
184 jpp 1.11
185 stephdl 1.1 %clean
186     rm -rf $RPM_BUILD_ROOT
187    
188     %post
189    
190     %postun
191    
192 jpp 1.11 %files -f %{name}-%{version}-filelist-v1
193 stephdl 1.1 %defattr(-,root,root)
194 jpp 1.11
195    
196    
197 jpp 1.15 %files -n smeserver-geoip2 -f %{name}-%{version}-filelist-v2
198 jpp 1.11 %defattr(-,root,root,-)
199    
200     %files -n smeserver-geoip1 -f %{name}-%{version}-filelist-v1
201     %defattr(-,root,root,-)
202    
203    
204    

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