# Created by: Max Laier # $FreeBSD$ PORTNAME= pfstat PORTVERSION= 2.5 PORTREVISION= 1 CATEGORIES= sysutils net MASTER_SITES= http://www.benzedrine.cx/ MAINTAINER= araujo@FreeBSD.org COMMENT= Utility to render graphical statistics for pf LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd MAKE_ARGS= "LD_GD=gd" MAKE_ENV+= __MAKE_CONF=/dev/null USES= iconv USE_RC_SUBR= pfstatd MAN8= pfstat.8 \ pfstatd.8 MANCOMPRESSED= no PLIST_FILES= bin/pfstat \ bin/pfstatd NO_STAGE= yes .include .if ${OSVERSION} < 700048 EXTRA_PATCHES= ${PATCHDIR}/pre41-patch-pf.c .endif post-patch: @${REINPLACE_CMD} -e 's|-lgd|-l$${LD_GD}|; s| -lttf||' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \ ${WRKSRC}/pfstat.[c8] do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/pfstatd/pfstatd ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/pfstatd/pfstatd.8 ${PREFIX}/man/man8 .include