1 |
Summary: Advanced Intrusion Detection Environment |
2 |
Name: aide |
3 |
Version: 0.15.1 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv2+ |
6 |
Group: Monitoring |
7 |
URL: http://sourceforge.net/projects/aide |
8 |
Source0: http://prdownloads.sourceforge.net/aide/%{name}-%{version}.tar.gz |
9 |
Source1: http://prdownloads.sourceforge.net/aide/%{name}-%{version}.tar.gz.asc |
10 |
Source2: aide.conf |
11 |
Source3: aidecheck |
12 |
Source4: aideupdate |
13 |
Source5: aideinit |
14 |
Source6: aideinit.8 |
15 |
#p0 sent upstream by kharec |
16 |
patch0: aide-0.15-fix-str-fmt.patch |
17 |
Buildrequires: flex |
18 |
BuildRequires: glibc-devel |
19 |
BuildRequires: glibc-static-devel |
20 |
BuildRequires: mhash-devel |
21 |
BuildRequires: zlib-devel |
22 |
BuildRequires: bison |
23 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
24 |
|
25 |
Requires: gnupg |
26 |
|
27 |
%description |
28 |
AIDE (Advanced Intrusion Detection Environment) is a free alternative to |
29 |
Tripwire. It does the same things as the semi-free Tripwire and more. It |
30 |
is a file system integrity monitoring tool. |
31 |
|
32 |
|
33 |
%prep |
34 |
%setup -q |
35 |
%patch0 -p0 |
36 |
|
37 |
%build |
38 |
%configure2_5x \ |
39 |
--with-config-file=%{_sysconfdir}/aide.conf \ |
40 |
--with-zlib \ |
41 |
--with-mhash \ |
42 |
--with-syslog_facility=LOG_LOCAL1 |
43 |
|
44 |
perl -pi -e 's|/etc/aide.db|/var/lib/aide/aide.db|g' config.h |
45 |
|
46 |
%make |
47 |
|
48 |
%install |
49 |
rm -rf %{buildroot} |
50 |
|
51 |
make prefix=%{buildroot}%{_prefix} \ |
52 |
bindir=%{buildroot}%{_sbindir} \ |
53 |
mandir=%{buildroot}%{_mandir} \ |
54 |
install-strip |
55 |
|
56 |
mkdir -p %{buildroot}{/var/lib/aide/reports,%{_sysconfdir}/cron.daily,%{_mandir}/man8} |
57 |
|
58 |
install -m 0600 %{_sourcedir}/aide.conf %{buildroot}%{_sysconfdir}/aide.conf |
59 |
install -m 0700 %{_sourcedir}/aidecheck %{buildroot}%{_sbindir}/aidecheck |
60 |
install -m 0700 %{_sourcedir}/aideupdate %{buildroot}%{_sbindir}/aideupdate |
61 |
install -m 0700 %{_sourcedir}/aideinit %{buildroot}%{_sbindir}/aideinit |
62 |
install -m 0644 %{_sourcedir}/aideinit.8 %{buildroot}%{_mandir}/man8/aideinit.8 |
63 |
ln -sf ../..%{_sbindir}/aidecheck %{buildroot}%{_sysconfdir}/cron.daily/aide |
64 |
|
65 |
|
66 |
%post |
67 |
echo "*********************************************************" |
68 |
echo "* Please see aideinit(8) for information on how to setup" |
69 |
echo "* AIDE+gpg which this AIDE implementation uses by default" |
70 |
echo "*********************************************************" |
71 |
|
72 |
|
73 |
%clean |
74 |
rm -rf %{buildroot} |
75 |
|
76 |
|
77 |
%files |
78 |
%defattr(-,root,root) |
79 |
%doc AUTHORS COPYING ChangeLog NEWS README doc/aide.conf.in |
80 |
%attr(0700,root,root) %{_sbindir}/aide |
81 |
%attr(0700,root,root) %{_sbindir}/aidecheck |
82 |
%attr(0700,root,root) %{_sbindir}/aideinit |
83 |
%attr(0700,root,root) %{_sbindir}/aideupdate |
84 |
%{_mandir}/man1/aide.1* |
85 |
%{_mandir}/man5/aide.conf.5* |
86 |
%{_mandir}/man8/aideinit.8* |
87 |
%dir %attr(0700,root,root) /var/lib/aide |
88 |
%dir %attr(0700,root,root) /var/lib/aide/reports |
89 |
%attr(0700,root,root) %{_sysconfdir}/cron.daily/aide |
90 |
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf |
91 |
|
92 |
|