]> git.pld-linux.org Git - packages/aide.git/blobdiff - aide.spec
- start update to 0.10, NFY - need ac/am hacker
[packages/aide.git] / aide.spec
index 1aa00051e736a84367d5e201dd4cefa6d7297297..a1495ad861dcefdeccd99025a3439787344b1ca2 100644 (file)
--- a/aide.spec
+++ b/aide.spec
@@ -1,23 +1,41 @@
 Summary:       Advanced Intrusion Detection Environment
 Summary:       Advanced Intrusion Detection Environment
+Summary(pl):   Zaawansowany System Wykrywania W³amañ (AIDE)
+Summary(pt_BR):        AIDE - ferramenta de verificação de integridade do sistema
 Name:          aide
 Name:          aide
-Version:       20010624
+Version:       0.10
 Release:       0.1
 License:       GPL
 Group:         Applications/System
 Release:       0.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:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: 39eb7d21064cac7b409c45d038b86cd8
+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}-ac_fix.patch
+Patch3:                %{name}-flex_fix.patch
+Patch4:                %{name}-no_md.patch
 URL:           http://www.cs.tut.fi/~rammer/aide.html
 URL:           http://www.cs.tut.fi/~rammer/aide.html
-#Source1:      %{name}.conf
-BuildRequires: libgcrypt-static
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: findutils
+BuildRequires: flex
+BuildRequires: gettext-devel
+BuildRequires: glibc-static
+BuildRequires: mhash-static
+BuildRequires: perl-modules
+BuildRequires: zlib-static >= 1.1.4
+Requires:      crondaemon
+Requires:      grep
+Requires:      mailx
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _sysconfdir     /etc/%{name}
-
-%prep
-%setup -q -n %{name}-%{version}
-#%patch0 -p1
+%define                _sysconfdir     /etc/%{name}
+%define                _pkglibdir      /var/lib/%{name}
 
 %description
 AIDE creates a database from the regular expression rules that it
 
 %description
 AIDE creates a database from the regular expression rules that it
@@ -28,18 +46,48 @@ 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.
 
 relative ease. All of the usual file attributes can also be checked
 for inconsistencies.
 
+%description -l pl
+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
+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
+#%patch3 -p1
+##%patch4 -p1
+
 %build
 %build
+rm -f missing po/Makefile*
+find . -name "*.c" -type f > po/POTFILES.in
+
+%{__gettextize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
        --with-config-file=%{_sysconfdir}/aide.conf \
 %configure \
        --with-config-file=%{_sysconfdir}/aide.conf \
-       --without-zlib
-%{__make}
+       --with-extra-includes=/usr/include/
+make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pkglibdir},/etc/cron.daily,/etc/sysconfig}
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf AUTHORS ChangeLog NEWS README
+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}
 
 
 %find_lang %{name}
 
@@ -48,7 +96,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
-#%config(noreplace) %{_sysconfdir}/aide.conf
+%doc AUTHORS ChangeLog NEWS README doc/aide.conf doc/manual.html aide-*/doc/aide.html
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/aide.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/aide
+%attr(750,root,root) %dir %{_pkglibdir}
 %attr(755,root,root) %{_bindir}/aide
 %attr(755,root,root) %{_bindir}/aide
+%attr(700,root,root) %config(noreplace) /etc/cron.daily/aide-check
 %{_mandir}/man[15]/*
 %{_mandir}/man[15]/*
This page took 0.047463 seconds and 4 git commands to generate.