/[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.12 - (hide annotations) (download)
Sat Jan 5 19:53:29 2019 UTC (5 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-5_el6_sme
Changes since 1.11: +10 -3 lines
* Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-5.sme
- fix wrong loglevel LOGINFO instead of LOGNOTICE needed [SME: 10679]
- try first db v2 and back on v1 if not available [SME: 10691]
- workaround FATAL PLUGIN ERROR when method name_by_addr not existing priori geo-ip 1.39 [SME: 10691]

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

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