# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> 
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: CRT <crt.011@gmail.com>

pkgname=aide
pkgver=0.15.1
pkgrel=2
pkgdesc="AIDE (Advanced Intrusion Detection Environment) is a file integrity checker"
arch=('i686' 'x86_64')
url="http://www.cs.tut.fi/~rammer/aide.html"
install=aide.install
license=('GPL')
makedepends=('mhash')
source=(http://sourceforge.net/projects/aide/files/aide/${pkgver}/${pkgname}-${pkgver}.tar.gz \
        aide.conf.default)
md5sums=('d0b72535ff68b93a648e4d08b0ed7f07' \
         '22e702e54006384d7ef8a5e46a29e758')

build() {
	cd ${srcdir}/${pkgname}-${pkgver}
	./configure --prefix=/usr --sysconfdir=/etc --with-mhash
	make 
}

package() {
        cd ${srcdir}/${pkgname}-${pkgver}
	make DESTDIR=$pkgdir install
	install -D -m644 ${srcdir}/aide.conf.default ${pkgdir}/etc/aide.conf.archlinux
	install -D -m644 doc/aide.conf ${pkgdir}/etc/aide.conf.demo
	install -D -m644 COPYING ${pkgdir}/usr/share/licenses/aide/COPYING
}

