/[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.10 by jcrisp, Mon Oct 29 11:23:10 2018 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.2  %define version 1.2
3  %define release 3  %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-GeoIP2  
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-conf-typo.patch  Patch0: smeserver-geoip-conf-typo.patch
# Line 24  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  * Mon Oct 29 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 1.2-3.sme
63  - Fix Use of uninitialized value $city in string eq  - Fix Use of uninitialized value $city in string eq
64  - Fix createlinks geoip-update action  - Fix createlinks geoip-update action
# Line 90  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 97  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