freebsd-ports/sysutils/pftop/Makefile
Wesley Shields 888ad81c31 Update patch to properly display direction of filtering rules.
Bump PORTREVISION.

PR:		ports/123670
Submitted by:	Andrey Groshev <greenx@yandex.ru>
Reviewed by:	mlaier (maintainer)
Approved by:	garga (mentor), mlaier (maintainer)
2008-05-19 13:01:33 +00:00

60 lines
1.5 KiB
Makefile

# New ports collection makefile for: pfflowd
# Date created: 23 June 2003
# Whom: Max Laier <max@love2party.net>
#
# $FreeBSD$
#
PORTNAME= pftop
PORTVERSION= 0.7
PORTREVISION= 1
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
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502106
IGNORE= only for 5.3 and above
.endif
.if ${OSVERSION} < 502116
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=34
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
CFLAGS+= -DHAVE_ALTQ=1
.endif
.elif ${OSVERSION} < 600025
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=35
CFLAGS+= -DHAVE_ALTQ=1 -DHAVE_RULE_ANCHOR=1
.elif ${OSVERSION} < 700049
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=37
CFLAGS+= -DHAVE_ALTQ=1
.else
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=41
CFLAGS+= -DHAVE_ALTQ=1
.endif
MAKE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" __MAKE_CONF=/dev/null
PLIST_FILES= sbin/pftop
post-patch:
@${REINPLACE_CMD} -e 's|<sys/queue.h>|"${FILESDIR}/queue.h"|g' \
${WRKSRC}/engine.c
@${REINPLACE_CMD} -e 's|__dead|__dead2|g' ${WRKSRC}/sf-gencode.h
@${REINPLACE_CMD} -e 's|__dead|__dead2|g' ${WRKSRC}/sf-gencode.c
@${REINPLACE_CMD} -e 's|#include <net/if_pflog.h>||g' \
${WRKSRC}/sf-gencode.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pftop ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/pftop.8 ${PREFIX}/man/man8
.include <bsd.port.post.mk>