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

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

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


Revision 1.3 - (show annotations) (download)
Sun Mar 14 04:33:33 2021 UTC (3 years, 8 months ago) by jpp
Branch: MAIN
Changes since 1.2: +32 -40 lines
* Sat Mar 13 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-16.sme
- rebuild for SME10 [SME: 11023]
  make geoip2 default
  create geoip-legacy package with old geoip1 stuffs

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

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