]> git.pld-linux.org Git - packages/aide.git/blobdiff - aide.spec
50941b28384cafb6b16095466cbe69ad aide-check
[packages/aide.git] / aide.spec
index 1aa00051e736a84367d5e201dd4cefa6d7297297..c41fa3788ecbdf4bff6e66ed12f8a72252c998a7 100644 (file)
--- a/aide.spec
+++ b/aide.spec
@@ -1,23 +1,33 @@
 Summary:       Advanced Intrusion Detection Environment
 Name:          aide
-Version:       20010624
-Release:       0.1
+Version:       0.7
+Release:       1
 License:       GPL
 Group:         Applications/System
 Group(de):     Applikationen/System
 Group(pl):     Aplikacje/System
-#Source0:      ftp://ftp.linux.hr/pub/aide/%{name}-%{version}.tar.gz
-Source0:       %{name}-%{version}.tar.gz
+Source0:       ftp://ftp.linux.hr/pub/aide/%{name}-%{version}.tar.gz
+Source1:       %{name}.conf
+Source2:       %{name}-extra-%{version}.tar.bz2
+Patch0:                %{name}-cvs20010627.patch.gz
+Patch1:                %{name}-NLS.patch
 URL:           http://www.cs.tut.fi/~rammer/aide.html
-#Source1:      %{name}.conf
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: flex
+BuildRequires: gettext-devel
+BuildRequires: glibc-static
 BuildRequires: libgcrypt-static
+Requires:      crond
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _sysconfdir     /etc/%{name}
+%define                _sysconfdir     /etc/%{name}
+%define                _pkglibdir      /var/lib/%{name}
 
 %prep
-%setup -q -n %{name}-%{version}
-#%patch0 -p1
+%setup -q -b 0 -b 2
+%patch0 -p1
+%patch1 -p1
 
 %description
 AIDE creates a database from the regular expression rules that it
@@ -29,6 +39,11 @@ relative ease. All of the usual file attributes can also be checked
 for inconsistencies.
 
 %build
+rm -f missing
+gettextize --copy --force
+aclocal
+autoconf
+automake -a -c
 %configure \
        --with-config-file=%{_sysconfdir}/aide.conf \
        --without-zlib
@@ -36,10 +51,15 @@ for inconsistencies.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+%{__install} -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir},/etc/cron.daily}
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf AUTHORS ChangeLog NEWS README
+%{__install} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
+%{__install} extra/aide.check $RPM_BUILD_ROOT/etc/cron.daily
+
+gzip -9nf AUTHORS ChangeLog NEWS README doc/aide.conf
 
 %find_lang %{name}
 
@@ -48,7 +68,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
-#%config(noreplace) %{_sysconfdir}/aide.conf
+%doc *.gz doc/aide.conf.gz doc/manual.html extra/aide.html
+%attr(640,root,root) %config(noreplace) %{_sysconfdir}/aide.conf
+%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]/*
+%lang(ru) %{_mandir}/ru/man[15]/*
This page took 0.074625 seconds and 4 git commands to generate.