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

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

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


Revision 1.16 - (show annotations) (download)
Fri Oct 18 22:13:31 2019 UTC (4 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-9_el6_sme
Changes since 1.15: +6 -1 lines
* Fri Oct 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-9.sme
- revert blocking country for geoipv1 qpsmtpd plugin [SME: 10820]

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

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