1 |
jpp |
1.1 |
%define name smeserver-xt_geoip |
2 |
|
|
%define version 1.0.1 |
3 |
jpp |
1.10 |
%define release 13 |
4 |
jpp |
1.1 |
Summary: smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
5 |
|
|
Name: %{name} |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GNU GPL version 2 |
9 |
|
|
URL: http://wiki.contribs.org/Main_Page |
10 |
|
|
Group: SMEserver/addon |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
|
|
Patch0: smeserver-xt_geoip-1.0.1-2-weakupd.patch |
13 |
|
|
Patch1: smeserver-xt_geoip-1.0.1-3-messag.patch |
14 |
|
|
Patch2: smeserver-xt_geoip-1.0.1-4-crontab.patch |
15 |
jpp |
1.3 |
Patch3: smeserver-xt_geoip-1.0.1-bz10739.patch |
16 |
michel |
1.4 |
Patch4: smeserver-xt_geoip-1.0.1-stats.patch |
17 |
michel |
1.5 |
Patch5: smeserver-xt_geoip-1.0.1-stats_panel.patch |
18 |
michel |
1.9 |
Patch6: smeserver-xt_geoip-1.0.1-per_serv.patch |
19 |
jpp |
1.10 |
Patch7: smeserver-xt_geoip-1.0.1-bz10760-safe-reload.patch |
20 |
jpp |
1.1 |
BuildArchitectures: noarch |
21 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
22 |
|
|
BuildRequires: e-smith-devtools |
23 |
|
|
Requires: e-smith-release >= 9.0 |
24 |
|
|
Requires: xtables-addons = 1.47.1 |
25 |
michel |
1.4 |
Requires: GeoIP = 1.6.5 |
26 |
jpp |
1.1 |
AutoReqProv: no |
27 |
|
|
|
28 |
|
|
%description |
29 |
|
|
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
30 |
|
|
|
31 |
|
|
%changelog |
32 |
jpp |
1.10 |
* Sun Jul 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-13.sme |
33 |
|
|
- fix network lock out on adjust [SME: 10760] |
34 |
|
|
this arised on initial install with a simple masq adjust |
35 |
|
|
or if XT_geoip is disbaled on any masq restart or adjust |
36 |
|
|
|
37 |
michel |
1.9 |
* Wed Apr 24 2019 Michel Begue <mab974@gmail.com> 1.0.1-12.sme |
38 |
michel |
1.7 |
- add per service management of GeoIP bans [SME: 10760] |
39 |
|
|
|
40 |
michel |
1.6 |
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-9.sme |
41 |
michel |
1.5 |
- add stats access in the panel [SME: 10745] |
42 |
|
|
- add control of maximum number of countries [SME: 10749] |
43 |
|
|
|
44 |
michel |
1.4 |
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
45 |
|
|
- add stats of geoip blocked countries [SME: 10745] |
46 |
|
|
- add stats of ssh attacks not geoip blocked [SME: 10744] |
47 |
|
|
- expand /etc/crontab on update |
48 |
|
|
|
49 |
jpp |
1.3 |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
50 |
|
|
- fix unable to load iptables rules [SME: 10739] |
51 |
|
|
fix warning localtime |
52 |
|
|
fix warning "enabled" isn't numeric in numeric eq (==) |
53 |
|
|
|
54 |
jpp |
1.2 |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
55 |
|
|
- first import to SME buildsys |
56 |
|
|
|
57 |
jpp |
1.1 |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
58 |
|
|
- bug in crontab update job, |
59 |
|
|
- [1.0.1-4] |
60 |
|
|
|
61 |
|
|
* Mon Oct 16 2017 Michel Begue <mab974@gmail.com> |
62 |
|
|
- new message : inactive GeoIP, |
63 |
|
|
- value of country code added in message "country not found", |
64 |
|
|
- [1.0.1-3] |
65 |
|
|
|
66 |
|
|
* Sat Oct 08 2017 Michel Begue <mab974@gmail.com> |
67 |
|
|
- test kernel module presence in "/lib/modules/weak-updates" directory |
68 |
|
|
- [1.0.1-2] |
69 |
|
|
|
70 |
|
|
* Wed Sep 20 2017 Michel Begue <mab974@gmail.com> |
71 |
|
|
- panel added in server manager |
72 |
|
|
- [1.0.1-1] |
73 |
|
|
|
74 |
|
|
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
75 |
|
|
- initial release |
76 |
|
|
- [1.0.0-1] |
77 |
|
|
- xtables-addons v1.47.1 (v1.x required for kernel 2.6.32) |
78 |
|
|
|
79 |
|
|
%prep |
80 |
|
|
|
81 |
|
|
%setup |
82 |
|
|
%patch0 -p1 |
83 |
|
|
%patch1 -p1 |
84 |
|
|
%patch2 -p1 |
85 |
jpp |
1.3 |
%patch3 -p1 |
86 |
michel |
1.4 |
%patch4 -p1 |
87 |
michel |
1.5 |
%patch5 -p1 |
88 |
michel |
1.7 |
%patch6 -p1 |
89 |
jpp |
1.10 |
%patch7 -p1 |
90 |
jpp |
1.1 |
|
91 |
|
|
%build |
92 |
|
|
perl createlinks |
93 |
|
|
|
94 |
|
|
|
95 |
|
|
%install |
96 |
|
|
rm -rf $RPM_BUILD_ROOT |
97 |
|
|
|
98 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
99 |
|
|
rm -f %{name}-%{version}-filelist |
100 |
michel |
1.4 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
101 |
jpp |
1.1 |
> %{name}-%{version}-filelist |
102 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
103 |
|
|
|
104 |
|
|
%clean |
105 |
|
|
cd .. |
106 |
|
|
rm -rf %{name}-%{version} |
107 |
|
|
|
108 |
|
|
%pre |
109 |
|
|
%preun |
110 |
|
|
|
111 |
|
|
%post |
112 |
|
|
|
113 |
|
|
%postun |
114 |
|
|
|
115 |
|
|
%files -f %{name}-%{version}-filelist |
116 |
|
|
%defattr(-,root,root) |
117 |
|
|
|
118 |
michel |
1.4 |
%files |
119 |
|
|
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |