/[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.14 - (hide annotations) (download)
Wed Jan 16 12:35:12 2019 UTC (5 years, 4 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-7_el6_sme
Changes since 1.13: +6 -1 lines
* Tue Jan 15 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-7.sme
- Update check_badcountries to work with mailstats

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

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