source: projects/specs/trunk/r/rkhunter/rkhunter-vl.spec @ 9082

Revision 9082, 15.1 KB checked in by daisuke, 9 years ago (diff)

rkhunter: update to 1.4.2

Line 
1Name:           rkhunter
2Version:        1.4.2
3Release:        1%{?_dist_release}
4Summary:        A host-based tool to scan for rootkits, backdoors and local exploits
5
6Group:          Applications/System
7License:        GPLv2+
8URL:            http://rkhunter.sourceforge.net/
9Source0:        http://downloads.sourceforge.net/rkhunter/rkhunter-%{version}.tar.gz
10Source2:        01-rkhunter
11Source3:        rkhunter.sysconfig
12Patch0:         rkhunter-1.4.2-vineconfig.patch
13BuildArch:      noarch
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15
16Requires:       coreutils, binutils, findutils, grep
17Requires:       e2fsprogs, procps, lsof, iproute, wget
18Requires:       perl, perl(strict), perl(IO::Socket), mailx, logrotate
19%if "%{_dist_release}" >= "vl7"
20Requires:       kmod
21%else
22Requires:       module-init-tools
23%endif
24
25%description
26Rootkit Hunter (RKH) is an easy-to-use tool which checks
27computers running UNIX (clones) for the presence of rootkits
28and other unwanted tools.
29
30%prep
31
32%setup -q
33
34%patch0 -p1 -b .vine
35
36%{__cat} <<'EOF' >%{name}.logrotate
37%{_localstatedir}/log/%{name}/%{name}.log {
38    weekly
39    notifempty
40    create 640 root root
41}
42EOF
43
44%build
45# Nothing to be built
46
47%install
48%{__rm} -rf $RPM_BUILD_ROOT
49
50%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_bindir}
51%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_sysconfdir}/{cron.daily,sysconfig,logrotate.d}
52%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}/scripts
53%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}
54%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_mandir}/man8
55%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_var}/lib/%{name}/db
56%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_var}/log/%{name}
57%{__mkdir} -m755 -p ${RPM_BUILD_ROOT}%{_var}/lib/%{name}/db/i18n
58
59%{__install} -m755 -p files/%{name}             ${RPM_BUILD_ROOT}%{_bindir}/
60
61%{__install} -m644 -p files/backdoorports.dat   ${RPM_BUILD_ROOT}%{_var}/lib/%{name}/db/
62%{__install} -m644 -p files/mirrors.dat         ${RPM_BUILD_ROOT}%{_var}/lib/%{name}/db/
63%{__install} -m644 -p files/programs_bad.dat    ${RPM_BUILD_ROOT}%{_var}/lib/%{name}/db/
64%{__install} -m644 -p files/i18n/cn             ${RPM_BUILD_ROOT}%{_var}/lib/%{name}/db/i18n/
65%{__install} -m644 -p files/i18n/en             ${RPM_BUILD_ROOT}%{_var}/lib/%{name}/db/i18n/
66
67%{__install} -m644 -p files/CHANGELOG           ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/
68%{__install} -m644 -p files/LICENSE             ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/
69%{__install} -m644 -p files/README              ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/
70%{__install} -m755 -p files/check_modules.pl    ${RPM_BUILD_ROOT}%{_datadir}/%{name}/scripts/
71%{__install} -m644 -p files/*.8                 ${RPM_BUILD_ROOT}%{_mandir}/man8/
72# Don't ship these unless we want to Require the perl modules
73#%{__install} -m750 -p files/filehashmd5.pl      ${RPM_BUILD_ROOT}%{_prefix}/lib/%{name}/scripts/
74#%{__install} -m750 -p files/filehashsha1.pl     ${RPM_BUILD_ROOT}%{_prefix}/lib/%{name}/scripts/
75%{__install} -m755 -p %{SOURCE2}                ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/%{name}
76%{__install} -m644 -p %{name}.logrotate         ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
77%{__install} -m640 -p files/%{name}.conf        ${RPM_BUILD_ROOT}%{_sysconfdir}/
78%{__install} -m640 -p %{SOURCE3}                ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
79
80%clean
81%{__rm} -rf $RPM_BUILD_ROOT
82
83%files
84%defattr(-,root,root,-)
85%doc %{_docdir}/%{name}-%{version}/*
86%{_bindir}/%{name}
87%dir %{_datadir}/%{name}
88%{_datadir}/%{name}/scripts
89%{_sysconfdir}/cron.daily/%{name}
90%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
91%dir %{_var}/lib/%{name}
92%{_var}/lib/%{name}/db
93%ghost %{_var}/lib/%{name}/db/mirrors.dat
94%ghost %{_var}/lib/%{name}/db/programs_bad.dat
95%{_var}/lib/%{name}/db/i18n
96%dir %{_var}/log/%{name}
97%config(noreplace) %{_sysconfdir}/%{name}.conf
98%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
99%dir %{_docdir}/%{name}-%{version}
100%{_mandir}/man8/*
101
102%changelog
103* Wed Nov 12 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.4.2-1
104- update to 1.4.2
105
106* Thu Feb 28 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.0-1
107- initial build for Vine Linux
108
109* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-6
110- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
111
112* Sat Oct 06 2012 Kevin Fenzi <kevin@scrye.com> 1.4.0-5
113- Add /dev/md/autorebuild.pid to whitelist. Fixes bug #857315
114
115* Sat Aug 18 2012 Kevin Fenzi <kevin@scrye.com> 1.4.0-4
116- Add /var/log/pki-ca/system to whitelist for FreeIPA. Fixes bug #849251
117
118* Wed Aug 15 2012 Kevin Fenzi <kevin@scrye.com> 1.4.0-3
119- Fix /bin/ad false positive. Fixes bug #831989
120
121* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
122- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
123
124* Tue May 08 2012 Kevin Fenzi <kevin@scrye.com> - 1.4.0-1
125- Update to 1.4.0
126
127* Sun Apr 15 2012 Kevin Fenzi <kevin@scrye.com> - 1.3.8-15
128- Add workaround for /lib/java false positive. Fixes bug #806972
129
130* Wed Feb  8 2012 Kay Sievers <kay@redhat.com> - 1.3.8-14
131- modutils are for Linux 2.4 and no longer provided; depend on kmod
132
133* Fri Jan 27 2012 Kevin Fenzi <kevin@scrye.com> 1.3.8-13
134- Drop net-tools, no longer needed. Fixes bug #784803
135- Add /dev/shm/spice.* to whitelist. Fixes bug #784882
136
137* Fri Jan 06 2012 Kevin Fenzi <kevin@scrye.com> 1.3.8-12
138- Add /etc/.java to whitelist. Fixes bug #770972
139
140* Fri Nov 25 2011 Kevin Fenzi <kevin@scrye.com> - 1.3.8-11
141- Add /usr/share/man/man5/.k5identity.5.gz to whitelisted hidden files.
142
143* Wed Oct 12 2011 Jim Pirzyk <jim+rpm@pirzyk.org> - 1.3.8-10
144- Update %files section so that some .dat files are marked %ghost
145
146* Fri Aug 05 2011 Kevin Fenzi <kevin@scrye.com> - 1.3.8-9
147- Add patch to fix ALLOWPROCDELFILE config option. fixes bug #727524
148
149* Fri Jul 08 2011 Kevin Fenzi <kevin@scrye.com> - 1.3.8-8
150- Fix typo
151
152* Fri Jul 08 2011 Kevin Fenzi <kevin@scrye.com> - 1.3.8-7
153- Add patch to fix out of the box warning on rkhunter script.
154- Fixes bug #719270
155- Add etckeeper and tomboy files. Fixes bug #719265 and #719259
156
157* Tue Jun 21 2011 Kevin Fenzi <kevin@scrye.com> - 1.3.8-6
158- Change ssh check back to 2 - bug #596775
159- Drop hard Requires on prelink. It will be used if present - bug #714067
160
161* Thu Apr 21 2011 Kevin Fenzi <kevin@scrye.com> - 1.3.8-5
162- Add /dev/.mount to ALLOW_HIDDENDIR - bug #697599
163
164* Wed Apr 13 2011 Kevin Fenzi <kevin@scrye.com> - 1.3.8-4
165- Don't send warning emails anymore. They cause selinux issues and are not very helpful.
166- Fixes bug #660544
167
168* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-3
169- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
170
171* Tue Dec 07 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.8-2
172- Adjust config some - bug #596775
173
174* Fri Nov 26 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.8-1
175- Update to 1.3.8
176
177* Wed Nov 24 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.6-9
178- Drop /var/run as it's not used anymore - bug #656684
179
180* Wed Oct 06 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.6-8
181- Add patch to make rkhunter use unhide if installed - bug #636396
182
183* Sat Jun 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.6-7
184- Add ipsec.hmac exclude - bug #560594
185
186* Fri May 28 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.6-6
187- Add exclude for md-device-map - bug #596731
188- Supress ssh version check - bug #596775
189
190* Sat Mar 06 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.6-5
191- Change config to not specify XINETD_PATH - bug #560562
192
193* Sat Jan 23 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.6-4
194- Change email to just root instead of root@localhost - bug #553179
195- Add .k5login.5.gz to files whitelist - bug #553134
196
197* Tue Jan 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.3.6-3
198- Add some more ssh hmac files to whitelist - bug #552621
199- Re-add /dev/.mdadm.map to whitelisted files - bug #539405
200
201* Tue Dec 01 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.6-2
202- Disable apps check by default - bug #543065
203
204* Sun Nov 29 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.6-1
205- Update to 1.3.6
206
207* Thu Nov 26 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.4-9
208- Add exception for /dev/.mdadm file - bug #539405
209
210* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-8
211- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
212
213* Fri Jul 03 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.4-7
214- Add exception for software raid udev file - bug #509253
215
216* Sat Jun 06 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.4-6
217- Add /usr/bin/.fipscheck.hmac to ok files - bug #494096
218
219* Sun Mar 08 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.4-5
220- Fix typo in patch file
221
222* Wed Mar 04 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.4-4
223- Rework spec file
224- Add check for the new hmac ssh files
225
226* Thu Feb 26 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.4-3
227- Update cron job to include hostname (thanks  Manuel Wolfshant)
228
229* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-2
230- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
231
232* Fri Jan 02 2009 Kevin Fenzi <kevin@tummy.com> - 1.3.4-1
233- Update to 1.3.4
234- Use libdir as tmp dir - bug #456340
235
236* Sat Dec 13 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.2-6
237- Fix cron job sending as attachment - bug #472679
238- Fix cron job trying to send with colors - bug #475916
239
240* Wed Sep 03 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.2-5
241- Patch debug tmp file issue - bug #460628
242
243* Mon Jun 16 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.2-4
244- Fix cron script to only mail on warn/error - bug #450703
245- Fix conditional to account for fc10 rsyslog
246
247* Mon Apr 28 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.2-3
248- Change cron to run after prelink - bug #438622
249
250* Wed Mar 26 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.2-2
251- Move things to more standard locations for selinux - bug #438184
252- Add exception for pulseaudio file - bug #438622
253
254* Thu Feb 28 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.2-1
255- Update to 1.3.2
256- Fix cron script
257
258* Thu Feb 28 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.0-2
259- Use /etc/redhat-release for EPEL and /etc/fedora release for Fedora.
260- Add conditionals to support EPEL
261- Fix man page warning.
262
263* Sun Feb 03 2008 Kevin Fenzi <kevin@tummy.com> - 1.3.0-1
264- Revive package, clean up spec
265- Update to 1.3.0
266
267* Sat Mar 18 2006 Greg Houlette <tamaster@pobox.com> - 1.2.8-3
268- Made an RPM transparent change to move the sha1 canary check
269  file out of CVS and into the external lookaside cache (whose
270  filename changes with every new package release anyway...)
271
272* Fri Mar 17 2006 Greg Houlette <tamaster@pobox.com> - 1.2.8-2
273- Fixed architectural dependency during package creation eliminating
274  use of _libdir configure macro (x86_64 /usr/lib64 mis-targeting)
275
276* Tue Mar 7 2006 Greg Houlette <tamaster@pobox.com> - 1.2.8-1
277- New package version release
278- reworked the .spec file to support optional dist tag
279- Updated the application check default patchfile (chunk failure)
280- Changed to SHA1 for optional message digest (canary check)
281- Added a couple of suggested skip entries to rkhunter.conf
282
283* Sat Jun 11 2005 Greg Houlette <tamaster@pobox.com> - 1.2.7-1
284- Added signature auto-updating to CRON scan (new script)
285- Removed BOOTSCAN pending rewrite to full SysV Init scan in background
286- Added the --append-log command line option
287- Added Date Stamping to output
288- Fixed bug in /etc/group missing report
289- New package version release
290
291* Sun Jan 2 2005 Greg Houlette <tamaster@tekarmory.com> - 0:1.1.9-1
292- New package version release
293- Added the --run-application-check command line option
294  to listing in command help
295- Replaced 'Here' Doc editing of rkhunter.conf file
296  with in-place Perl edit
297- tweaked rpmbuild -bb Autoclean
298
299* Fri Oct 15 2004 Greg Houlette - 0:1.1.8-0.fdr.1 (revisited)
300- Removed redundant buildrequires /bin/sh, coreutils and perl
301- Revise postun scriptlet
302- Added /usr/share/doc/rkhunter-1.1.8/ to files list
303
304* Mon Oct 11 2004 Greg Houlette - 0:1.1.8-0.fdr.1
305- Changed Release Tag to 0.fdr.1 (testing) for QA
306- Removed wget from dependencies
307- Hid (temporarily) the --skip-application-check command
308  line option from being listed in help
309- Fixed the spec files list, again!
310
311* Fri Oct 8 2004 Greg Houlette - 0:1.1.8-0.fdr.0.2.beta2
312- Unified and disabled the md5 canary check in prep
313  (check is now optional) removing the sha1 cross-check
314- Fixed the spec files list, adding the /var/rkhunter
315  directory and the /usr/bin/rkhunter executable
316- Fixed missing dependencies (rkh uses runtime checks)
317- Disabled "auto-clean" for rpmbuild -bb
318- Changed Application version scan default to
319  disabled awaiting backport fix in upstream sources
320- Fixed shared_man_search.patch, configuration files
321  verify and added postun(install) cleanup
322
323* Fri Oct 1 2004 Greg Houlette - 0:1.1.8-0.fdr.0.1.beta1
324- More cosmetic patchwork
325- Changed Release Tag to beta1 (pre-release) for QA submit
326
327* Tue Sep 28 2004 Greg Houlette - 0:1.1.8-0.fdr.1
328- Removed hidden_search.patch (1.1.7) after it was
329  merged into upstream source by Michael Boelen
330- Removed .spec file from md5 and sha1 file checks
331  (it must be modifiable by Fedora QA release build)
332- Added BOOTSCAN description file to documentation
333- Restructured dynamic file creation ('Here' Docs)
334  moving them to the "prep" stage so that *_ALL_*
335  files are available prior to the "build" stage
336  (for inspection purposes)
337- Added a /etc/sysconfig/rkhunter parameters file
338
339* Sun Aug 29 2004 Greg Houlette - 0:1.1.7-0.fdr.1
340- Cosmetic patchwork
341
342* Sat Aug 21 2004 Greg Houlette - 0:1.1.6-0.fdr.1
343- Moderate reworking of .spec file for packaging standards
344- Added md5 and sha1 file checks to prep procedure for source .rpm
345- Included an optional rc.local replacement for scan on boot (with full logging)
346
347* Tue Aug 10 2004 Michael Boelen - 1.1.5
348- Added update script
349- Extended description
350
351* Sun Aug 08 2004 Greg Houlette - 1.1.5
352- Changed the install procedure eliminating the specification of
353  destination filenames (only needed if you are renaming during install)
354- Changed the permissions for documentation files (root only overkill)
355- Added the installation of the rkhunter Man Page
356- Added the installation of the programs_{bad, good}.dat database files
357- Added the installation of the LICENSE documentation file
358- Added the chmod for root only to the /var/rkhunter/db directory
359
360* Sun May 23 2004 Craig Orsinger (cjo) <cjorsinger@earthlink.net>
361- version 1.1.0-1.cjo
362- changed installation in accordance with new rootkit installation
363  procedure
364- changed installation root to conform to LSB. Use standard macros.
365- added recursive remove of old build root as prep for install phase
366
367* Wed Apr 28 2004 Doncho N. Gunchev - 1.0.9-0.mr700
368- dropped Requires: perl - rkhunter works without it
369- dropped the bash alignpatch (check the source or contact me)
370- various file mode fixes (.../tmp/, *.db)
371- optimized the %%files section - any new files in the
372  current dirs will be fine - just %%{__install} them.
373
374* Mon Apr 26 2004 Michael Boelen - 1.0.8-0
375- Fixed missing md5blacklist.dat
376
377* Mon Apr 19 2004 Doncho N. Gunchev - 1.0.6-1.mr700
378- added missing /usr/local/rkhunter/db/md5blacklist.dat
379- patched to align results in --cronjob, I think rpm based
380  distros have symlink /bin/sh -> /bin/bash
381- added --with/--without alignpatch for conditional builds
382  (in case previous patch breaks something)
383
384* Sat Apr 03 2004 Michael Boelen / Joe Klemmer - 1.0.6-0
385- Update to 1.0.6
386
387* Mon Mar 29 2004 Doncho N. Gunchev - 1.0.0-0
388- initial .spec file
Note: See TracBrowser for help on using the repository browser.