aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/packit/Makefile
blob: df114749328a02fbdc2e3cb72d7c573f744d5120 (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
# New ports collection makefile for:        packit
# Date created:                     02.06.2003
# Whom:                             Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=   packit
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= net-mgmt
MASTER_SITES=   http://packit.sourceforge.net/downloads/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Network auditing tool

BUILD_DEPENDS=  libnet*>=1.1.2,1:${PORTSDIR}/net/libnet

LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet-config
MAN8=       packit.8
PLIST_FILES=    sbin/packit

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

.if defined(WITHOUT_CAPTURE)
CONFIGURE_ARGS+=    --without-capture
.endif
.if defined(WITHOUT_INJECTION)
CONFIGURE_ARGS+=    --without-injection
.endif

pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} ""#######################################################
    @${ECHO_MSG} ""
    @${ECHO_MSG} "You need ${PORTSDIR}/net/libnet to build this port
    @${ECHO_MSG} ""
    @${ECHO_MSG} ""#######################################################
    @${ECHO_MSG} ""

.include <bsd.port.mk>