3 # - cron scripts (contrib)
6 %bcond_without static # don't link statically
8 Summary: Verifies file integrity
9 Summary(pl.UTF-8): Program sprawdza poprawność plików
14 Group: Applications/System
15 Source0: http://downloads.sourceforge.net/tripwire/%{name}-%{version}-src.tar.bz2
16 # Source0-md5: 2463cde5c75adbab2ce5fdb64aec94f1
17 Source1: %{name}.verify
18 Source2: %{name}-tw.cfg
20 Patch0: %{name}-sec.patch
22 Patch2: policyconfig.patch
23 Patch3: %{name}-gcc47.patch
24 URL: http://sourceforge.net/projects/tripwire/
25 %{?with_static:BuildRequires: glibc-static}
26 BuildRequires: libstdc++-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _cron %{_sysconfdir}/cron.daily
33 Tripwire is a file integrity checker - a utility that compares a
34 designated set of files and directories against information stored in
35 a previously generated database. Added or deleted files are flagged
36 and reported, as are any files that have changed from their previously
37 recorded state in the database. When run against system files on a
38 regular basis, any file changes would be spotted when Tripwire is next
39 run, giving system administrators information to enact damage control
50 %configure --sysconfdir=/etc/tripwire
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/{man4,man5,man8},%{_sysconfdir}/%{name}}
56 install -d $RPM_BUILD_ROOT{%{_var}/{spool/%{name},lib/%{name}},%{_cron}}
58 install bin/* $RPM_BUILD_ROOT%{_sbindir}
59 install man/man4/*.4 $RPM_BUILD_ROOT%{_mandir}/man4
60 install man/man5/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
61 install man/man8/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
62 install policy/twpol-Linux.txt $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/twpol.txt
63 install %{SOURCE1} $RPM_BUILD_ROOT%{_cron}
64 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/twcfg.txt
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc MAINTAINERS ChangeLog README.SuSE TRADEMARK policy/policyguide.txt
72 %attr(700,root,root) %{_sbindir}/*
73 %dir %attr(700,root,root) %{_sysconfdir}/%{name}
74 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/twpol.txt
75 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/twcfg.txt
76 %attr(700,root,root) %{_var}/spool/%{name}
77 %attr(700,root,root) %{_var}/lib/%{name}
78 %attr(700,root,root) %{_cron}/%{name}.verify