1 |
%define name smeserver-xt_geoip |
%define name smeserver-xt_geoip |
2 |
%define version 1.3.1 |
%define version 1.3.1 |
3 |
%define release 4 |
%define release 16 |
4 |
|
|
5 |
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. |
6 |
Name: %{name} |
Name: %{name} |
13 |
Patch0: %{name}-%{version}-comp_e-smith-manager.patch |
Patch0: %{name}-%{version}-comp_e-smith-manager.patch |
14 |
Patch1: %{name}-%{version}-update_base.patch |
Patch1: %{name}-%{version}-update_base.patch |
15 |
Patch2: smeserver-xt_geoip-1.3.1-update-event-oldManager.patch |
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 |
|
Patch12: smeserver-xt_geoip-1.3.1-bz12098_add_fail2ban_stats.patch |
26 |
|
|
27 |
|
|
28 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
29 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
31 |
Requires: e-smith-release >= 10.0 |
Requires: e-smith-release >= 10.0 |
32 |
Requires: server-manager >= 0.1.0-23 |
Requires: server-manager >= 0.1.0-23 |
33 |
Requires: xtables-addons = 2.14 |
Requires: xtables-addons = 2.14 |
34 |
Requires: GeoIP = 1.5.0 |
Requires: GeoIP >= 1.5.0 |
35 |
Requires: libmaxminddb >= 1.1.1 |
Requires: libmaxminddb >= 1.1.1 |
36 |
Requires: libmaxminddb-devel >= 1.1.1 |
Requires: libmaxminddb-devel >= 1.1.1 |
37 |
Requires: geolite2-country |
Requires: geolite2-country |
47 |
%patch0 -p1 |
%patch0 -p1 |
48 |
%patch1 -p1 |
%patch1 -p1 |
49 |
%patch2 -p1 |
%patch2 -p1 |
50 |
|
%patch3 -p1 |
51 |
|
%patch4 -p1 |
52 |
|
%patch5 -p1 |
53 |
|
%patch6 -p1 |
54 |
|
# tmp fix before new source archive |
55 |
|
rm -rf root/etc/e-smith/events/bootstrap-console-save/templates2expand |
56 |
|
rm -rf root/etc/e-smith/events/console-save/templates2expand |
57 |
|
rm -rf root/etc/e-smith/events/xt_geoip-modify/templates2expand/usr |
58 |
|
rm -rf root/etc/e-smith/events/xt_geoip-update/templates2expand/usr |
59 |
|
%patch7 -p1 |
60 |
|
%patch8 -p1 |
61 |
|
%patch9 -p1 |
62 |
|
%patch10 -p1 |
63 |
|
%patch11 -p1 |
64 |
|
%patch12 -p1 |
65 |
|
|
66 |
%build |
%build |
67 |
perl createlinks |
perl createlinks |
73 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
74 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
75 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
76 |
--file /usr/share/xt_geoip/geoip_countries_list.txt '%attr(0755, root, root)'\ |
--file /usr/share/xt_geoip/geoip_countries_list.txt 'attr(0755, root, root)'\ |
77 |
--file /usr/share/xt_geoip/geoip_exstat '%attr(0755, root, root)'\ |
--file /usr/share/xt_geoip/geoip_exstat 'attr(0755, root, root)'\ |
78 |
--file /usr/share/xt_geoip/geoip_listat '%attr(0755, root, root)'\ |
--file /usr/share/xt_geoip/geoip_listat 'attr(0755, root, root)'\ |
79 |
--file /usr/share/xt_geoip/geoip_look '%attr(0755, root, root)'\ |
--file /usr/share/xt_geoip/geoip_look 'attr(0755, root, root)'\ |
80 |
--file /usr/share/xt_geoip/geoip_stats '%attr(0755, root, root)'\ |
--file /usr/share/xt_geoip/geoip_stats 'attr(0755, root, root)'\ |
81 |
--file /usr/share/xt_geoip/xt_geoip_dl '%attr(0750, root, root)'\ |
--file /usr/share/xt_geoip/xt_geoip_dl 'attr(0750, root, root)'\ |
82 |
--file /usr/share/xt_geoip/update_base '%attr(0750, root, root)'\ |
--file /usr/share/xt_geoip/update_base 'attr(0750, root, root)'\ |
83 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
84 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
85 |
cat %{name}-%{version}-filelist |
|
86 |
%clean |
%clean |
87 |
cd .. |
cd .. |
88 |
rm -rf %{name}-%{version} |
rm -rf %{name}-%{version} |
100 |
|
|
101 |
|
|
102 |
%changelog |
%changelog |
103 |
* Sat Mar 13 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.3.1-04.sme |
* Wed Jul 13 2022 Michel Begue <mab974@misouk.com> 1.3.1-16.sme |
104 |
|
- add fail2ban stats [SME: 12098] |
105 |
|
|
106 |
|
* Mon Jul 11 2022 Michel Begue <mab974@misouk.com> 1.3.1-15.sme |
107 |
|
- fix logs date test [SME: 12097] |
108 |
|
|
109 |
|
* Thu Jul 07 2022 Michel Begue <mab974@misouk.com> 1.3.1-14.sme |
110 |
|
- add xt_geoip to backup list [SME: 12029] |
111 |
|
- archive and clean up Ip & Country bases [SME: 10863] |
112 |
|
|
113 |
|
* Wed Mar 09 2022 Michel Begue <mab974@misouk.com> 1.3.1-13.sme |
114 |
|
- fix Other and Reverse parameters for SM2 [SME: 11887] |
115 |
|
|
116 |
|
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.3.1-12.sme |
117 |
|
- Add-class-to-div-for-AdminLTE [SME: 11839] |
118 |
|
|
119 |
|
* Fri Oct 29 2021 Michel Begue <mab974@misouk.com> 1.3.1-11.sme |
120 |
|
- fix multiple_rpm_owners [SME: 11676] |
121 |
|
- add event for smeserver-manager |
122 |
|
- delete expand-template for update_base |
123 |
|
|
124 |
|
* Thu Oct 28 2021 Michel Begue <mab974@gmail.com> 1.3.1-10.sme |
125 |
|
- apply locale 2021-10-28 patch |
126 |
|
|
127 |
|
* Fri Sep 24 2021 Terry Fage <tfage@yahoo.com.au> 1.3.1-09.sme |
128 |
|
- apply locale 2021-09-23 patch |
129 |
|
|
130 |
|
* Wed Aug 25 2021 Terry Fage <tfage@yahoo.com.au> 1.3.1-08.sme |
131 |
|
- apply locale 2021-08-25 patch |
132 |
|
|
133 |
|
* Tue Mar 16 2021 Michel Begue <mab974@gmail.com> 1.3.1-07.sme |
134 |
|
- Fix script as logfiles change (sshd - iptables) |
135 |
|
|
136 |
|
* Sun Mar 14 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.3.1-06.sme |
137 |
|
- change Geoip requirement to >= 1.5 |
138 |
|
|
139 |
|
* Sat Mar 13 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.3.1-05.sme |
140 |
- readded changelog from contribs9 |
- readded changelog from contribs9 |
141 |
- moved changelog to the end of spec |
- moved changelog to the end of spec |
142 |
- TODO review the two section of %files |
- TODO review the two section of %files |
239 |
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
240 |
- initial release |
- initial release |
241 |
- [1.0.0-1] |
- [1.0.0-1] |
|
|
|