# $MidnightBSD: trunk/security/aide/Makefile 22929 2017-10-08 16:15:27Z laffer1 $

PORTNAME=	aide
PORTVERSION=	0.16
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	SF \
		http://www.cs.tut.fi/~rammer/

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Replacement and extension for Tripwire

LICENSE=	gpl2

LIB_DEPENDS=	libmhash.so:security/mhash \
		libpcre.so:devel/pcre
USES=		autoreconf bison gmake

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-mhash \
		--with-zlib \
		--with-config_file=${PREFIX}/etc/aide.conf

LDFLAGS+=	-L${LOCALBASE}/lib -pthread
CFLAGS+=	-I${LOCALBASE}/include

SUB_FILES=	pkg-message

post-install:
	${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${STAGEDIR}${PREFIX}/etc/aide.conf.sample
	${MKDIR} ${STAGEDIR}/var/db/aide/databases
	${CHMOD} 0700 ${STAGEDIR}/var/db/aide ${STAGEDIR}/var/db/aide/databases

.include <bsd.port.mk>
