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
|
2013-07-12 05:40:16 +02:00
|
|
|
PORTVERSION= 2.5
|
2013-08-09 16:05:52 +02:00
|
|
|
PORTREVISION= 1
|
2003-10-13 16:28:45 +02:00
|
|
|
CATEGORIES= sysutils net
|
|
|
|
MASTER_SITES= http://www.benzedrine.cx/
|
|
|
|
|
2013-07-03 04:13:34 +02:00
|
|
|
MAINTAINER= araujo@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
|
|
|
|
2014-07-14 20:42:04 +02:00
|
|
|
LIB_DEPENDS= libgd.so:${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>
|
|
|
|
|
|
|
|
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:
|
2014-06-22 16:42:27 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${STAGEDIR}/${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pfstatd/pfstatd ${STAGEDIR}/${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${STAGEDIR}/${PREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pfstatd/pfstatd.8 ${STAGEDIR}/${PREFIX}/man/man8
|
2003-10-13 16:28:45 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|