1 |
# $Id: smeserver-rkhunter.spec,v 1.2 2020/10/09 15:38:13 brianr Exp $ |
2 |
|
3 |
Summary: rkhunter for SME Server |
4 |
Name: smeserver-rkhunter |
5 |
%define version 1.4.0 |
6 |
%define release 6 |
7 |
%define displayversion %{version} |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Applications/System |
12 |
Source: smeserver-rkhunter-%{version}.tar.gz |
13 |
BuildArchitectures: noarch |
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
Requires: rkhunter |
16 |
Patch0: smeserver-rkhunter-1.4.0.path2rsyslog.patch |
17 |
Patch1: smeserver-rkhunter-1.4.0.more_options2rkhunter-conf.patch |
18 |
#Patch2: smeserver-rkhunter-1.4.0.bz10376.disableupdate.patch |
19 |
BuildRequires: perl, e-smith-devtools |
20 |
|
21 |
%description |
22 |
rkhunter for SME Server |
23 |
|
24 |
%changelog |
25 |
* Wed Dec 30 2020 Brian Read <brianr@bjsystems.co.uk> 1.4.0-6.sme |
26 |
- Revert patch to suppress update as the exploit has been fixed [SME:11025] |
27 |
|
28 |
* Fri Oct 09 2020 Brian Read <brianr@bjsystems.co.uk> 1.4.0-5.sme |
29 |
- Import in SME10 tree [SME: 11025 ] |
30 |
|
31 |
* Thu Jul 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.4.0-4.sme |
32 |
- disabling as default update for rkh because of CVE-2017-7480 [SME: 10376] |
33 |
- added property updateMirrors to handle this |
34 |
|
35 |
* Tue Aug 18 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4.0-3.sme |
36 |
- add smeserver-rkhunter-1.4.0.more_options2rkhunter-conf.patch |
37 |
|
38 |
* Thu Aug 13 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4.0-2.sme |
39 |
- change path to rsyslog.conf |
40 |
|
41 |
* Thu Aug 13 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.4.0-1.sme |
42 |
- First Import to contribs9 |
43 |
|
44 |
* Tue Sep 17 2013 JP Pialasse <tests@pialasse.com> 1.2.0-10 |
45 |
- fix not run in cron daily [SME: 7800] |
46 |
- typos in patchs |
47 |
|
48 |
* Tue Jul 02 2013 JP Pialasse <tests@pialasse.com> 1.2.0-7 |
49 |
- fix typo patch correct |
50 |
- fix spare space |
51 |
|
52 |
* Sun Jun 23 2013 JP Pialasse <tests@pialasse.com> 1.2.0-5 |
53 |
- fix email error root@localhost [SME: 7103] |
54 |
- adding option for warning mail in .conf |
55 |
- Patch2 |
56 |
|
57 |
* Thu Jun 20 2013 JP Pialasse <tests@pialasse.com> |
58 |
- fix email error root@localhost [SME: 7103] |
59 |
- you can set the mail you want with key mail and default is root |
60 |
|
61 |
* Thu May 14 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-3 |
62 |
- Bump version number in order to move package to SME Contribs [SME: 5172] |
63 |
|
64 |
* Tue Apr 7 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-2 |
65 |
- Remove quotes in DISABLE_TESTS setting [SME: 5149] |
66 |
|
67 |
* Fri Apr 3 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.2.0-1 |
68 |
- Initial draft of rkhunter for SME Server |
69 |
- Adjust ALLOW_SSH_ROOT_USER according to sshd PermitRootLogin setting [SME: 3718] |
70 |
|
71 |
%prep |
72 |
%setup |
73 |
%patch0 -p1 |
74 |
%patch1 -p1 |
75 |
#%patch2 -p1 |
76 |
|
77 |
%build |
78 |
perl createlinks |
79 |
|
80 |
%install |
81 |
rm -rf $RPM_BUILD_ROOT |
82 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
83 |
rm -f %{name}-%{version}-filelist |
84 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
85 |
|
86 |
%clean |
87 |
rm -rf $RPM_BUILD_ROOT |
88 |
|
89 |
%files -f %{name}-%{version}-filelist |
90 |
%defattr(-,root,root) |