# New ports collection makefile for: pfflowd # Date created: 23 June 2003 # Whom: Max Laier # # $FreeBSD$ # PORTNAME= pftop PORTVERSION= 0.7 PORTREVISION= 1 CATEGORIES= sysutils net MASTER_SITES= http://www.eee.metu.edu.tr/~canacar/ MAINTAINER= mlaier@FreeBSD.org COMMENT= Utility for real-time display of statistics for pf MAN8= pftop.8 MANCOMPRESSED= no .include .if ${OSVERSION} < 700049 MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=37 CFLAGS+= -DHAVE_ALTQ=1 .else MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=41 CFLAGS+= -DHAVE_ALTQ=1 .endif .if ${OSVERSION} >= 900000 BROKEN= does not compile on 9.X .endif MAKE_ENV+= __MAKE_CONF=/dev/null PLIST_FILES= sbin/pftop post-patch: @${REINPLACE_CMD} -e 's||"${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 ||g' \ ${WRKSRC}/sf-gencode.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pftop ${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/pftop.8 ${PREFIX}/man/man8 .include