]>
Commit | Line | Data |
---|---|---|
267fa07a GS |
1 | Summary: Advanced Intrusion Detection Environment |
2 | Name: aide | |
7c6e55eb GS |
3 | Version: 0.7 |
4 | Release: 1 | |
815547a7 | 5 | License: GPL |
6 | Group: Applications/System | |
7 | Group(de): Applikationen/System | |
8 | Group(pl): Aplikacje/System | |
7c6e55eb GS |
9 | Source0: ftp://ftp.linux.hr/pub/aide/%{name}-%{version}.tar.gz |
10 | Source1: %{name}.conf | |
6b63be5a | 11 | Source2: %{name}-extra-%{version}.tar.bz2 |
7c6e55eb | 12 | Patch0: %{name}-cvs20010627.patch.gz |
eac5aeb7 | 13 | Patch1: %{name}-NLS.patch |
815547a7 | 14 | URL: http://www.cs.tut.fi/~rammer/aide.html |
eac5aeb7 | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
17 | BuildRequires: flex | |
62aff1ca | 18 | BuildRequires: gettext-devel |
eac5aeb7 | 19 | BuildRequires: glibc-static |
20 | BuildRequires: libgcrypt-static | |
21 | Requires: crond | |
267fa07a GS |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
7c6e55eb GS |
24 | %define _sysconfdir /etc/%{name} |
25 | %define _pkglibdir /var/lib/%{name} | |
267fa07a GS |
26 | |
27 | %prep | |
6b63be5a | 28 | %setup -q -b 0 -b 2 |
7c6e55eb | 29 | %patch0 -p1 |
eac5aeb7 | 30 | %patch1 -p1 |
267fa07a GS |
31 | |
32 | %description | |
33 | AIDE creates a database from the regular expression rules that it | |
34 | finds from the config file. Once this database is initialized it can | |
35 | be used to verify the integrity of the files. It has several message | |
36 | digest algorithms (md5,sha1,rmd160,tiger,haval,etc.) that are used to | |
37 | check the integrity of the file. More algorithms can be added with | |
38 | relative ease. All of the usual file attributes can also be checked | |
39 | for inconsistencies. | |
40 | ||
41 | %build | |
eac5aeb7 | 42 | rm -f missing |
43 | gettextize --copy --force | |
44 | aclocal | |
45 | autoconf | |
46 | automake -a -c | |
267fa07a GS |
47 | %configure \ |
48 | --with-config-file=%{_sysconfdir}/aide.conf \ | |
49 | --without-zlib | |
50 | %{__make} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
eac5aeb7 | 54 | %{__install} -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir},/etc/cron.daily} |
55 | ||
267fa07a GS |
56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
eac5aeb7 | 58 | |
7c6e55eb | 59 | %{__install} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir} |
eac5aeb7 | 60 | %{__install} extra/aide.check $RPM_BUILD_ROOT/etc/cron.daily |
267fa07a | 61 | |
7c6e55eb | 62 | gzip -9nf AUTHORS ChangeLog NEWS README doc/aide.conf |
815547a7 | 63 | |
949c280b | 64 | %find_lang %{name} |
815547a7 | 65 | |
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
949c280b | 69 | %files -f %{name}.lang |
267fa07a | 70 | %defattr(644,root,root,755) |
6b63be5a | 71 | %doc *.gz doc/aide.conf.gz doc/manual.html extra/aide.html |
7c6e55eb | 72 | %attr(640,root,root) %config(noreplace) %{_sysconfdir}/aide.conf |
ceddf0b0 | 73 | %attr(750,root,root) %dir %{_pkglibdir} |
267fa07a | 74 | %attr(755,root,root) %{_bindir}/aide |
6b63be5a | 75 | %attr(700,root,root) %config(noreplace) /etc/cron.daily/aide.check |
267fa07a | 76 | %{_mandir}/man[15]/* |
eac5aeb7 | 77 | %lang(ru) %{_mandir}/ru/man[15]/* |