From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 10 13:00:35 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9EBD16A4DA for ; Fri, 10 Oct 2003 13:00:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44E0D43F85 for ; Fri, 10 Oct 2003 13:00:34 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9AK0YFY019612 for ; Fri, 10 Oct 2003 13:00:34 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9AK0YGY019611; Fri, 10 Oct 2003 13:00:34 -0700 (PDT) (envelope-from gnats) Resent-Date: Fri, 10 Oct 2003 13:00:34 -0700 (PDT) Resent-Message-Id: <200310102000.h9AK0YGY019611@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Max Laier Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F013816A4EE for ; Fri, 10 Oct 2003 12:59:02 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5B1943FEA for ; Fri, 10 Oct 2003 12:58:56 -0700 (PDT) (envelope-from mlaier@vampire.homelinux.org) Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1A83Pb-0004eK-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 10 Oct 2003 21:58:55 +0200 Received: from [80.131.155.193] (helo=vampire.homelinux.org) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1A83Pb-0007DP-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 10 Oct 2003 21:58:55 +0200 Received: (qmail 37217 invoked by uid 1001); 10 Oct 2003 20:01:38 -0000 Message-Id: <20031010200138.37216.qmail@vampire.homelinux.org> Date: 10 Oct 2003 20:01:38 -0000 From: Max Laier To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/57852: New port: sysutils/pfstat - Grafical statistics for security/pf X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Max Laier List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 20:00:35 -0000 >Number: 57852 >Category: ports >Synopsis: New port: sysutils/pfstat - Grafical statistics for security/pf >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 10 13:00:33 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Max Laier >Release: FreeBSD 5.1-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD router.laiers.local 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #1: Sun Oct 5 17:38:55 CEST 2003 root@router.laiers.local:/usr/obj/usr/src/sys/ALTQ i386 >Description: Produces mrtg like statistics from pf interface logs (security/pf). >How-To-Repeat: >Fix: --- pfstat.shar begins here --- # 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 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 XBUILD_DEPENDS= ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}/security/pf XRUN_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${LOCALBASE}/include/pf X X.include 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 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 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 END-of-pfstat/pkg-descr exit --- pfstat.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: