/[smecontribs]/rpms/smeserver-geoip/contribs9/smeserver-geoip.spec
ViewVC logotype

Diff of /rpms/smeserver-geoip/contribs9/smeserver-geoip.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.7 by unnilennium, Wed Feb 15 14:44:04 2017 UTC Revision 1.11 by jpp, Sat Jan 5 05:03:30 2019 UTC
# Line 1  Line 1 
1  %define name smeserver-geoip  %define name smeserver-geoip
2  %define version 1.1.2  %define version 1.2
3  %define release 7  %define release 4
4    
5  Summary: SME Server geoip plugin  Summary: SME Server geoip plugin
6  Name: %{name}  Name: %{name}
# Line 12  Source: %{name}-%{version}.tar.gz Line 12  Source: %{name}-%{version}.tar.gz
12  Packager: Doug Kruhm <dakruhm@daknetworks.net>  Packager: Doug Kruhm <dakruhm@daknetworks.net>
13  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14  BuildArchitectures: noarch  BuildArchitectures: noarch
 Requires: perl-Geo-IP  
15  Requires: GeoIP >= 1.6.5  Requires: GeoIP >= 1.6.5
16  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
17  Patch0: smeserver-geoip-remove-createlink-add-geoip-download-actions.patch  Patch0: smeserver-geoip-conf-typo.patch
18  Patch1: smeserver-geoip-1.1.2.geoip-update-event.patch  Patch1: smeserver-geoip-fix-city-createlinks.patch
 Patch2: smeserver-geoip-whitelist_by_IP.patch  
 Patch3: smeserver-geoip-use-newer-databases.patch  
19    
20  %description  %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.  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.
# Line 26  The GEOIP plugin lets us know which coun Line 23  The GEOIP plugin lets us know which coun
23  CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)  CHANGE THE CONFIG DB: config setprop qpsmtpd BadCountries <countrycode> (i.e. config setprop qpsmtpd BadCountries BR)
24  SIGNAL EVENT: signal-event email-update  SIGNAL EVENT: signal-event email-update
25    
26    #----------------------------------------------------
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  %changelog  %changelog
58    * 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    * 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    * Sat Jun 23 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-2.sme
67    - Fix typo in createlinks
68    
69    * 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  * Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.2-7.sme  * 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]  - update requirement for GeoIP 1.6.5 [SME: 9714]
75    
# Line 70  SIGNAL EVENT: signal-event email-update Line 113  SIGNAL EVENT: signal-event email-update
113  %setup  %setup
114  %patch0 -p1  %patch0 -p1
115  %patch1 -p1  %patch1 -p1
 %patch2 -p1  
 %patch3 -p1  
116    
117  %build  %build
118  %{__mkdir_p} root/var/lib/GeoIP  %{__mkdir_p} root/var/lib/GeoIP
# Line 83  rm -rf $RPM_BUILD_ROOT Line 124  rm -rf $RPM_BUILD_ROOT
124  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
125  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
126    
127    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  %clean  %clean
136  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
137    
# Line 90  rm -rf $RPM_BUILD_ROOT Line 139  rm -rf $RPM_BUILD_ROOT
139    
140  %postun  %postun
141    
142  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist-v1
143  %defattr(-,root,root)  %defattr(-,root,root)
144    
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    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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