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