2013-07-03 04:08:05 +02:00
|
|
|
# Created by: Max Laier <max@love2party.net>
|
2003-10-13 16:28:45 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pfstat
|
2009-02-22 23:12:35 +01:00
|
|
|
PORTVERSION= 2.4
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 5
|
2003-10-13 16:28:45 +02:00
|
|
|
CATEGORIES= sysutils net
|
|
|
|
MASTER_SITES= http://www.benzedrine.cx/
|
|
|
|
|
2013-07-03 04:08:05 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-12-16 02:58:38 +01:00
|
|
|
COMMENT= Utility to render graphical statistics for pf
|
2003-10-13 16:28:45 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
|
2006-07-24 16:51:48 +02:00
|
|
|
|
2003-10-13 16:28:45 +02:00
|
|
|
MAKE_ARGS= "LD_GD=gd"
|
2008-07-25 14:48:47 +02:00
|
|
|
MAKE_ENV+= __MAKE_CONF=/dev/null
|
2013-04-27 20:25:24 +02:00
|
|
|
USES= iconv
|
2003-10-13 16:28:45 +02:00
|
|
|
|
2010-09-14 04:54:42 +02:00
|
|
|
USE_RC_SUBR= pfstatd
|
2006-07-24 16:51:48 +02:00
|
|
|
MAN8= pfstat.8 \
|
|
|
|
pfstatd.8
|
2003-10-13 16:28:45 +02:00
|
|
|
|
|
|
|
MANCOMPRESSED= no
|
2006-07-24 16:51:48 +02:00
|
|
|
PLIST_FILES= bin/pfstat \
|
|
|
|
bin/pfstatd
|
2003-10-13 16:28:45 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-07-14 18:57:27 +02:00
|
|
|
.if ${OSVERSION} < 700048
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/pre41-patch-pf.c
|
|
|
|
.endif
|
|
|
|
|
2003-10-13 16:28:45 +02:00
|
|
|
post-patch:
|
2003-10-13 16:41:27 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lgd|-l$${LD_GD}|; s| -lttf||' \
|
2003-10-13 16:28:45 +02:00
|
|
|
${WRKSRC}/Makefile
|
2006-07-24 16:51:48 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \
|
|
|
|
${WRKSRC}/pfstat.[c8]
|
2003-10-13 16:28:45 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${PREFIX}/bin
|
2006-07-24 16:51:48 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pfstatd/pfstatd ${PREFIX}/bin
|
2003-10-13 16:28:45 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${PREFIX}/man/man8
|
2006-07-24 16:51:48 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pfstatd/pfstatd.8 ${PREFIX}/man/man8
|
2003-10-13 16:28:45 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|