]> git.pld-linux.org Git - packages/aide.git/blob - aide.spec
- added Source2
[packages/aide.git] / aide.spec
1 Summary:        Advanced Intrusion Detection Environment
2 Name:           aide
3 Version:        0.7
4 Release:        1
5 License:        GPL
6 Group:          Applications/System
7 Group(de):      Applikationen/System
8 Group(pl):      Aplikacje/System
9 Source0:        ftp://ftp.linux.hr/pub/aide/%{name}-%{version}.tar.gz
10 Source1:        %{name}.conf
11 Source2:        %{name}-extra-%{version}.tar.bz2
12 Patch0:         %{name}-cvs20010627.patch.gz
13 URL:            http://www.cs.tut.fi/~rammer/aide.html
14 BuildRequires:  libgcrypt-static
15 BuildRequires:  gettext-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _sysconfdir     /etc/%{name}
19 %define         _pkglibdir      /var/lib/%{name}
20
21 %prep
22 %setup -q -b 0 -b 2
23 %patch0 -p1
24
25 %description
26 AIDE creates a database from the regular expression rules that it
27 finds from the config file. Once this database is initialized it can
28 be used to verify the integrity of the files. It has several message
29 digest algorithms (md5,sha1,rmd160,tiger,haval,etc.) that are used to
30 check the integrity of the file. More algorithms can be added with
31 relative ease. All of the usual file attributes can also be checked
32 for inconsistencies.
33
34 %build
35 %configure \
36         --with-config-file=%{_sysconfdir}/aide.conf \
37         --with-locale \
38         --without-zlib
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT
45 %{__install} -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir},/etc/cron.daily}
46 %{__install} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
47 %{__install} -m 700 extra/aide.check $RPM_BUILD_ROOT/etc/cron.daily
48
49 gzip -9nf AUTHORS ChangeLog NEWS README doc/aide.conf
50
51 %find_lang %{name}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files -f %{name}.lang
57 %defattr(644,root,root,755)
58 %doc *.gz doc/aide.conf.gz doc/manual.html extra/aide.html
59 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/aide.conf
60 %attr(750,root,root) %ghost %{_pkglibdir}
61 %attr(755,root,root) %{_bindir}/aide
62 %attr(700,root,root) %config(noreplace) /etc/cron.daily/aide.check
63 %{_mandir}/man[15]/*
This page took 0.484649 seconds and 4 git commands to generate.