]> git.pld-linux.org Git - packages/aide.git/blob - aide.spec
5f7ee117aa0252606c670623aa434ea3dae9545d
[packages/aide.git] / aide.spec
1 Summary:        Advanced Intrusion Detection Environment
2 Name:           aide
3 Version:        0.7
4 Release:        2
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}-%{version}-doc.tar.bz2
12 Source3:        %{name}-check
13 Patch0:         %{name}-cvs20010627.patch.gz
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:  gettext-devel
20 BuildRequires:  glibc-static
21 BuildRequires:  libgcrypt-static
22 BuildRequires:  zlib-static
23 Requires:       crondaemon
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _sysconfdir     /etc/%{name}
27 %define         _pkglibdir      /var/lib/%{name}
28
29 %prep
30 %setup -q -b 0 -b 2
31 %patch0 -p1
32 %patch1 -p1
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 %build
44 rm -f missing
45 gettextize --copy --force
46 aclocal
47 autoconf
48 automake -a -c
49 %configure \
50         --with-config-file=%{_sysconfdir}/aide.conf
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 %{__install} -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir},/etc/cron.daily}
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %{__install} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
61 %{__install} %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.daily
62
63 gzip -9nf AUTHORS ChangeLog NEWS README doc/aide.conf
64
65 %find_lang %{name}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %doc *.gz doc/aide.conf.gz doc/manual.html doc/aide.html
73 %attr(640,root,root) %config(noreplace) %{_sysconfdir}/aide.conf
74 %attr(750,root,root) %dir %{_pkglibdir}
75 %attr(755,root,root) %{_bindir}/aide
76 %attr(700,root,root) %config(noreplace) /etc/cron.daily/aide-check
77 %{_mandir}/man[15]/*
78 %lang(ru) %{_mandir}/ru/man[15]/*
This page took 0.028056 seconds and 3 git commands to generate.