/[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.7 - (hide annotations) (download)
Sun Mar 14 18:40:50 2021 UTC (3 years, 2 months ago) by jpp
Branch: MAIN
Changes since 1.6: +32 -23 lines
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-17.sme
- merge legacy with main as we have few packages still using legacy [SME: 11023]
  those are php*-pecl-geoip proftpd bind-libs* bind-utils.

1 brianr 1.1 %define name smeserver-geoip
2     %define version 1.2
3 jpp 1.7 %define release 17
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     Requires: GeoIP-GeoLite-data
25     Requires: GeoIP-GeoLite-data-extra
26     #
27     Provides: smeserver-geoip2 = %{version}-%{release}
28     PRovides: smeserver-geoip-legacy = %{version}-%{release}
29 brianr 1.1 BuildRequires: e-smith-devtools >= 1.13.1-03
30     Patch0: smeserver-geoip-conf-typo.patch
31     Patch1: smeserver-geoip-fix-city-createlinks.patch
32     Patch2: smeserver-geoip-1.2-check_badcountries.patch
33     Patch3: smeserver-geoip-1.2-check_badcountries-mailstats.patch
34     Patch4: smeserver-geoip-1.2-bz10820-geoipv1-blockvountries-qpsmtpd.patch
35     Patch5: smeserver-geoip-1.2-bz10815-display-country.patch
36     Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch
37     Patch7: smeserver-geoip-1.2-fix-product-id.patch
38 jpp 1.5 Patch8: smeserver-geoip-1.2-sme10-update.patch
39 brianr 1.1
40     %description
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 jpp 1.7 #%package -n smeserver-geoip-legacy
48     #Summary: SME Server geoip plugin v1
49     #Group: Email
50     #Requires: perl-Geo-IP
51     #Requires: GeoIP >= 1.6.5
52     #Requires: GeoIP-GeoLite-data
53     #Requires: GeoIP-GeoLite-data-extra
54     #Requires: smeserver-geoip = %{version}-%{release}
55     #BuildRequires: e-smith-devtools >= 1.13.1-03
56     #%description -n smeserver-geoip-legacy
57     #Package to use the legacy plugin. DB are not updated since 2018
58     #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.
59 brianr 1.1 #----------------------------------------------------
60    
61     %changelog
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 jpp 1.7 # commented for legacy
171     #mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy
172 brianr 1.1
173     %build
174     perl createlinks
175    
176     %install
177     rm -rf $RPM_BUILD_ROOT
178     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
179     rm -f %{name}-%{version}-filelist
180 jpp 1.6 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
181     --file /usr/bin/geoiplook 'attr(0755,root,root)' \
182     > %{name}-%{version}-filelist
183 brianr 1.1
184     cat %{name}-%{version}-filelist \
185 jpp 1.5 |grep -v 'etc/e-smith/events/smeserver-geoip-legacy' \
186     > %{name}-%{version}-filelist-base
187 jpp 1.7 #cat %{name}-%{version}-filelist \
188     #|grep 'etc/e-smith/events/smeserver-geoip-legacy' \
189     #> %{name}-%{version}-filelist-legacy
190 jpp 1.5
191 brianr 1.1
192     %clean
193     rm -rf $RPM_BUILD_ROOT
194    
195     %post
196    
197     %postun
198    
199 jpp 1.5 %files -f %{name}-%{version}-filelist-base
200 brianr 1.1 %defattr(-,root,root)
201    
202    
203    
204 jpp 1.7 #%files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy
205     #%defattr(-,root,root,-)
206 brianr 1.1
207    
208    

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