1 |
%define name smeserver-xt_geoip |
%define name smeserver-xt_geoip |
2 |
%define version 1.0.1 |
%define version 1.0.1 |
3 |
%define release 5 |
%define release 14 |
4 |
Summary: smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
Summary: smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
5 |
Name: %{name} |
Name: %{name} |
6 |
Version: %{version} |
Version: %{version} |
12 |
Patch0: smeserver-xt_geoip-1.0.1-2-weakupd.patch |
Patch0: smeserver-xt_geoip-1.0.1-2-weakupd.patch |
13 |
Patch1: smeserver-xt_geoip-1.0.1-3-messag.patch |
Patch1: smeserver-xt_geoip-1.0.1-3-messag.patch |
14 |
Patch2: smeserver-xt_geoip-1.0.1-4-crontab.patch |
Patch2: smeserver-xt_geoip-1.0.1-4-crontab.patch |
15 |
|
Patch3: smeserver-xt_geoip-1.0.1-bz10739.patch |
16 |
|
Patch4: smeserver-xt_geoip-1.0.1-stats.patch |
17 |
|
Patch5: smeserver-xt_geoip-1.0.1-stats_panel.patch |
18 |
|
Patch6: smeserver-xt_geoip-1.0.1-per_serv.patch |
19 |
|
Patch7: smeserver-xt_geoip-1.0.1-bz10760-safe-reload.patch |
20 |
|
Patch8: smeserver-xt_geoip-1.0.1-bz10760-per_serv2.patch |
21 |
|
|
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
24 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
25 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.0 |
26 |
Requires: xtables-addons = 1.47.1 |
Requires: xtables-addons = 1.47.1 |
27 |
|
Requires: GeoIP = 1.6.5 |
28 |
AutoReqProv: no |
AutoReqProv: no |
29 |
|
|
30 |
%description |
%description |
31 |
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Tue Jul 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-14.sme |
35 |
|
- improved per service filtering [SME: 10760] |
36 |
|
- remove A1 forced as default and allow empty filter [SME: 10785] |
37 |
|
|
38 |
|
* Sun Jul 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-13.sme |
39 |
|
- fix network lock out on adjust [SME: 10760] |
40 |
|
this arised on initial install with a simple masq adjust |
41 |
|
or if XT_geoip is disbaled on any masq restart or adjust |
42 |
|
|
43 |
|
* Wed Apr 24 2019 Michel Begue <mab974@gmail.com> 1.0.1-12.sme |
44 |
|
- add per service management of GeoIP bans [SME: 10760] |
45 |
|
- move panel to Security [SME: 10773] |
46 |
|
|
47 |
|
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-9.sme |
48 |
|
- add stats access in the panel [SME: 10745] |
49 |
|
- add control of maximum number of countries [SME: 10749] |
50 |
|
|
51 |
|
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
52 |
|
- add stats of geoip blocked countries [SME: 10745] |
53 |
|
- add stats of ssh attacks not geoip blocked [SME: 10744] |
54 |
|
- expand /etc/crontab on update |
55 |
|
|
56 |
|
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
57 |
|
- fix unable to load iptables rules [SME: 10739] |
58 |
|
fix warning localtime |
59 |
|
fix warning "enabled" isn't numeric in numeric eq (==) |
60 |
|
|
61 |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
62 |
- first import to SME buildsys |
- first import to SME buildsys |
63 |
|
|
89 |
%patch0 -p1 |
%patch0 -p1 |
90 |
%patch1 -p1 |
%patch1 -p1 |
91 |
%patch2 -p1 |
%patch2 -p1 |
92 |
|
%patch3 -p1 |
93 |
|
%patch4 -p1 |
94 |
|
%patch5 -p1 |
95 |
|
%patch6 -p1 |
96 |
|
%patch7 -p1 |
97 |
|
%patch8 -p1 |
98 |
|
|
99 |
%build |
%build |
100 |
perl createlinks |
perl createlinks |
105 |
|
|
106 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
107 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
108 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
109 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
110 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
111 |
|
|
123 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
124 |
%defattr(-,root,root) |
%defattr(-,root,root) |
125 |
|
|
126 |
|
%files |
127 |
|
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |