LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File aide.spec of Package aide (Project home:zhy20120210:failed_1)

#
# spec file for package aide (Version 0.13.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           aide
BuildRequires:  bison flex libacl-devel libattr-devel mhash-devel pkg-config zlib-devel
BuildRequires:  curl-devel libselinux-devel
%define		prefix	/usr
Version:        0.13.1
Release:        40.14
Summary:        Advanced Intrusion Detection Environment
License:        GPL v2 or later
Group:          Productivity/Security
Source0:        http://www.cs.tut.fi/~rammer/aide-%{version}.tar.bz2
Source1:        aide.conf
Source2:        aide-cron_daily.sh
Patch:          aide-version-fix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://sourceforge.net/projects/aide/

%description
AIDE is an intrusion detection system that checks file integrity.



Authors:
--------
    rammer@cs.tut.fi

%prep
%setup -q
%patch0 
%{?suse_update_config:%{suse_update_config -l -f}}
autoconf

%build
CFLAGS="$RPM_OPT_FLAGS"				\
./configure 					\
	--prefix=%{_prefix} 			\
	--sysconfdir=/etc			\
	--mandir=%{_mandir}			\
	--with-config_file=/etc/aide.conf	\
	--with-dbhmactype=md5			\
	--disable-static			\
	--enable-lfs				\
	--with-posix-acl			\
	--with-xattr				\
	--with-selinux				\
	--with-curl				\
	--with-zlib
# --enable-forced_configmd

%install
make DESTDIR=$RPM_BUILD_ROOT install
install -m 700 -d $RPM_BUILD_ROOT/var/lib/aide
install -m 700 -d $RPM_BUILD_ROOT/etc
install -m 600    %{S:1} $RPM_BUILD_ROOT/etc/aide.conf
mkdir -p doc/examples/etc/cron.daily/
cp -a %{S:2} doc/examples/etc/cron.daily/aide.sh
mkdir /var/tmp/aide-test
export TESTDIR=/var/tmp/aide-test
make DESTDIR=$TESTDIR install
install -m 700 -d $TESTDIR/var/lib/aide
install -m 700 -d $TESTDIR/etc
install -m 600    %{S:1} $TESTDIR/etc/aide.conf.new
sed -e "s#/var/lib/aide#$TESTDIR/var/lib/aide#g" <$TESTDIR/etc/aide.conf.new >$TESTDIR/etc/aide.conf
$TESTDIR/usr/bin/aide -c $TESTDIR/etc/aide.conf --init
mv $TESTDIR/var/lib/aide/aide.db.new $TESTDIR/var/lib/aide/aide.db
$TESTDIR/usr/bin/aide -c $TESTDIR/etc/aide.conf --check
rm -rf $TESTDIR

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README doc/manual* aide.* doc/examples
%{_prefix}/bin/aide
/%{_mandir}/man1/aide.1.gz
/%{_mandir}/man5/aide.conf.5.gz
/var/lib/aide
%config(noreplace) /etc/aide.conf

%changelog
* Mon Jan  5 2009 meissner@suse.de
- fixed abort on check/update by removing the hash requirement bnc#406597
- fixed version output bnc#463511
- enhanced testcase to also run one aide --check
* Fri Aug 22 2008 meissner@suse.de
- enabled SELinux support [Fate#303662]
- enabled curl
- disable static (does not make much sense)
* Tue Feb 12 2008 meissner@suse.de
- Version 0.13.1
  * Fixed bug with reading gzipped aide.db files
  * Removed dead ustat code
- Version 0.13
  * Added support for selinux and xattr attributes
    (kindly contributed by Red Hat)
  * Added support for the Linux Audit System
    (kindly contributed by Red Hat)
  * Fixed usage of libgcrypt instead of libmhash
  * Added file locking for output files
  * Fixed bugs
- Version 0.12
  * Fixed bugs
  * Allow http/https/ftp URLs through libcurl
  * Support posix_fadvice() to avoid caching files
- enabled ACL and XATTR support
* Thu Mar 29 2007 meissner@suse.de
- buildrequires flex,bison
* Thu Apr 13 2006 meissner@suse.de
- run aide --init as test
* Mon Feb 20 2006 mge@suse.de
- update to 0.11
- fixes bug #149059
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 14 2006 schwab@suse.de
- Don't strip binaries.
* Fri Mar 18 2005 mge@suse.de
- fixes #71272 - aide-0.10-47 config files not yet converted to utf8
* Mon Jan 26 2004 mge@suse.de
- upgrade to 0.10
- #33600: more usable default aide.conf
  (thanks to Dirk Mueller <dmuell@gmx.net>)
- example-cron-job
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Wed Nov 13 2002 ro@suse.de
- fix build for current bison
* Thu Aug 15 2002 mge@suse.de
- update to 0.9
* Mon Apr  9 2001 ro@suse.de
- don't use macro for version
- remove obsolete macros
* Wed Nov 22 2000 mge@suse.de
- created PAC files
- make SPEC file 7.0 compliant
* Sat Jul 15 2000 mge@suse.de
- initial SuSE RPM, config file /etc/aide.conf
* Tue Jan 25 2000 Matthew Kirkwood <weejock@ferret.lmh.ox.ac.uk>
- Fixes for RH 6.1 and sysconfdir changed to /etc and /var/lib/aide added
* Sat Sep 11 1999 Rami Lehti <rammer@cs.tut.fi>
- Some small changes to make this autogeneratable by configure.
* Fri Sep 10 1999 Zach Brown <zab@redhat.com>
- First go