aboutsummaryrefslogtreecommitdiffstats
path: root/security/razorback-archiveInflate/Makefile
blob: 1002b883aa099f79baa3e8c3ab36141c96b1574a (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
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    razorback-archiveInflate
# Date created:             2011/06/8
# Whom:                 Tom Judge <tom@tomjudge.com>
#
# $FreeBSD$
#

PORTNAME=   archiveInflate
PORTVERSION=    0.5.0
CATEGORIES= security
MASTER_SITES=   SF/razorbacktm/Nuggets
PKGNAMEPREFIX=  razorback-
DIST_SUBDIR=    razorback

MAINTAINER= tj@FreeBSD.org
COMMENT=    Framework for an intelligence driven security - Archive Inflator

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    razorback_api:${PORTSDIR}/security/razorback-api
BUILD_DEPENDS=  razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget
RUN_DEPENDS=    razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget

OPTIONS_DEFINE= DEBUG ASSERT
ASSERT_DESC=    Enable Asserts

.include <bsd.port.options.mk>

RB_LIBDIR?= ${PREFIX}/lib/razorback
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   ${RB_LIBDIR}
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif

.if ${PORT_OPTIONS:MASSERT}
CONFIGURE_ARGS+=--enable-assert
.endif

post-install:
    ${LN} -sf ${RB_LIBDIR}/archiveInflate.so.2 ${RB_LIBDIR}/archiveInflate.so.2.0.0
    @if [ ! -f ${PREFIX}/etc/razorback/archive_inflate.conf ]; then \
        ${CP} -p ${PREFIX}/etc/razorback/archive_inflate.conf.sample ${PREFIX}/etc/razorback/archive_inflate.conf ; \
    fi

.include <bsd.port.mk>