/[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.17 - (hide annotations) (download)
Mon Oct 21 01:48:39 2019 UTC (5 years, 1 month ago) by jpp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-10_el6_sme
Changes since 1.16: +6 -1 lines
* Sun Oct 20 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-10.sme
- fix country not logged if no badcountries defined [SME: 10815]

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

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