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