/[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.11 - (hide annotations) (download)
Sat Jan 5 05:03:30 2019 UTC (5 years, 10 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-geoip-1_2-4_el6_sme
Changes since 1.10: +56 -3 lines
* Fri Jan 04 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-4.sme
- split smeserver-geoip into smeservergeoip and smeserver-geoip2 for compatibility [SME: 10691]
- workaround to find for plugin compatibility

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

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