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

Revision 7499, 15.0 KB checked in by daisuke, 11 years ago (diff)

rkhunter: new package, version 1.4.0

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