1 |
%define name smeserver-xt_geoip |
2 |
%define version 1.3.1 |
3 |
%define release 15 |
4 |
|
5 |
Summary: smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
9 |
License: GNU GPL version 2 |
10 |
URL: http://wiki.contribs.org/Main_Page |
11 |
Group: SMEserver/addon |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: %{name}-%{version}-comp_e-smith-manager.patch |
14 |
Patch1: %{name}-%{version}-update_base.patch |
15 |
Patch2: smeserver-xt_geoip-1.3.1-update-event-oldManager.patch |
16 |
Patch3: %{name}-%{version}-logfiles_changes.patch |
17 |
Patch4: smeserver-xt_geoip-1.3.1-locale-2021-08-25.patch |
18 |
Patch5: smeserver-xt_geoip-1.3.1-locale-2021-09-23.patch |
19 |
Patch6: smeserver-xt_geoip-1.3.1-locale-2021-10-28.patch |
20 |
Patch7: smeserver-xt_geoip-1.3.1-SME_11676.patch |
21 |
Patch8: smeserver-xt_geoip-1.3.1-Add-class-to-div-for-AdminLTE.patch |
22 |
Patch9: smeserver-xt_geoip-1.3.1-SME_11887.patch |
23 |
Patch10: smeserver-xt_geoip-1.3.1-bz12029_backup-bz10863_bases.patch |
24 |
Patch11: smeserver-xt_geoip-1.3.1-bz12097_fix_logs_date_test.patch |
25 |
|
26 |
BuildArchitectures: noarch |
27 |
BuildRoot: /var/tmp/%{name}-%{version} |
28 |
BuildRequires: e-smith-devtools |
29 |
Requires: e-smith-release >= 10.0 |
30 |
Requires: server-manager >= 0.1.0-23 |
31 |
Requires: xtables-addons = 2.14 |
32 |
Requires: GeoIP >= 1.5.0 |
33 |
Requires: libmaxminddb >= 1.1.1 |
34 |
Requires: libmaxminddb-devel >= 1.1.1 |
35 |
Requires: geolite2-country |
36 |
Requires: geolite2-city |
37 |
AutoReqProv: no |
38 |
|
39 |
%description |
40 |
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
41 |
|
42 |
|
43 |
%prep |
44 |
%setup |
45 |
%patch0 -p1 |
46 |
%patch1 -p1 |
47 |
%patch2 -p1 |
48 |
%patch3 -p1 |
49 |
%patch4 -p1 |
50 |
%patch5 -p1 |
51 |
%patch6 -p1 |
52 |
# tmp fix before new source archive |
53 |
rm -rf root/etc/e-smith/events/bootstrap-console-save/templates2expand |
54 |
rm -rf root/etc/e-smith/events/console-save/templates2expand |
55 |
rm -rf root/etc/e-smith/events/xt_geoip-modify/templates2expand/usr |
56 |
rm -rf root/etc/e-smith/events/xt_geoip-update/templates2expand/usr |
57 |
%patch7 -p1 |
58 |
%patch8 -p1 |
59 |
%patch9 -p1 |
60 |
%patch10 -p1 |
61 |
%patch11 -p1 |
62 |
|
63 |
%build |
64 |
perl createlinks |
65 |
|
66 |
|
67 |
%install |
68 |
rm -rf $RPM_BUILD_ROOT |
69 |
|
70 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
71 |
rm -f %{name}-%{version}-filelist |
72 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
73 |
--file /usr/share/xt_geoip/geoip_countries_list.txt 'attr(0755, root, root)'\ |
74 |
--file /usr/share/xt_geoip/geoip_exstat 'attr(0755, root, root)'\ |
75 |
--file /usr/share/xt_geoip/geoip_listat 'attr(0755, root, root)'\ |
76 |
--file /usr/share/xt_geoip/geoip_look 'attr(0755, root, root)'\ |
77 |
--file /usr/share/xt_geoip/geoip_stats 'attr(0755, root, root)'\ |
78 |
--file /usr/share/xt_geoip/xt_geoip_dl 'attr(0750, root, root)'\ |
79 |
--file /usr/share/xt_geoip/update_base 'attr(0750, root, root)'\ |
80 |
> %{name}-%{version}-filelist |
81 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
82 |
|
83 |
%clean |
84 |
cd .. |
85 |
rm -rf %{name}-%{version} |
86 |
|
87 |
%pre |
88 |
%preun |
89 |
|
90 |
%post |
91 |
|
92 |
%postun |
93 |
|
94 |
%files -f %{name}-%{version}-filelist |
95 |
%defattr(-,root,root) |
96 |
|
97 |
|
98 |
|
99 |
%changelog |
100 |
* Mon Jul 11 2022 Michel Begue <mab974@misouk.com> 1.3.1-15.sme |
101 |
- fix logs date test [SME: 12097] |
102 |
|
103 |
* Thu Jul 07 2022 Michel Begue <mab974@misouk.com> 1.3.1-14.sme |
104 |
- add xt_geoip to backup list [SME: 12029] |
105 |
- archive and clean up Ip & Country bases [SME: 10863] |
106 |
|
107 |
* Wed Mar 09 2022 Michel Begue <mab974@misouk.com> 1.3.1-13.sme |
108 |
- fix Other and Reverse parameters for SM2 [SME: 11887] |
109 |
|
110 |
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.3.1-12.sme |
111 |
- Add-class-to-div-for-AdminLTE [SME: 11839] |
112 |
|
113 |
* Fri Oct 29 2021 Michel Begue <mab974@misouk.com> 1.3.1-11.sme |
114 |
- fix multiple_rpm_owners [SME: 11676] |
115 |
- add event for smeserver-manager |
116 |
- delete expand-template for update_base |
117 |
|
118 |
* Thu Oct 28 2021 Michel Begue <mab974@gmail.com> 1.3.1-10.sme |
119 |
- apply locale 2021-10-28 patch |
120 |
|
121 |
* Fri Sep 24 2021 Terry Fage <tfage@yahoo.com.au> 1.3.1-09.sme |
122 |
- apply locale 2021-09-23 patch |
123 |
|
124 |
* Wed Aug 25 2021 Terry Fage <tfage@yahoo.com.au> 1.3.1-08.sme |
125 |
- apply locale 2021-08-25 patch |
126 |
|
127 |
* Tue Mar 16 2021 Michel Begue <mab974@gmail.com> 1.3.1-07.sme |
128 |
- Fix script as logfiles change (sshd - iptables) |
129 |
|
130 |
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.3.1-06.sme |
131 |
- change Geoip requirement to >= 1.5 |
132 |
|
133 |
* Sat Mar 13 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.3.1-05.sme |
134 |
- readded changelog from contribs9 |
135 |
- moved changelog to the end of spec |
136 |
- TODO review the two section of %files |
137 |
- added link to wrapper for e-smith-manager |
138 |
|
139 |
* Wed Jan 06 2021 Michel Begue <mab974@gmail.com> 1.3.1-03.sme |
140 |
- Back to compatibility with e-smith-manager |
141 |
- (s)qpsmtpd replace (s)smtpd (services) |
142 |
- remove 'update_base' script template |
143 |
|
144 |
* Fri Jul 31 2020 Michel Begue <mab974@gmail.com> 1.3.1-01.sme |
145 |
- initial release for smeserver-manager (sme10) |
146 |
- [1.0.1-26 sme9] |
147 |
- xtables-addons v2.14 |
148 |
|
149 |
* Mon Feb 24 2020 Michel Begue <mab974@gmail.com> 1.0.1-26.sme |
150 |
- add localhost to whitelist [SME: 10881] |
151 |
|
152 |
* Tue Jan 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-25.sme |
153 |
- add requirement for mmdb provided by rpm to allow accounting [SME: 10860] |
154 |
|
155 |
* Sat Jan 18 2020 Michel Begue <mab974@gmail.com> 1.0.1-24.sme |
156 |
- new download script adapted to SME (from xtables-addons) [SME: 10860] |
157 |
- change geoiplookup to mmdblookup |
158 |
|
159 |
* Sat Jan 11 2020 Michel Begue <mab974@gmail.com> 1.0.1-23.sme |
160 |
- add license_key in config db and test in panel [SME: 10860] |
161 |
|
162 |
* Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 1.0.1-21.sme |
163 |
- apply locale 2019-12-07 patch |
164 |
|
165 |
* Wed Oct 16 2019 Michel Begue <mab974@gmail.com> 1.0.1-20.sme |
166 |
- panel to add services [SME: 10792] |
167 |
- french translation |
168 |
|
169 |
* Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0.1-19.sme |
170 |
- add country code list [SME: 10791] |
171 |
- fix stats SSH errors [SME: 10807] |
172 |
- improved panel [SME: 10788] |
173 |
|
174 |
* Sat Sep 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-18.sme |
175 |
- add more service [SME: 10789] |
176 |
- no email from log analysis by default [SME: 10797] |
177 |
|
178 |
* Sun Jul 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-17.sme |
179 |
- fix empty global filter disable all geoip iptables rules [SME: 10794] |
180 |
- tidy masq templates for xt geoip [SME: 10794] |
181 |
|
182 |
* Wed Jul 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-16.sme |
183 |
- add missing file to patch [SME: 10760] |
184 |
- workaround link issue in source [SME: 10790] |
185 |
|
186 |
* Tue Jul 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-15.sme |
187 |
- improved per service filtering [SME: 10760] |
188 |
- remove A1 forced as default and allow empty filter [SME: 10785] |
189 |
|
190 |
* Sun Jul 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-13.sme |
191 |
- fix network lock out on adjust [SME: 10760] |
192 |
this arised on initial install with a simple masq adjust |
193 |
or if XT_geoip is disbaled on any masq restart or adjust |
194 |
|
195 |
* Wed Apr 24 2019 Michel Begue <mab974@gmail.com> 1.0.1-12.sme |
196 |
- add per service management of GeoIP bans [SME: 10760] |
197 |
- move panel to Security [SME: 10773] |
198 |
|
199 |
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-9.sme |
200 |
- add stats access in the panel [SME: 10745] |
201 |
- add control of maximum number of countries [SME: 10749] |
202 |
|
203 |
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
204 |
- add stats of geoip blocked countries [SME: 10745] |
205 |
- add stats of ssh attacks not geoip blocked [SME: 10744] |
206 |
- expand /etc/crontab on update |
207 |
|
208 |
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
209 |
- fix unable to load iptables rules [SME: 10739] |
210 |
fix warning localtime |
211 |
fix warning "enabled" isn't numeric in numeric eq (==) |
212 |
|
213 |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
214 |
- first import to SME buildsys |
215 |
|
216 |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
217 |
- bug in crontab update job, |
218 |
- [1.0.1-4] |
219 |
|
220 |
* Mon Oct 16 2017 Michel Begue <mab974@gmail.com> |
221 |
- new message : inactive GeoIP, |
222 |
- value of country code added in message "country not found", |
223 |
- [1.0.1-3] |
224 |
|
225 |
* Sat Oct 07 2017 Michel Begue <mab974@gmail.com> |
226 |
- test kernel module presence in "/lib/modules/weak-updates" directory |
227 |
- [1.0.1-2] |
228 |
|
229 |
* Wed Sep 20 2017 Michel Begue <mab974@gmail.com> |
230 |
- panel added in server manager |
231 |
- [1.0.1-1] |
232 |
|
233 |
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
234 |
- initial release |
235 |
- [1.0.0-1] |