]> git.pld-linux.org Git - packages/aide.git/blob - aide.spec
- massive attack: adding Source-md5
[packages/aide.git] / aide.spec
1 Summary:        Advanced Intrusion Detection Environment
2 Summary(pl):    Zaawansowany System Wykrywania W³amañ (AIDE)
3 Name:           aide
4 Version:        0.9
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        ftp://ftp.cs.tut.fi/pub/src/gnu/%{name}-%{version}.tar.gz
9 # Source0-md5:  877b1f515a9e25afda75e06805d687fb
10 Source1:        %{name}.conf
11 Source2:        %{name}-0.7-doc.tar.bz2
12 Source3:        %{name}-check
13 Source4:        %{name}.sysconfig
14 Patch0:         %{name}-autoconf.patch
15 Patch1:         %{name}-NLS.patch
16 Patch2:         %{name}-ac_fix.patch
17 Patch3:         %{name}-flex_fix.patch
18 Patch4:         %{name}-no_md.patch
19 URL:            http://www.cs.tut.fi/~rammer/aide.html
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  bison
23 BuildRequires:  findutils
24 BuildRequires:  flex
25 BuildRequires:  gettext-devel
26 BuildRequires:  glibc-static
27 BuildRequires:  mhash-static
28 BuildRequires:  perl-modules
29 BuildRequires:  yacc
30 BuildRequires:  zlib-static >= 1.1.4
31 Requires:       crondaemon
32 Requires:       grep
33 Requires:       mailx
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %define         _sysconfdir     /etc/%{name}
37 %define         _pkglibdir      /var/lib/%{name}
38
39 %description
40 AIDE creates a database from the regular expression rules that it
41 finds from the config file. Once this database is initialized it can
42 be used to verify the integrity of the files. It has several message
43 digest algorithms (md5,sha1,rmd160,tiger,haval,etc.) that are used to
44 check the integrity of the file. More algorithms can be added with
45 relative ease. All of the usual file attributes can also be checked
46 for inconsistencies.
47
48 %description -l pl
49 AIDE tworzy bazê danych z wyra¿eñ regularnych, które znajduj± siê w
50 pliku konfiguracyjnym. Gdy baza zostanie zainicjowana mo¿na sprawdzaæ
51 integralno¶æ plików. U¿ywanych jest kilka algorytmów sprawdzania
52 spójno¶ci (md5,sha1,rmd160,tiger,haval,itp.). Inne mog± byæ dodane
53 stosunkowo ³atwo. Zwyk³e atrybuty plików tak¿e mog± byæ sprawdzane.
54
55 %prep
56 %setup -q -b 0 -a 2
57 %patch0 -p1
58 %patch1 -p1
59 %patch2 -p1
60 %patch3 -p1
61 %patch4 -p1
62
63 %build
64 rm -f missing po/Makefile*
65 find . -name "*.c" -type f > po/POTFILES.in
66 %{__gettextize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__automake}
70 %configure \
71         --with-config-file=%{_sysconfdir}/aide.conf \
72         --with-extra-includes=/usr/include/
73 make
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir},/etc/cron.daily,/etc/sysconfig}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
83 install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.daily
84 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/aide
85
86 %find_lang %{name}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files -f %{name}.lang
92 %defattr(644,root,root,755)
93 %doc AUTHORS ChangeLog NEWS README doc/aide.conf doc/manual.html aide-*/doc/aide.html
94 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/aide.conf
95 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/aide
96 %attr(750,root,root) %dir %{_pkglibdir}
97 %attr(755,root,root) %{_bindir}/aide
98 %attr(700,root,root) %config(noreplace) /etc/cron.daily/aide-check
99 %{_mandir}/man[15]/*
This page took 0.034968 seconds and 4 git commands to generate.