aboutsummaryrefslogtreecommitdiffstats
path: root/security/aide/Makefile
blob: 1fcf003e43765a6c5e65bd696d6c69f43fa7b438 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Cy Schubert (Cy.Schubert@uumail.gov.bc.ca)
# $FreeBSD$

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


MAINTAINER= cy@FreeBSD.org
COMMENT=    Replacement and extension for Tripwire

LIB_DEPENDS=    libmhash.so:${PORTSDIR}/security/mhash
USES=       bison gmake

.include <bsd.port.pre.mk>

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

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

SUB_FILES=  pkg-message

post-install:
    @${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${STAGEDIR}${PREFIX}/etc/aide.conf.sample
    @if [ ! -f ${STAGEDOIR}${PREFIX}/etc/aide.conf ]; then \
        ${INSTALL_DATA} ${FILESDIR}/aide.conf.freebsd ${STAGEDIR}${PREFIX}/etc/aide.conf ; \
    fi

.include <bsd.port.post.mk>