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 6 |
%define release 7 |
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} |
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 |
Patch3: smeserver-xt_geoip-1.0.1-bz10739.patch |
16 |
|
Patch4: smeserver-xt_geoip-1.0.1-stats.patch |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
20 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.0 |
21 |
Requires: xtables-addons = 1.47.1 |
Requires: xtables-addons = 1.47.1 |
22 |
|
Requires: GeoIP = 1.6.5 |
23 |
AutoReqProv: no |
AutoReqProv: no |
24 |
|
|
25 |
%description |
%description |
26 |
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. |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
|
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
30 |
|
- add stats of geoip blocked countries [SME: 10745] |
31 |
|
- add stats of ssh attacks not geoip blocked [SME: 10744] |
32 |
|
- expand /etc/crontab on update |
33 |
|
|
34 |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
35 |
- fix unable to load iptables rules [SME: 10739] |
- fix unable to load iptables rules [SME: 10739] |
36 |
fix warning localtime |
fix warning localtime |
68 |
%patch1 -p1 |
%patch1 -p1 |
69 |
%patch2 -p1 |
%patch2 -p1 |
70 |
%patch3 -p1 |
%patch3 -p1 |
71 |
|
%patch4 -p1 |
72 |
|
|
73 |
%build |
%build |
74 |
perl createlinks |
perl createlinks |
79 |
|
|
80 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
81 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
82 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
83 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
84 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
85 |
|
|
97 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
98 |
%defattr(-,root,root) |
%defattr(-,root,root) |
99 |
|
|
100 |
|
%files |
101 |
|
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |