/[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.6 by jpp, Sun Mar 14 05:57:01 2021 UTC
# 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  Provides: smeserver-geoip2 >= 1.2-16
# Line 27  Patch4: smeserver-geoip-1.2-bz10820-geoi Line 28  Patch4: smeserver-geoip-1.2-bz10820-geoi
28  Patch5: smeserver-geoip-1.2-bz10815-display-country.patch  Patch5: smeserver-geoip-1.2-bz10815-display-country.patch
29  Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch  Patch6: smeserver-geoip-1.2-bz10859-bz10740.patch
30  Patch7: smeserver-geoip-1.2-fix-product-id.patch  Patch7: smeserver-geoip-1.2-fix-product-id.patch
31    Patch8: smeserver-geoip-1.2-sme10-update.patch
32    
33  %description  %description
34  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 56  The GEOIP plugin lets us know which coun Line 58  The GEOIP plugin lets us know which coun
58  - rebuild for SME10 [SME: 11023]  - rebuild for SME10 [SME: 11023]
59    make geoip2 default    make geoip2 default
60    create geoip-legacy package with old geoip1 stuffs    create geoip-legacy package with old geoip1 stuffs
61      smeserver-geoip(-legacy)-update events
62    
63  * 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
64  - Import to SME10 tree [SME: 11023]  - Import to SME10 tree [SME: 11023]
# Line 154  The GEOIP plugin lets us know which coun Line 157  The GEOIP plugin lets us know which coun
157  %patch6 -p1  %patch6 -p1
158  %patch7 -p1  %patch7 -p1
159  rm -rf root/var/  rm -rf root/var/
160    %patch8 -p1
161    mkdir -p root/etc/e-smith/events/smeserver-geoip-legacy
162    
163  %build  %build
164  perl createlinks  perl createlinks
# Line 162  perl createlinks Line 167  perl createlinks
167  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
168  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
169  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
170  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
171      --file /usr/bin/geoiplook 'attr(0755,root,root)' \
172    > %{name}-%{version}-filelist
173    
174  cat %{name}-%{version}-filelist \  cat %{name}-%{version}-filelist \
175  > %{name}-%{version}-filelist  |grep -v 'etc/e-smith/events/smeserver-geoip-legacy' \
176  #|grep -v 'etc/e-smith/templates/etc/GeoIP.conf' \  > %{name}-%{version}-filelist-base
177  #|grep -v 'usr/bin/geocity.pl' \  cat %{name}-%{version}-filelist \
178  #|grep -v 'usr/bin/geocountry.pl'\  |grep 'etc/e-smith/events/smeserver-geoip-legacy' \
179  #|grep -v 'smeserver-geopip-download-action' \  > %{name}-%{version}-filelist-legacy
180  #|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  
181  #diff -u %{name}-%{version}-filelist %{name}-%{version}-filelist-v1 | grep -E "^\-"| sed -E 's/^\-//'|grep -v filelist > %{name}-%{version}-filelist-v2  #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  
182    
183  %clean  %clean
184  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 185  rm -rf $RPM_BUILD_ROOT Line 187  rm -rf $RPM_BUILD_ROOT
187    
188  %postun  %postun
189    
190  %files -f %{name}-%{version}-filelist-v1  %files -f %{name}-%{version}-filelist-base
191  %defattr(-,root,root)  %defattr(-,root,root)
192    
193    
194    
 %files -n smeserver-geoip2 -f %{name}-%{version}-filelist  
 %defattr(-,root,root,-)  
   
195  %files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy  %files -n smeserver-geoip-legacy -f %{name}-%{version}-filelist-legacy
196  %defattr(-,root,root,-)  %defattr(-,root,root,-)
197    


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