/[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.9 - (show annotations) (download)
Sat Jun 23 11:28:41 2018 UTC (6 years, 4 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-2_el6_sme
Changes since 1.8: +6 -3 lines
* Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
- Fix typo in createlinks

1 %define name smeserver-geoip
2 %define version 1.2
3 %define release 2
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: perl-GeoIP2
16 Requires: GeoIP >= 1.6.5
17 BuildRequires: e-smith-devtools >= 1.13.1-03
18 Patch0: smeserver-geoip-conf-typo.patch
19
20 %description
21 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.
22
23 CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
24 SIGNAL EVENT: signal-event email-update
25
26 %changelog
27 * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
28 - Fix typo in createlinks
29
30 * Tue Jun 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-1.sme
31 - Update to latest v2 DBs [SME: 9033]
32 - add geocity.pl and geocountry.pl test files
33
34 * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme
35 - update requirement for GeoIP 1.6.5 [SME: 9714]
36
37 * Thu Dec 22 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-6
38 - Use newer versions of GeoIP databases [SME: 9714]
39
40 * Wed Sep 23 2015 John Crisp <jcrisp@safeandsoundit.co.uk> 1.1.2-5
41 - Add ability to whitelist an IP [SME:8981]
42
43 * Tue Sep 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-4
44 - the event geoip-update download the geoip database
45 - added smeserver-geoip-1.1.2.geoip-update-event.patch
46
47 * Sun Jun 14 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1.2-2
48 - added createlinks
49 - added actions and crontab to download geoip database
50
51 * Mon Sep 03 2012 Doug Kruhm <dakruhm@daknetworks.net> 1.0.5
52 - defining $country to reduce noise if not found [SME: 5011]
53 - fixed misspelling in response if country is blocked [SME: 7058]
54 - cleaning up versioning to MAJOR-MINOR-PATCH
55
56 * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-04
57 - added response to connecting server if blocked [SME: 5011]
58
59 * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-03
60 - added line to reduce log noise [SME: 5011]
61
62 * Fri May 01 2009 Doug Kruhm <dakruhm@daknetworks.net> 1.0.0-02
63 - db defaults migrated from SPEC file to rpm files [SME: 5193]
64 - removed %post and %postun macros [SME: 5194]
65 - added Requires perl-Geo-IP [SME: 1866]
66 - added e-smith-devtools as a requirement [SME: 1866]
67
68 * Thu Jun 16 2007 Doug Kruhm <dakruhm@daknetworks.net>
69 - 1.0.0-01
70 - Original version
71
72
73 %prep
74 %setup
75 %patch0 -p1
76
77 %build
78 %{__mkdir_p} root/var/lib/GeoIP
79 perl createlinks
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
84 rm -f %{name}-%{version}-filelist
85 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post
91
92 %postun
93
94 %files -f %{name}-%{version}-filelist
95 %defattr(-,root,root)

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