/[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.13 - (show annotations) (download)
Sat Jan 5 20:02:56 2019 UTC (5 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-6_el6_sme
Changes since 1.12: +5 -1 lines
* Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-6.sme
- remove crontab fragment for v1 [SME: 10691]

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

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