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