1 |
jpp |
1.1 |
%define name smeserver-xt_geoip |
2 |
|
|
%define version 1.0.1 |
3 |
jpp |
1.14 |
%define release 17 |
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.11 |
Patch8: smeserver-xt_geoip-1.0.1-bz10760-per_serv2.patch |
21 |
jpp |
1.14 |
Patch9: smeserver-xt_geoip-1.0.1-bz10794-masq-template.patch |
22 |
jpp |
1.11 |
|
23 |
jpp |
1.1 |
BuildArchitectures: noarch |
24 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
25 |
|
|
BuildRequires: e-smith-devtools |
26 |
|
|
Requires: e-smith-release >= 9.0 |
27 |
|
|
Requires: xtables-addons = 1.47.1 |
28 |
michel |
1.4 |
Requires: GeoIP = 1.6.5 |
29 |
jpp |
1.1 |
AutoReqProv: no |
30 |
|
|
|
31 |
|
|
%description |
32 |
|
|
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
33 |
|
|
|
34 |
|
|
%changelog |
35 |
jpp |
1.14 |
* Sun Jul 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-17.sme |
36 |
|
|
- fix empty global filter disable all geoip iptables rules [SME: 10794] |
37 |
|
|
- tidy masq templates for xt geoip [SME: 10794] |
38 |
|
|
|
39 |
jpp |
1.13 |
* Wed Jul 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-16.sme |
40 |
|
|
- add missing file to patch [SME: 10760] |
41 |
|
|
- workaround link issue in source [SME: 10790] |
42 |
|
|
|
43 |
jpp |
1.12 |
* Tue Jul 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-15.sme |
44 |
jpp |
1.11 |
- improved per service filtering [SME: 10760] |
45 |
|
|
- remove A1 forced as default and allow empty filter [SME: 10785] |
46 |
|
|
|
47 |
jpp |
1.10 |
* Sun Jul 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-13.sme |
48 |
|
|
- fix network lock out on adjust [SME: 10760] |
49 |
|
|
this arised on initial install with a simple masq adjust |
50 |
|
|
or if XT_geoip is disbaled on any masq restart or adjust |
51 |
|
|
|
52 |
michel |
1.9 |
* Wed Apr 24 2019 Michel Begue <mab974@gmail.com> 1.0.1-12.sme |
53 |
michel |
1.7 |
- add per service management of GeoIP bans [SME: 10760] |
54 |
jpp |
1.11 |
- move panel to Security [SME: 10773] |
55 |
michel |
1.7 |
|
56 |
michel |
1.6 |
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-9.sme |
57 |
michel |
1.5 |
- add stats access in the panel [SME: 10745] |
58 |
|
|
- add control of maximum number of countries [SME: 10749] |
59 |
|
|
|
60 |
michel |
1.4 |
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
61 |
|
|
- add stats of geoip blocked countries [SME: 10745] |
62 |
|
|
- add stats of ssh attacks not geoip blocked [SME: 10744] |
63 |
|
|
- expand /etc/crontab on update |
64 |
|
|
|
65 |
jpp |
1.3 |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
66 |
|
|
- fix unable to load iptables rules [SME: 10739] |
67 |
|
|
fix warning localtime |
68 |
|
|
fix warning "enabled" isn't numeric in numeric eq (==) |
69 |
|
|
|
70 |
jpp |
1.2 |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
71 |
|
|
- first import to SME buildsys |
72 |
|
|
|
73 |
jpp |
1.1 |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
74 |
|
|
- bug in crontab update job, |
75 |
|
|
- [1.0.1-4] |
76 |
|
|
|
77 |
|
|
* Mon Oct 16 2017 Michel Begue <mab974@gmail.com> |
78 |
|
|
- new message : inactive GeoIP, |
79 |
|
|
- value of country code added in message "country not found", |
80 |
|
|
- [1.0.1-3] |
81 |
|
|
|
82 |
|
|
* Sat Oct 08 2017 Michel Begue <mab974@gmail.com> |
83 |
|
|
- test kernel module presence in "/lib/modules/weak-updates" directory |
84 |
|
|
- [1.0.1-2] |
85 |
|
|
|
86 |
|
|
* Wed Sep 20 2017 Michel Begue <mab974@gmail.com> |
87 |
|
|
- panel added in server manager |
88 |
|
|
- [1.0.1-1] |
89 |
|
|
|
90 |
|
|
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
91 |
|
|
- initial release |
92 |
|
|
- [1.0.0-1] |
93 |
|
|
- xtables-addons v1.47.1 (v1.x required for kernel 2.6.32) |
94 |
|
|
|
95 |
|
|
%prep |
96 |
|
|
|
97 |
|
|
%setup |
98 |
jpp |
1.13 |
# tmp fix before creating a new source archive 1.0.1-16 |
99 |
|
|
unlink root/etc/e-smith/web/panels/manager/cgi-bin/xt_geoip |
100 |
jpp |
1.1 |
%patch0 -p1 |
101 |
|
|
%patch1 -p1 |
102 |
|
|
%patch2 -p1 |
103 |
jpp |
1.3 |
%patch3 -p1 |
104 |
michel |
1.4 |
%patch4 -p1 |
105 |
michel |
1.5 |
%patch5 -p1 |
106 |
michel |
1.7 |
%patch6 -p1 |
107 |
jpp |
1.10 |
%patch7 -p1 |
108 |
jpp |
1.11 |
%patch8 -p1 |
109 |
jpp |
1.14 |
%patch9 -p1 |
110 |
jpp |
1.1 |
|
111 |
|
|
%build |
112 |
|
|
perl createlinks |
113 |
|
|
|
114 |
|
|
|
115 |
|
|
%install |
116 |
|
|
rm -rf $RPM_BUILD_ROOT |
117 |
|
|
|
118 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
119 |
|
|
rm -f %{name}-%{version}-filelist |
120 |
michel |
1.4 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
121 |
jpp |
1.1 |
> %{name}-%{version}-filelist |
122 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
123 |
|
|
|
124 |
|
|
%clean |
125 |
|
|
cd .. |
126 |
|
|
rm -rf %{name}-%{version} |
127 |
|
|
|
128 |
|
|
%pre |
129 |
|
|
%preun |
130 |
|
|
|
131 |
|
|
%post |
132 |
|
|
|
133 |
|
|
%postun |
134 |
|
|
|
135 |
|
|
%files -f %{name}-%{version}-filelist |
136 |
|
|
%defattr(-,root,root) |
137 |
|
|
|
138 |
michel |
1.4 |
%files |
139 |
|
|
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |