/[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.3 by jpp, Sun Mar 14 04:33:33 2021 UTC Revision 1.7 by jpp, Sun Mar 14 18:40:50 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 15  BuildArchitectures: noarch Line 15  BuildArchitectures: noarch
15  Requires: perl-GeoIP2  Requires: perl-GeoIP2
16  Requires: libmaxminddb >= 1.1.1  Requires: libmaxminddb >= 1.1.1
17  Requires: libmaxminddb-devel >= 1.1.1  Requires: libmaxminddb-devel >= 1.1.1
18    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    Requires: GeoIP-GeoLite-data
25    Requires: GeoIP-GeoLite-data-extra
26    #
27    Provides: smeserver-geoip2 = %{version}-%{release}
28    PRovides: smeserver-geoip-legacy = %{version}-%{release}
29  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
30  Patch0: smeserver-geoip-conf-typo.patch  Patch0: smeserver-geoip-conf-typo.patch
31  Patch1: smeserver-geoip-fix-city-createlinks.patch  Patch1: smeserver-geoip-fix-city-createlinks.patch
# Line 27  Patch4: smeserver-geoip-1.2-bz10820-geoi Line 35  Patch4: smeserver-geoip-1.2-bz10820-geoi
35  Patch5: smeserver-geoip-1.2-bz10815-display-country.patch  Patch5: smeserver-geoip-1.2-bz10815-display-country.patch
36  Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch  Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch
37  Patch7: smeserver-geoip-1.2-fix-product-id.patch  Patch7: smeserver-geoip-1.2-fix-product-id.patch
38    Patch8: smeserver-geoip-1.2-sme10-update.patch
39    
40  %description  %description
41  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 35  CHANGE THE CONFIG DB: config setprop qps Line 44  CHANGE THE CONFIG DB: config setprop qps
44  SIGNAL EVENT: signal-event email-update  SIGNAL EVENT: signal-event email-update
45    
46  #----------------------------------------------------  #----------------------------------------------------
47    #%package        -n smeserver-geoip-legacy
48  %package        -n smeserver-geoip-legacy  #Summary:        SME Server geoip plugin v1
49  Summary:        SME Server geoip plugin v1  #Group:          Email
50  Group:          Email  #Requires:      perl-Geo-IP
51  Requires:       perl-Geo-IP  #Requires:      GeoIP >= 1.6.5
52  Requires:       GeoIP >= 1.6.5  #Requires:      GeoIP-GeoLite-data
53  Requires:       GeoIP-GeoLite-data  #Requires:      GeoIP-GeoLite-data-extra
54  Requires:       GeoIP-GeoLite-data-extra  #Requires:      smeserver-geoip = %{version}-%{release}
55  Requires:       smeserver-geoip >= 1.2-16  #BuildRequires:         e-smith-devtools >= 1.13.1-03
56  BuildRequires:  e-smith-devtools >= 1.13.1-03  #%description    -n smeserver-geoip-legacy
57    #Package to use the legacy plugin. DB are not updated since 2018
58  %description    -n smeserver-geoip-legacy  #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.
 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.  
59  #----------------------------------------------------  #----------------------------------------------------
60    
61  %changelog  %changelog
62    * Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-17.sme
63    - merge legacy with main as we have few packages still using legacy [SME: 11023]
64      those are php*-pecl-geoip proftpd bind-libs* bind-utils.
65    
66  * 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
67  - rebuild for SME10 [SME: 11023]  - rebuild for SME10 [SME: 11023]
68    make geoip2 default    make geoip2 default
69    create geoip-legacy package with old geoip1 stuffs    create geoip-legacy package with old geoip1 stuffs
70      smeserver-geoip(-legacy)-update events
71    
72  * Tue Oct 06 2020 Brian Read <brianr@bjsystems.co.uk> 1.2-15.sme  * Tue Oct 06 2020 Brian Read <brianr@bjsystems.co.uk> 1.2-15.sme
73  - Import to SME10 tree [SME: 11023]  - Import to SME10 tree [SME: 11023]
# Line 154  The GEOIP plugin lets us know which coun Line 166  The GEOIP plugin lets us know which coun
166  %patch6 -p1  %patch6 -p1
167  %patch7 -p1  %patch7 -p1
168  rm -rf root/var/  rm -rf root/var/
169    %patch8 -p1
170    # commented for legacy
171    #mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy
172    
173  %build  %build
174  perl createlinks  perl createlinks
# Line 162  perl createlinks Line 177  perl createlinks
177  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
178  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
179  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
180  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
181      --file /usr/bin/geoiplook 'attr(0755,root,root)' \
182    > %{name}-%{version}-filelist
183    
184  cat %{name}-%{version}-filelist \  cat %{name}-%{version}-filelist \
185  > %{name}-%{version}-filelist  |grep -v 'etc/e-smith/events/smeserver-geoip-legacy' \
186  #|grep -v 'etc/e-smith/templates/etc/GeoIP.conf' \  > %{name}-%{version}-filelist-base
187  #|grep -v 'usr/bin/geocity.pl' \  #cat %{name}-%{version}-filelist \
188  #|grep -v 'usr/bin/geocountry.pl'\  #|grep 'etc/e-smith/events/smeserver-geoip-legacy' \
189  #|grep -v 'smeserver-geopip-download-action' \  #> %{name}-%{version}-filelist-legacy
190  #|grep -v 'templates2expand/etc/GeoIP.conf' \  
 #|grep -v '/etc/crontab/91_Update_Geoip_db' \  
 #|grep -v '/usr/bin/geoiplook' \  
 #|grep -v '/etc/e-smith/db/configuration/defaults/geoip' \  
 # > %{name}-%{version}-filelist-v1  
 #diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2  
 touch %{name}-%{version}-filelist-legacy  
191    
192  %clean  %clean
193  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 185  rm -rf $RPM_BUILD_ROOT Line 196  rm -rf $RPM_BUILD_ROOT
196    
197  %postun  %postun
198    
199  %files -f %{name}-%{version}-filelist-v1  %files -f %{name}-%{version}-filelist-base
200  %defattr(-,root,root)  %defattr(-,root,root)
201    
202    
203    
204  %files -n smeserver-geoip2 -f %{name}-%{version}-filelist  #%files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy
205  %defattr(-,root,root,-)  #%defattr(-,root,root,-)
   
 %files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy  
 %defattr(-,root,root,-)  
206    
207    
208    


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