/[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.15 - (hide annotations) (download)
Fri Jan 25 02:57:46 2019 UTC (5 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-8_el6_sme
Changes since 1.14: +8 -2 lines
* Thu Jan 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-8.sme
- make smeserver-geoip2 requires smeserver-geoip  [SME: 10691]
  this will avoid having both packages sharing few files.

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

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