summaryrefslogtreecommitdiff
path: root/aide.spec
blob: 50d835c31e9e33a3e600ca1439cdaf43283ca99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Summary:	Advanced Intrusion Detection Environment
Summary(pl.UTF-8):	Zaawansowany System Wykrywania Włamań (AIDE)
Summary(pt_BR.UTF-8):	AIDE - ferramenta de verificação de integridade do sistema
Name:		aide
Version:	0.11
Release:	1
License:	GPL
Group:		Applications/System
Source0:	http://dl.sourceforge.net/aide/%{name}-%{version}.tar.gz
# Source0-md5:	9a44e5386b0355ef57c60f627ff4d085
Source1:	%{name}.conf
Source2:	%{name}-0.7-doc.tar.bz2
# Source2-md5:	f8d01112f839957b3061bb6b5f262174
Source3:	%{name}-check
Source4:	%{name}.sysconfig
Patch0:		%{name}-autoconf.patch
Patch1:		%{name}-NLS.patch
Patch2:		%{name}-no_md.patch
URL:		http://www.cs.tut.fi/~rammer/aide.html
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gettext-devel
BuildRequires:	glibc-static
BuildRequires:	mhash-static
BuildRequires:	perl-modules
BuildRequires:	zlib-static >= 1.1.4
Requires:	crondaemon
Requires:	grep
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_sysconfdir	/etc/%{name}
%define		_pkglibdir	/var/lib/%{name}

%description
AIDE creates a database from the regular expression rules that it
finds from the config file. Once this database is initialized it can
be used to verify the integrity of the files. It has several message
digest algorithms (md5,sha1,rmd160,tiger,haval,etc.) that are used to
check the integrity of the file. More algorithms can be added with
relative ease. All of the usual file attributes can also be checked
for inconsistencies.

%description -l pl.UTF-8
AIDE tworzy bazę danych z wyrażeń regularnych, które znajdują się w
pliku konfiguracyjnym. Gdy baza zostanie zainicjowana można sprawdzać
integralność plików. Używanych jest kilka algorytmów sprawdzania
spójności (md5,sha1,rmd160,tiger,haval,itp.). Inne mogą być dodane
stosunkowo łatwo. Zwykłe atrybuty plików także mogą być sprawdzane.

%description -l pt_BR.UTF-8
O AIDE tem por objetivo ser a versão gratuita do Tripwire, e ajuda a
detectar violações de integridade pelo uso de hashes como MD5.

%prep
%setup -q -b 0 -a 2
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%{__gettextize}
%{__aclocal}
%{__autoconf}
%{__automake}
%configure \
	--with-config-file=%{_sysconfdir}/aide.conf
#	--with-extra-includes=/usr/include/
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir},/etc/cron.daily,/etc/sysconfig}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.daily
install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/aide

# %find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README doc/aide.conf doc/manual.html aide-*/doc/aide.html
%attr(750,root,root) %dir %{_sysconfdir}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aide.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/aide
%attr(750,root,root) %dir %{_pkglibdir}
%attr(755,root,root) %{_bindir}/aide
%attr(700,root,root) %config(noreplace) /etc/cron.daily/aide-check
%{_mandir}/man[15]/*