Date: Thu, 16 Sep 2004 03:54:43 -0000 From: Max Laier <max@love2party.net> To: pf4freebsd@freelists.org Subject: [pf4freebsd] New port: sysutils/pfstat (http://www.benzedrine.cx/pfstat.html) Message-ID: <143780171.20031011190017@love2party.net>
next in thread | raw e-mail | index | archive | help
Hello, soon you will find pfstat (http://www.benzedrine.cx/pfstat.html) in the ports tree (http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/57852) and of course in the contrib tree of the tarball. I hope the PR gets processed soon. You can build it with either version of the gd. While gd2 is the default, "$make WITH_GD1=yes" will build and link with gd1. Tell me if anything goes wrong. I'll try to attach a shar file to bring it to your tarball now, but freelists wasn't too cooperative when it comes to attachments, so here it is inlined (just in case): --- Start --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pfstat # pfstat/Makefile # pfstat/distinfo # pfstat/files # pfstat/files/patch-aa # pfstat/pkg-plist # pfstat/pkg-descr # echo c - pfstat mkdir -p pfstat > /dev/null 2>&1 echo x - pfstat/Makefile sed 's/^X//' >pfstat/Makefile << 'END-of-pfstat/Makefile' X# New ports collection makefile for: pfstat X# Date created: 10 October 2003 X# Whom: Max Laier <max@love2party.net> X# X# $FreeBSD$ X# X XPORTNAME= pfstat XPORTVERSION= 1.7 XCATEGORIES= sysutils net XMASTER_SITES= http://www.benzedrine.cx/ XDISTNAME= ${PORTNAME}-${PORTVERSION} X XMAINTAINER= max@love2party.net XCOMMENT= Utility to render grafical statistics for pf X X#BUILD_DEPENDS= ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}/security/pf X#RUN_DEPENDS= ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf X.if defined(WITH_GD1) XLIB_DEPENDS= gd1.2:${PORTSDIR}/graphics/gd1 XCFLAGS+= -I${LOCALBASE}/include/gd XMAKE_ARGS= "LD_GD=gd1" X.else XLIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd XMAKE_ARGS= "LD_GD=gd" X.endif X XMAN8= pfstat.8 X XMANCOMPRESSED= no X XCFLAGS+= -I${.CURDIR}/../../include X X.include <bsd.port.pre.mk> X X.if ${OSVERSION} < 500000 XIGNORE= "Only for 5.0 and above" X.endif X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${PREFIX}/bin X ${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${PREFIX}/man/man8 X X.include <bsd.port.post.mk> END-of-pfstat/Makefile echo x - pfstat/distinfo sed 's/^X//' >pfstat/distinfo << 'END-of-pfstat/distinfo' XMD5 (pfstat-1.7.tar.gz) = bd58864b56774aa10aa763258de8b625 END-of-pfstat/distinfo echo c - pfstat/files mkdir -p pfstat/files > /dev/null 2>&1 echo x - pfstat/files/patch-aa sed 's/^X//' >pfstat/files/patch-aa << 'END-of-pfstat/files/patch-aa' X--- Makefile.orig Fri Oct 10 19:44:27 2003 X+++ Makefile Fri Oct 10 19:44:42 2003 X@@ -5,7 +5,7 @@ X CFLAGS+= -Wall X CFLAGS+= -I${LOCALBASE}/include X LDFLAGS+= -L${LOCALBASE}/lib X-LDFLAGS+= -lgd -lm -lpng -lz -ljpeg -lttf X+LDFLAGS+= -l${LD_GD} -lm -lpng -lz -ljpeg X NOMAN= 1 X X .include <bsd.prog.mk> END-of-pfstat/files/patch-aa echo x - pfstat/pkg-plist sed 's/^X//' >pfstat/pkg-plist << 'END-of-pfstat/pkg-plist' Xbin/pfstat END-of-pfstat/pkg-plist echo x - pfstat/pkg-descr sed 's/^X//' >pfstat/pkg-descr << 'END-of-pfstat/pkg-descr' XPfstat is a small utility that collects packet filter (security/pf) statistics Xand produces graphs like mrtg or alike. Samples can be found at the website Xbelow. X XWWW: http://www.benzedrine.cx/pfstat.html X X-Max <max@love2party.net> END-of-pfstat/pkg-descr exit --- End --- -- Best regards, Max mailto:max@love2party.net -- Binary/unsupported file stripped by Ecartis -- -- Type: application/octet-stream -- File: pfstat.shar
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?143780171.20031011190017>
