aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pftop/Makefile
blob: 1fe0335d395bbd2a23b1c1693335bba58e0cfa10 (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
# New ports collection makefile for:    pfflowd
# Date created:     23 June 2003
# Whom:         Max Laier <max@love2party.net>
#
# $FreeBSD$
#

PORTNAME=   pftop
PORTVERSION=    0.4
CATEGORIES= sysutils net
MASTER_SITES=   http://www.eee.metu.edu.tr/~canacar/
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= mlaier@freebsd.org
COMMENT=    Utility for real-time display of statistics for pf

MAN8=       pftop.8

MANCOMPRESSED=  no

MAKE_ARGS=  LOCALBASE="${PREFIX}" OSLEVEL=34
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
CFLAGS+=    -DHAVE_ALTQ=1
.endif

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE=     "Only for 5.0 and above"
.endif

.if ${OSVERSION} < 502106
BUILD_DEPENDS=  ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}/security/pf
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
BUILD_DEPENDS+=${LOCALBASE}/include/pf/altq/altq.h:${PORTSDIR}/security/pf
.endif
RUN_DEPENDS=    ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf

CFLAGS+=    -I${LOCALBASE}/include/pf
.endif

PLIST_FILES=    sbin/pftop

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pftop ${PREFIX}/sbin
    ${INSTALL_MAN} ${WRKSRC}/pftop.8 ${PREFIX}/man/man8

.include <bsd.port.post.mk>