1 |
%define name smeserver-xt_geoip |
2 |
%define version 1.0.1 |
3 |
%define release 8 |
4 |
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 |
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 |
BuildArchitectures: noarch |
19 |
BuildRoot: /var/tmp/%{name}-%{version} |
20 |
BuildRequires: e-smith-devtools |
21 |
Requires: e-smith-release >= 9.0 |
22 |
Requires: xtables-addons = 1.47.1 |
23 |
Requires: GeoIP = 1.6.5 |
24 |
AutoReqProv: no |
25 |
|
26 |
%description |
27 |
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
28 |
|
29 |
%changelog |
30 |
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-8.sme |
31 |
- add stats access in the panel [SME: 10745] |
32 |
- add control of maximum number of countries [SME: 10749] |
33 |
|
34 |
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
35 |
- add stats of geoip blocked countries [SME: 10745] |
36 |
- add stats of ssh attacks not geoip blocked [SME: 10744] |
37 |
- expand /etc/crontab on update |
38 |
|
39 |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
40 |
- fix unable to load iptables rules [SME: 10739] |
41 |
fix warning localtime |
42 |
fix warning "enabled" isn't numeric in numeric eq (==) |
43 |
|
44 |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
45 |
- first import to SME buildsys |
46 |
|
47 |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
48 |
- bug in crontab update job, |
49 |
- [1.0.1-4] |
50 |
|
51 |
* Mon Oct 16 2017 Michel Begue <mab974@gmail.com> |
52 |
- new message : inactive GeoIP, |
53 |
- value of country code added in message "country not found", |
54 |
- [1.0.1-3] |
55 |
|
56 |
* Sat Oct 08 2017 Michel Begue <mab974@gmail.com> |
57 |
- test kernel module presence in "/lib/modules/weak-updates" directory |
58 |
- [1.0.1-2] |
59 |
|
60 |
* Wed Sep 20 2017 Michel Begue <mab974@gmail.com> |
61 |
- panel added in server manager |
62 |
- [1.0.1-1] |
63 |
|
64 |
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
65 |
- initial release |
66 |
- [1.0.0-1] |
67 |
- xtables-addons v1.47.1 (v1.x required for kernel 2.6.32) |
68 |
|
69 |
%prep |
70 |
|
71 |
%setup |
72 |
%patch0 -p1 |
73 |
%patch1 -p1 |
74 |
%patch2 -p1 |
75 |
%patch3 -p1 |
76 |
%patch4 -p1 |
77 |
%patch5 -p1 |
78 |
|
79 |
%build |
80 |
perl createlinks |
81 |
|
82 |
|
83 |
%install |
84 |
rm -rf $RPM_BUILD_ROOT |
85 |
|
86 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
87 |
rm -f %{name}-%{version}-filelist |
88 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
89 |
> %{name}-%{version}-filelist |
90 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
91 |
|
92 |
%clean |
93 |
cd .. |
94 |
rm -rf %{name}-%{version} |
95 |
|
96 |
%pre |
97 |
%preun |
98 |
|
99 |
%post |
100 |
|
101 |
%postun |
102 |
|
103 |
%files -f %{name}-%{version}-filelist |
104 |
%defattr(-,root,root) |
105 |
|
106 |
%files |
107 |
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |