aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/ipsectrace/Makefile
blob: 20819245adbdfda19619bd896e98154932c6c05a (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
# New ports collection makefile for:    ipsectrace
# Date created:     2006-11-04
# Whom:         Babak Farrokhi <babak@farrokhi.net>
#
# $FreeBSD$
#

PORTNAME=   ipsectrace
PORTVERSION=    0.1.0
CATEGORIES= net-mgmt security
MASTER_SITES=   http://chewies.net/ \
        http://farrokhi.net/distfiles/

MAINTAINER= farrokhi@FreeBSD.org
COMMENT=    IPSEC Traffic Profiler

WRKSRC=     ${WRKDIR}/${PORTNAME}
MAKE_ARGS=  CXX="${CXX}" CXXFLAGS="${CXXFLAGS} -Wno-deprecated" \
        LDFLAGS="${LDFLAGS} -lpcap" INCLUDES="${INCLUDES}"
PLIST_FILES=    bin/ipsectrace

post-patch:
    @${REINPLACE_CMD} -e 's,-O2,,g' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's,<hash_map>,<hash_map.h>,g' ${WRKSRC}/ipsectrace.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ipsectrace ${PREFIX}/bin/ipsectrace

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600032
BUILD_DEPENDS+= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
.endif

.include <bsd.port.post.mk>