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

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

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

Revision 1.6 by jpp, Sun Mar 14 05:57:01 2021 UTC Revision 1.8 by jpp, Sun Mar 14 19:44:03 2021 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 16  %define release 17
4    
5  Summary: SME Server geoip plugin  Summary: SME Server geoip plugin
6  Name: %{name}  Name: %{name}
# Line 18  Requires: libmaxminddb-devel >= 1.1.1 Line 18  Requires: libmaxminddb-devel >= 1.1.1
18  Requires: geoipupdate  Requires: geoipupdate
19  Requires: geolite2-country  Requires: geolite2-country
20  Requires: geolite2-city  Requires: geolite2-city
21  Provides: smeserver-geoip2 >= 1.2-16  # for legacy
22    Requires: perl-Geo-IP
23    Requires: GeoIP >= 1.6.5
24    #
25    Provides: smeserver-geoip2 = %{version}-%{release}
26    PRovides: smeserver-geoip-legacy = %{version}-%{release}
27  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
28  Patch0: smeserver-geoip-conf-typo.patch  Patch0: smeserver-geoip-conf-typo.patch
29  Patch1: smeserver-geoip-fix-city-createlinks.patch  Patch1: smeserver-geoip-fix-city-createlinks.patch
# Line 37  CHANGE THE CONFIG DB: config setprop qps Line 42  CHANGE THE CONFIG DB: config setprop qps
42  SIGNAL EVENT: signal-event email-update  SIGNAL EVENT: signal-event email-update
43    
44  #----------------------------------------------------  #----------------------------------------------------
45    #%package        -n smeserver-geoip-legacy
46  %package        -n smeserver-geoip-legacy  #Summary:        SME Server geoip plugin v1
47  Summary:        SME Server geoip plugin v1  #Group:          Email
48  Group:          Email  #Requires:      perl-Geo-IP
49  Requires:       perl-Geo-IP  #Requires:      GeoIP >= 1.6.5
50  Requires:       GeoIP >= 1.6.5  #Requires:      smeserver-geoip = %{version}-%{release}
51  Requires:       GeoIP-GeoLite-data  #BuildRequires:         e-smith-devtools >= 1.13.1-03
52  Requires:       GeoIP-GeoLite-data-extra  #%description    -n smeserver-geoip-legacy
53  Requires:       smeserver-geoip >= 1.2-16  #Package to use the legacy plugin. DB are not updated since 2018
54  BuildRequires:  e-smith-devtools >= 1.13.1-03  #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.
   
 %description    -n smeserver-geoip-legacy  
 Package to use the legacy plugin. DB are not updated since 2018  
 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.  
55  #----------------------------------------------------  #----------------------------------------------------
56    
57  %changelog  %changelog
58    * Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-17.sme
59    - merge legacy with main as we have few packages still using legacy [SME: 11023]
60      those are php*-pecl-geoip proftpd bind-libs* bind-utils.
61    
62  * Sat Mar 13 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-16.sme  * Sat Mar 13 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-16.sme
63  - rebuild for SME10 [SME: 11023]  - rebuild for SME10 [SME: 11023]
64    make geoip2 default    make geoip2 default
# Line 158  The GEOIP plugin lets us know which coun Line 163  The GEOIP plugin lets us know which coun
163  %patch7 -p1  %patch7 -p1
164  rm -rf root/var/  rm -rf root/var/
165  %patch8 -p1  %patch8 -p1
166  mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy  # commented for legacy
167    #mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy
168    
169  %build  %build
170  perl createlinks  perl createlinks
# Line 174  rm -f %{name}-%{version}-filelist Line 180  rm -f %{name}-%{version}-filelist
180  cat %{name}-%{version}-filelist \  cat %{name}-%{version}-filelist \
181  |grep -v 'etc/e-smith/events/smeserver-geoip-legacy' \  |grep -v 'etc/e-smith/events/smeserver-geoip-legacy' \
182  > %{name}-%{version}-filelist-base  > %{name}-%{version}-filelist-base
183  cat %{name}-%{version}-filelist \  #cat %{name}-%{version}-filelist \
184  |grep 'etc/e-smith/events/smeserver-geoip-legacy' \  #|grep 'etc/e-smith/events/smeserver-geoip-legacy' \
185  > %{name}-%{version}-filelist-legacy  #> %{name}-%{version}-filelist-legacy
186    
 #diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2  
187    
188  %clean  %clean
189  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 192  rm -rf $RPM_BUILD_ROOT Line 197  rm -rf $RPM_BUILD_ROOT
197    
198    
199    
200  %files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy  #%files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy
201  %defattr(-,root,root,-)  #%defattr(-,root,root,-)
202    
203    
204    


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