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 04 |
%define release 10 |
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_service.patch |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
21 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
22 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.0 |
23 |
Requires: xtables-addons = 1.47.1 |
Requires: xtables-addons = 1.47.1 |
24 |
|
Requires: GeoIP = 1.6.5 |
25 |
AutoReqProv: no |
AutoReqProv: no |
26 |
|
|
27 |
%description |
%description |
28 |
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. |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Wed Apr 24 2019 Michel Begue <mab974@gmail.com> 1.0.1-10.sme |
32 |
|
- add per service management of GeoIP bans [SME: 10760] |
33 |
|
|
34 |
|
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-9.sme |
35 |
|
- add stats access in the panel [SME: 10745] |
36 |
|
- add control of maximum number of countries [SME: 10749] |
37 |
|
|
38 |
|
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
39 |
|
- add stats of geoip blocked countries [SME: 10745] |
40 |
|
- add stats of ssh attacks not geoip blocked [SME: 10744] |
41 |
|
- expand /etc/crontab on update |
42 |
|
|
43 |
|
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
44 |
|
- fix unable to load iptables rules [SME: 10739] |
45 |
|
fix warning localtime |
46 |
|
fix warning "enabled" isn't numeric in numeric eq (==) |
47 |
|
|
48 |
|
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
49 |
|
- first import to SME buildsys |
50 |
|
|
51 |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
52 |
- bug in crontab update job, |
- bug in crontab update job, |
53 |
- [1.0.1-4] |
- [1.0.1-4] |
76 |
%patch0 -p1 |
%patch0 -p1 |
77 |
%patch1 -p1 |
%patch1 -p1 |
78 |
%patch2 -p1 |
%patch2 -p1 |
79 |
|
%patch3 -p1 |
80 |
|
%patch4 -p1 |
81 |
|
%patch5 -p1 |
82 |
|
%patch6 -p1 |
83 |
|
|
84 |
%build |
%build |
85 |
perl createlinks |
perl createlinks |
90 |
|
|
91 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
92 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
93 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
94 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
95 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
96 |
|
|
108 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
109 |
%defattr(-,root,root) |
%defattr(-,root,root) |
110 |
|
|
111 |
|
%files |
112 |
|
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |