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