1 |
michel |
1.1 |
%define name smeserver-xt_geoip |
2 |
|
|
%define version 1.3.1 |
3 |
jpp |
1.6 |
%define release 06 |
4 |
michel |
1.1 |
|
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 |
michel |
1.2 |
Patch0: %{name}-%{version}-comp_e-smith-manager.patch |
14 |
michel |
1.3 |
Patch1: %{name}-%{version}-update_base.patch |
15 |
jpp |
1.4 |
Patch2: smeserver-xt_geoip-1.3.1-update-event-oldManager.patch |
16 |
michel |
1.2 |
|
17 |
michel |
1.1 |
BuildArchitectures: noarch |
18 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
|
|
BuildRequires: e-smith-devtools |
20 |
|
|
Requires: e-smith-release >= 10.0 |
21 |
|
|
Requires: server-manager >= 0.1.0-23 |
22 |
|
|
Requires: xtables-addons = 2.14 |
23 |
jpp |
1.6 |
Requires: GeoIP >= 1.5.0 |
24 |
michel |
1.1 |
Requires: libmaxminddb >= 1.1.1 |
25 |
|
|
Requires: libmaxminddb-devel >= 1.1.1 |
26 |
|
|
Requires: geolite2-country |
27 |
|
|
Requires: geolite2-city |
28 |
|
|
AutoReqProv: no |
29 |
|
|
|
30 |
|
|
%description |
31 |
|
|
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
32 |
|
|
|
33 |
|
|
|
34 |
|
|
%prep |
35 |
|
|
%setup |
36 |
michel |
1.2 |
%patch0 -p1 |
37 |
michel |
1.3 |
%patch1 -p1 |
38 |
jpp |
1.4 |
%patch2 -p1 |
39 |
michel |
1.1 |
|
40 |
|
|
%build |
41 |
|
|
perl createlinks |
42 |
|
|
|
43 |
|
|
|
44 |
|
|
%install |
45 |
|
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
|
47 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
48 |
|
|
rm -f %{name}-%{version}-filelist |
49 |
jpp |
1.4 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
50 |
jpp |
1.5 |
--file /usr/share/xt_geoip/geoip_countries_list.txt 'attr(0755, root, root)'\ |
51 |
|
|
--file /usr/share/xt_geoip/geoip_exstat 'attr(0755, root, root)'\ |
52 |
|
|
--file /usr/share/xt_geoip/geoip_listat 'attr(0755, root, root)'\ |
53 |
|
|
--file /usr/share/xt_geoip/geoip_look 'attr(0755, root, root)'\ |
54 |
|
|
--file /usr/share/xt_geoip/geoip_stats 'attr(0755, root, root)'\ |
55 |
|
|
--file /usr/share/xt_geoip/xt_geoip_dl 'attr(0750, root, root)'\ |
56 |
|
|
--file /usr/share/xt_geoip/update_base 'attr(0750, root, root)'\ |
57 |
michel |
1.1 |
> %{name}-%{version}-filelist |
58 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
59 |
jpp |
1.5 |
|
60 |
michel |
1.1 |
%clean |
61 |
|
|
cd .. |
62 |
|
|
rm -rf %{name}-%{version} |
63 |
|
|
|
64 |
|
|
%pre |
65 |
|
|
%preun |
66 |
|
|
|
67 |
|
|
%post |
68 |
|
|
|
69 |
|
|
%postun |
70 |
|
|
|
71 |
|
|
%files -f %{name}-%{version}-filelist |
72 |
|
|
%defattr(-,root,root) |
73 |
|
|
|
74 |
jpp |
1.4 |
|
75 |
|
|
|
76 |
|
|
%changelog |
77 |
jpp |
1.6 |
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.3.1-06.sme |
78 |
|
|
- change Geoip requirement to >= 1.5 |
79 |
|
|
|
80 |
|
|
* Sat Mar 13 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.3.1-05.sme |
81 |
jpp |
1.4 |
- readded changelog from contribs9 |
82 |
|
|
- moved changelog to the end of spec |
83 |
|
|
- TODO review the two section of %files |
84 |
|
|
- added link to wrapper for e-smith-manager |
85 |
|
|
|
86 |
|
|
* Wed Jan 06 2021 Michel Begue <mab974@gmail.com> 1.3.1-03.sme |
87 |
|
|
- Back to compatibility with e-smith-manager |
88 |
|
|
- (s)qpsmtpd replace (s)smtpd (services) |
89 |
|
|
- remove 'update_base' script template |
90 |
|
|
|
91 |
|
|
* Fri Jul 31 2020 Michel Begue <mab974@gmail.com> 1.3.1-01.sme |
92 |
|
|
- initial release for smeserver-manager (sme10) |
93 |
|
|
- [1.0.1-26 sme9] |
94 |
|
|
- xtables-addons v2.14 |
95 |
|
|
|
96 |
|
|
* Mon Feb 24 2020 Michel Begue <mab974@gmail.com> 1.0.1-26.sme |
97 |
|
|
- add localhost to whitelist [SME: 10881] |
98 |
|
|
|
99 |
|
|
* Tue Jan 21 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-25.sme |
100 |
|
|
- add requirement for mmdb provided by rpm to allow accounting [SME: 10860] |
101 |
|
|
|
102 |
|
|
* Sat Jan 18 2020 Michel Begue <mab974@gmail.com> 1.0.1-24.sme |
103 |
|
|
- new download script adapted to SME (from xtables-addons) [SME: 10860] |
104 |
|
|
- change geoiplookup to mmdblookup |
105 |
|
|
|
106 |
|
|
* Sat Jan 11 2020 Michel Begue <mab974@gmail.com> 1.0.1-23.sme |
107 |
|
|
- add license_key in config db and test in panel [SME: 10860] |
108 |
|
|
|
109 |
|
|
* Sat Dec 07 2019 SME Translation Server <translations@contribs.org> 1.0.1-21.sme |
110 |
|
|
- apply locale 2019-12-07 patch |
111 |
|
|
|
112 |
|
|
* Wed Oct 16 2019 Michel Begue <mab974@gmail.com> 1.0.1-20.sme |
113 |
|
|
- panel to add services [SME: 10792] |
114 |
|
|
- french translation |
115 |
|
|
|
116 |
|
|
* Mon Sep 30 2019 Michel Begue <mab974@gmail.com> 1.0.1-19.sme |
117 |
|
|
- add country code list [SME: 10791] |
118 |
|
|
- fix stats SSH errors [SME: 10807] |
119 |
|
|
- improved panel [SME: 10788] |
120 |
|
|
|
121 |
|
|
* Sat Sep 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-18.sme |
122 |
|
|
- add more service [SME: 10789] |
123 |
|
|
- no email from log analysis by default [SME: 10797] |
124 |
|
|
|
125 |
|
|
* Sun Jul 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-17.sme |
126 |
|
|
- fix empty global filter disable all geoip iptables rules [SME: 10794] |
127 |
|
|
- tidy masq templates for xt geoip [SME: 10794] |
128 |
|
|
|
129 |
|
|
* Wed Jul 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-16.sme |
130 |
|
|
- add missing file to patch [SME: 10760] |
131 |
|
|
- workaround link issue in source [SME: 10790] |
132 |
|
|
|
133 |
|
|
* Tue Jul 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-15.sme |
134 |
|
|
- improved per service filtering [SME: 10760] |
135 |
|
|
- remove A1 forced as default and allow empty filter [SME: 10785] |
136 |
|
|
|
137 |
|
|
* Sun Jul 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-13.sme |
138 |
|
|
- fix network lock out on adjust [SME: 10760] |
139 |
|
|
this arised on initial install with a simple masq adjust |
140 |
|
|
or if XT_geoip is disbaled on any masq restart or adjust |
141 |
|
|
|
142 |
|
|
* Wed Apr 24 2019 Michel Begue <mab974@gmail.com> 1.0.1-12.sme |
143 |
|
|
- add per service management of GeoIP bans [SME: 10760] |
144 |
|
|
- move panel to Security [SME: 10773] |
145 |
|
|
|
146 |
|
|
* Wed Apr 17 2019 Michel Begue <mab974@gmail.com> 1.0.1-9.sme |
147 |
|
|
- add stats access in the panel [SME: 10745] |
148 |
|
|
- add control of maximum number of countries [SME: 10749] |
149 |
|
|
|
150 |
|
|
* Wed Mar 06 2019 Michel Begue <mab974@gmail.com> 1.0.1-7.sme |
151 |
|
|
- add stats of geoip blocked countries [SME: 10745] |
152 |
|
|
- add stats of ssh attacks not geoip blocked [SME: 10744] |
153 |
|
|
- expand /etc/crontab on update |
154 |
|
|
|
155 |
|
|
* Mon Feb 18 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-6.sme |
156 |
|
|
- fix unable to load iptables rules [SME: 10739] |
157 |
|
|
fix warning localtime |
158 |
|
|
fix warning "enabled" isn't numeric in numeric eq (==) |
159 |
|
|
|
160 |
|
|
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
161 |
|
|
- first import to SME buildsys |
162 |
|
|
|
163 |
|
|
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
164 |
|
|
- bug in crontab update job, |
165 |
|
|
- [1.0.1-4] |
166 |
|
|
|
167 |
|
|
* Mon Oct 16 2017 Michel Begue <mab974@gmail.com> |
168 |
|
|
- new message : inactive GeoIP, |
169 |
|
|
- value of country code added in message "country not found", |
170 |
|
|
- [1.0.1-3] |
171 |
|
|
|
172 |
|
|
* Sat Oct 07 2017 Michel Begue <mab974@gmail.com> |
173 |
|
|
- test kernel module presence in "/lib/modules/weak-updates" directory |
174 |
|
|
- [1.0.1-2] |
175 |
|
|
|
176 |
|
|
* Wed Sep 20 2017 Michel Begue <mab974@gmail.com> |
177 |
|
|
- panel added in server manager |
178 |
|
|
- [1.0.1-1] |
179 |
|
|
|
180 |
|
|
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
181 |
|
|
- initial release |
182 |
|
|
- [1.0.0-1] |
183 |
|
|
|