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 24 |
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 |
|
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 |
|
Patch9: smeserver-xt_geoip-1.0.1-bz10794-masq-template.patch |
22 |
|
Patch10: smeserver-xt_geoip-1.0.1-bz10789-more_services.patch |
23 |
|
Patch11: smeserver-xt_geoip-1.0.1-bz10797-no_emails.patch |
24 |
|
Patch12: smeserver-xt_geoip-1.0.1-bz10791-country_panel_ssh.patch |
25 |
|
Patch13: smeserver-xt_geoip-1.0.1-bz10792-add_services.patch |
26 |
|
Patch14: smeserver-xt_geoip-1.0.1-locale-2019-12-07.patch |
27 |
|
Patch15: smeserver-xt_geoip-1.0.1-bz10860-license_key.patch |
28 |
|
Patch16: smeserver-xt_geoip-1.0.1-bz10860-download_mmdblookup.patch |
29 |
|
|
30 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
31 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
32 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
33 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 9.0 |
34 |
Requires: xtables-addons = 1.47.1 |
Requires: xtables-addons = 1.47.1 |
35 |
|
Requires: GeoIP = 1.6.5 |
36 |
|
Requires: libmaxminddb >= 1.1.1 |
37 |
|
Requires: libmaxminddb-devel >= 1.1.1 |
38 |
AutoReqProv: no |
AutoReqProv: no |
39 |
|
|
40 |
%description |
%description |
41 |
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. |
42 |
|
|
43 |
%changelog |
%changelog |
44 |
|
* Sat Jan 18 2020 Michel Begue <mab974@gmail.com> 1.0.1-24.sme |
45 |
|
- new download script adapted to SME (from xtables-addons) [SME: 10860] |
46 |
|
- change geoiplookup to mmdblookup |
47 |
|
|
48 |
|
* Sat Jan 11 2020 Michel Begue <mab974@gmail.com> 1.0.1-23.sme |
49 |
|
- add license_key in config db and test in panel [SME: 10860] |
50 |
|
|
51 |
|
* Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 1.0.1-21.sme |
52 |
|
- apply locale 2019-12-07 patch |
53 |
|
|
54 |
|
* Wed Oct 16 2019 Michel Begue <mab974@gmail.com> 1.0.1-20.sme |
55 |
|
- panel to add services [SME: 10792] |
56 |
|
- french translation |
57 |
|
|
58 |
|
* Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0.1-19.sme |
59 |
|
- add country code list [SME: 10791] |
60 |
|
- fix stats SSH errors [SME: 10807] |
61 |
|
- improved panel [SME: 10788] |
62 |
|
|
63 |
|
* Sat Sep 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-18.sme |
64 |
|
- add more service [SME: 10789] |
65 |
|
- no email from log analysis by default [SME: 10797] |
66 |
|
|
67 |
|
* Sun Jul 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-17.sme |
68 |
|
- fix empty global filter disable all geoip iptables rules [SME: 10794] |
69 |
|
- tidy masq templates for xt geoip [SME: 10794] |
70 |
|
|
71 |
|
* Wed Jul 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-16.sme |
72 |
|
- add missing file to patch [SME: 10760] |
73 |
|
- workaround link issue in source [SME: 10790] |
74 |
|
|
75 |
|
* Tue Jul 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-15.sme |
76 |
|
- improved per service filtering [SME: 10760] |
77 |
|
- remove A1 forced as default and allow empty filter [SME: 10785] |
78 |
|
|
79 |
|
* Sun Jul 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-13.sme |
80 |
|
- fix network lock out on adjust [SME: 10760] |
81 |
|
this arised on initial install with a simple masq adjust |
82 |
|
or if XT_geoip is disbaled on any masq restart or adjust |
83 |
|
|
84 |
|
* Wed Apr 24 2019 Michel Begue <mab974@gmail.com> 1.0.1-12.sme |
85 |
|
- add per service management of GeoIP bans [SME: 10760] |
86 |
|
- move panel to Security [SME: 10773] |
87 |
|
|
88 |
|
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-9.sme |
89 |
|
- add stats access in the panel [SME: 10745] |
90 |
|
- add control of maximum number of countries [SME: 10749] |
91 |
|
|
92 |
|
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
93 |
|
- add stats of geoip blocked countries [SME: 10745] |
94 |
|
- add stats of ssh attacks not geoip blocked [SME: 10744] |
95 |
|
- expand /etc/crontab on update |
96 |
|
|
97 |
* 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 |
98 |
- fix unable to load iptables rules [SME: 10739] |
- fix unable to load iptables rules [SME: 10739] |
99 |
fix warning localtime |
fix warning localtime |
111 |
- value of country code added in message "country not found", |
- value of country code added in message "country not found", |
112 |
- [1.0.1-3] |
- [1.0.1-3] |
113 |
|
|
114 |
* Sat Oct 08 2017 Michel Begue <mab974@gmail.com> |
* Sat Oct 07 2017 Michel Begue <mab974@gmail.com> |
115 |
- test kernel module presence in "/lib/modules/weak-updates" directory |
- test kernel module presence in "/lib/modules/weak-updates" directory |
116 |
- [1.0.1-2] |
- [1.0.1-2] |
117 |
|
|
127 |
%prep |
%prep |
128 |
|
|
129 |
%setup |
%setup |
130 |
|
# tmp fix before creating a new source archive 1.0.1-16 |
131 |
|
unlink root/etc/e-smith/web/panels/manager/cgi-bin/xt_geoip |
132 |
%patch0 -p1 |
%patch0 -p1 |
133 |
%patch1 -p1 |
%patch1 -p1 |
134 |
%patch2 -p1 |
%patch2 -p1 |
135 |
%patch3 -p1 |
%patch3 -p1 |
136 |
|
%patch4 -p1 |
137 |
|
%patch5 -p1 |
138 |
|
%patch6 -p1 |
139 |
|
%patch7 -p1 |
140 |
|
%patch8 -p1 |
141 |
|
%patch9 -p1 |
142 |
|
%patch10 -p1 |
143 |
|
%patch11 -p1 |
144 |
|
%patch12 -p1 |
145 |
|
%patch13 -p1 |
146 |
|
%patch14 -p1 |
147 |
|
%patch15 -p1 |
148 |
|
%patch16 -p1 |
149 |
|
|
150 |
%build |
%build |
151 |
perl createlinks |
perl createlinks |
156 |
|
|
157 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
158 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
159 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
160 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
161 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
162 |
|
|
174 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
175 |
%defattr(-,root,root) |
%defattr(-,root,root) |
176 |
|
|
177 |
|
%files |
178 |
|
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |
179 |
|
%attr(0750, root, root) /usr/share/xt_geoip/xt_geoip_dl |
180 |
|
%attr(0750, root, root) /usr/share/xt_geoip/update_base |