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

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

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


Revision 1.9 - (hide annotations) (download)
Thu Mar 18 06:55:24 2021 UTC (3 years, 2 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-18_el7_sme, HEAD
Changes since 1.8: +6 -1 lines
* Thu Mar 18 2021 Brian Read <brianr@bjsystems.co.uk> 1.2-18.sme
- Add expand template for the qpsmtpd peers [SME: 11023]

1 brianr 1.1 %define name smeserver-geoip
2     %define version 1.2
3 brianr 1.9 %define release 18
4 brianr 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 jpp 1.3 Requires: perl-GeoIP2
16     Requires: libmaxminddb >= 1.1.1
17     Requires: libmaxminddb-devel >= 1.1.1
18 jpp 1.5 Requires: geoipupdate
19 jpp 1.3 Requires: geolite2-country
20     Requires: geolite2-city
21 jpp 1.7 # for legacy
22     Requires: perl-Geo-IP
23     Requires: GeoIP >= 1.6.5
24     #
25     Provides: smeserver-geoip2 = %{version}-%{release}
26     PRovides: smeserver-geoip-legacy = %{version}-%{release}
27 brianr 1.1 BuildRequires: e-smith-devtools >= 1.13.1-03
28     Patch0: smeserver-geoip-conf-typo.patch
29     Patch1: smeserver-geoip-fix-city-createlinks.patch
30     Patch2: smeserver-geoip-1.2-check_badcountries.patch
31     Patch3: smeserver-geoip-1.2-check_badcountries-mailstats.patch
32     Patch4: smeserver-geoip-1.2-bz10820-geoipv1-blockvountries-qpsmtpd.patch
33     Patch5: smeserver-geoip-1.2-bz10815-display-country.patch
34     Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch
35     Patch7: smeserver-geoip-1.2-fix-product-id.patch
36 jpp 1.5 Patch8: smeserver-geoip-1.2-sme10-update.patch
37 brianr 1.9 Patch9: smeserver-geoip-1.2-Add-expand-template-for-the-qpsmtpd-peers.patch
38 brianr 1.1
39     %description
40     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.
41    
42     CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
43     SIGNAL EVENT: signal-event email-update
44    
45     #----------------------------------------------------
46 jpp 1.7 #%package -n smeserver-geoip-legacy
47     #Summary: SME Server geoip plugin v1
48     #Group: Email
49     #Requires: perl-Geo-IP
50     #Requires: GeoIP >= 1.6.5
51     #Requires: smeserver-geoip = %{version}-%{release}
52     #BuildRequires: e-smith-devtools >= 1.13.1-03
53     #%description -n smeserver-geoip-legacy
54     #Package to use the legacy plugin. DB are not updated since 2018
55     #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.
56 brianr 1.1 #----------------------------------------------------
57    
58     %changelog
59 brianr 1.9 * Thu Mar 18 2021 Brian Read <brianr@bjsystems.co.uk> 1.2-18.sme
60     - Add expand template for the qpsmtpd peers [SME: 11023]
61    
62 jpp 1.7 * Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-17.sme
63     - merge legacy with main as we have few packages still using legacy [SME: 11023]
64     those are php*-pecl-geoip proftpd bind-libs* bind-utils.
65    
66 jpp 1.3 * Sat Mar 13 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-16.sme
67     - rebuild for SME10 [SME: 11023]
68     make geoip2 default
69     create geoip-legacy package with old geoip1 stuffs
70 jpp 1.5 smeserver-geoip(-legacy)-update events
71 brianr 1.2
72     * Tue Oct 06 2020 Brian Read <brianr@bjsystems.co.uk> 1.2-15.sme
73     - Import to SME10 tree [SME: 11023]
74    
75 brianr 1.1 * Wed Jan 22 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-14.sme
76     - Change template from EditionID to ProductID
77     - fix 20databasestore has a trailing tilde
78    
79     * Tue Jan 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-13.sme
80     - add support for mmdblookup [SME: 10740]
81     - add support for download with AccountID and LicenseKey [SME: 10859]
82    
83     * Sun Oct 20 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-10.sme
84     - fix country not logged if no badcountries defined [SME: 10815]
85    
86     * Fri Oct 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-9.sme
87     - revert blocking country for geoipv1 qpsmtpd plugin [SME: 10820]
88    
89     * Thu Jan 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-8.sme
90     - make smeserver-geoip2 requires smeserver-geoip [SME: 10691]
91     this will avoid having both packages sharing few files.
92    
93     * Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-7.sme
94     - Update check_badcountries to work with mailstats
95    
96     * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-6.sme
97     - remove crontab fragment for v1 [SME: 10691]
98    
99     * Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-5.sme
100     - fix wrong loglevel LOGINFO instead of LOGNOTICE needed [SME: 10679]
101     - try first db v2 and back on v1 if not available [SME: 10691]
102     - workaround FATAL PLUGIN ERROR when method name_by_addr not existing priori geo-ip 1.39 [SME: 10691]
103    
104     * Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme
105     - split smeserver-geoip into smeserver-geoip and smeserver-geoip2 for compatibility [SME: 10691]
106     - TODO: workaround to find for plugin compatibility
107    
108     * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
109     - Fix Use of uninitialized value $city in string eq
110     - Fix createlinks geoip-update action
111    
112     * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
113     - Fix typo in createlinks
114    
115     * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme
116     - Update to latest v2 DBs [SME: 9033]
117     - add geocity.pl and geocountry.pl test files
118    
119     * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme
120     - update requirement for GeoIP 1.6.5 [SME: 9714]
121    
122     * Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6
123     - Use newer versions of GeoIP databases [SME: 9714]
124    
125     * Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5
126     - Add ability to whitelist an IP [SME:8981]
127    
128     * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4
129     - the event geoip-update download the geoip database
130     - added smeserver-geoip-1.1.2.geoip-update-event.patch
131    
132     * Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2
133     - added createlinks
134     - added actions and crontab to download geoip database
135    
136     * Mon Sep 03 2012 Doug Kruhm <dakruhm@daknetworks.net> 1.0.5
137     - defining $country to reduce noise if not found [SME: 5011]
138     - fixed misspelling in response if country is blocked [SME: 7058]
139     - cleaning up versioning to MAJOR-MINOR-PATCH
140    
141     * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-04
142     - added response to connecting server if blocked [SME: 5011]
143    
144     * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-03
145     - added line to reduce log noise [SME: 5011]
146    
147     * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-02
148     - db defaults migrated from SPEC file to rpm files [SME: 5193]
149     - removed %post and %postun macros [SME: 5194]
150     - added Requires perl-Geo-IP [SME: 1866]
151     - added e-smith-devtools as a requirement [SME: 1866]
152    
153     * Thu Jun 16 2007 Doug Kruhm <dakruhm@daknetworks.net>
154     - 1.0.0-01
155     - Original version
156    
157    
158     %prep
159     %setup
160     %patch0 -p1
161     %patch1 -p1
162     %patch2 -p1
163     %patch3 -p1
164     %patch4 -p1
165     %patch5 -p1
166     %patch6 -p1
167     %patch7 -p1
168 jpp 1.3 rm -rf root/var/
169 jpp 1.5 %patch8 -p1
170 brianr 1.9 %patch9 -p1
171 jpp 1.7 # commented for legacy
172     #mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy
173 brianr 1.1
174     %build
175     perl createlinks
176    
177     %install
178     rm -rf $RPM_BUILD_ROOT
179     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
180     rm -f %{name}-%{version}-filelist
181 jpp 1.6 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
182     --file /usr/bin/geoiplook 'attr(0755,root,root)' \
183     > %{name}-%{version}-filelist
184 brianr 1.1
185     cat %{name}-%{version}-filelist \
186 jpp 1.5 |grep -v 'etc/e-smith/events/smeserver-geoip-legacy' \
187     > %{name}-%{version}-filelist-base
188 jpp 1.7 #cat %{name}-%{version}-filelist \
189     #|grep 'etc/e-smith/events/smeserver-geoip-legacy' \
190     #> %{name}-%{version}-filelist-legacy
191 jpp 1.5
192 brianr 1.1
193     %clean
194     rm -rf $RPM_BUILD_ROOT
195    
196     %post
197    
198     %postun
199    
200 jpp 1.5 %files -f %{name}-%{version}-filelist-base
201 brianr 1.1 %defattr(-,root,root)
202    
203    
204    
205 jpp 1.7 #%files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy
206     #%defattr(-,root,root,-)
207 brianr 1.1
208    
209    

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