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