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