From 270d38c3ece6e8bbe63bf86953720c79f5cbe45d Mon Sep 17 00:00:00 2001 From: pat Date: Sat, 17 Nov 2001 19:12:25 +0000 Subject: New port ipfw-graph: Graphical overview of traffic going through your IPFW rules patch-ipfw-gtk.c contributed by lioux PR: 32031 Submitted by: Edwin Groothuis , lioux(see above) Reviewed by: lioux Approved by: lioux --- net/ipfw-graph/Makefile | 20 ++++++++++++++++++++ net/ipfw-graph/distinfo | 1 + net/ipfw-graph/files/patch-Makefile | 31 +++++++++++++++++++++++++++++++ net/ipfw-graph/files/patch-ipfw-gtk.c | 11 +++++++++++ net/ipfw-graph/pkg-comment | 1 + net/ipfw-graph/pkg-descr | 10 ++++++++++ net/ipfw-graph/pkg-plist | 2 ++ 7 files changed, 76 insertions(+) create mode 100644 net/ipfw-graph/Makefile create mode 100644 net/ipfw-graph/distinfo create mode 100644 net/ipfw-graph/files/patch-Makefile create mode 100644 net/ipfw-graph/files/patch-ipfw-gtk.c create mode 100644 net/ipfw-graph/pkg-comment create mode 100644 net/ipfw-graph/pkg-descr create mode 100644 net/ipfw-graph/pkg-plist (limited to 'net/ipfw-graph') diff --git a/net/ipfw-graph/Makefile b/net/ipfw-graph/Makefile new file mode 100644 index 000000000000..7a89241859ed --- /dev/null +++ b/net/ipfw-graph/Makefile @@ -0,0 +1,20 @@ +# New ports collection makefile for: ipfw-graph +# Date created: 16 November 2001 +# Whom: Edwin Groothuis (edwin@mavetju.org) +# +# $FreeBSD$ +# + +PORTNAME= ipfw-graph +PORTVERSION= 1.3 +CATEGORIES= net +MASTER_SITES= http://www.mavetju.org/download/ + +MAINTAINER= edwin@mavetju.org + +USE_GTK= yes +MAKE_ENV+= MANPREFIX="${MANPREFIX}" + +MAN8= ipfw-al.8 ipfw-graph.8 + +.include diff --git a/net/ipfw-graph/distinfo b/net/ipfw-graph/distinfo new file mode 100644 index 000000000000..a5ea2854fb5b --- /dev/null +++ b/net/ipfw-graph/distinfo @@ -0,0 +1 @@ +MD5 (ipfw-graph-1.3.tar.gz) = d624be15caf4f0f5401658138ad04850 diff --git a/net/ipfw-graph/files/patch-Makefile b/net/ipfw-graph/files/patch-Makefile new file mode 100644 index 000000000000..8724046c19ff --- /dev/null +++ b/net/ipfw-graph/files/patch-Makefile @@ -0,0 +1,31 @@ +--- Makefile.orig Fri Nov 16 02:46:59 2001 ++++ Makefile Sat Nov 17 15:56:24 2001 +@@ -2,12 +2,11 @@ + # $Id: Makefile,v 1.8 2001/11/16 04:46:20 mavetju Exp $ + # + +-CC = gcc +-OPT_C = -c -Wall -g ++OPT_C = -c -Wall -g $(CFLAGS) + OPT_L = -g + +-GTK_C = `gtk12-config --cflags` +-GTK_L = `gtk12-config --libs` ++GTK_C = `${GTK_CONFIG} --cflags` ++GTK_L = `${GTK_CONFIG} --libs` + + OFILES = ipfw-core.o ipfw-data.o ipfw-gtk.o ipfw-default.o ipfw-log.o \ + ipfw-linear.o ipfw-allowonly.o ipfw-denyonly.o +@@ -38,7 +37,8 @@ + rm /usr/local/man/man8/ipfw-graph.8 + + install: +- install -o root -g wheel -m 4755 ipfw-al /usr/local/sbin +- install -o root -g wheel -m 0755 ipfw-graph /usr/local/bin +- install -o root -g wheel -m 0644 ipfw-al.8 /usr/local/man/man8 +- install -o root -g wheel -m 0644 ipfw-graph.8 /usr/local/man/man8 ++ ${BSD_INSTALL_PROGRAM} ipfw-al ${PREFIX}/sbin ++ chmod u+s ${PREFIX}/sbin/ipfw-al ++ ${BSD_INSTALL_PROGRAM} ipfw-graph ${PREFIX}/bin ++ ${BSD_INSTALL_MAN} ipfw-al.8 ${MANPREFIX}/man/man8 ++ ${BSD_INSTALL_MAN} ipfw-graph.8 ${MANPREFIX}/man/man8 diff --git a/net/ipfw-graph/files/patch-ipfw-gtk.c b/net/ipfw-graph/files/patch-ipfw-gtk.c new file mode 100644 index 000000000000..277067d5654d --- /dev/null +++ b/net/ipfw-graph/files/patch-ipfw-gtk.c @@ -0,0 +1,11 @@ +--- ipfw-gtk.c.orig Sat Nov 17 15:50:05 2001 ++++ ipfw-gtk.c Sat Nov 17 15:50:14 2001 +@@ -230,7 +230,7 @@ + + // text_area=gtk_label_new("blaat"); + text_area=gtk_entry_new(); +- gtk_entry_set_text(text_area,"blaat"); ++ gtk_entry_set_text((GtkEntry *)text_area,"blaat"); + gtk_box_pack_start(GTK_BOX(vbox),text_area,FALSE,FALSE,0); + gtk_widget_show(text_area); + diff --git a/net/ipfw-graph/pkg-comment b/net/ipfw-graph/pkg-comment new file mode 100644 index 000000000000..29c6bd676055 --- /dev/null +++ b/net/ipfw-graph/pkg-comment @@ -0,0 +1 @@ +Graphical overview of traffic going through your IPFW rules diff --git a/net/ipfw-graph/pkg-descr b/net/ipfw-graph/pkg-descr new file mode 100644 index 000000000000..629edd878757 --- /dev/null +++ b/net/ipfw-graph/pkg-descr @@ -0,0 +1,10 @@ +Displays a graphical overview of bytes going through your IPFW +rules and a piled overview of the percentage on which rule it +passed. + +FreeBSD only, GTK required. + +WWW: http://www.mavetju.org/ + +- Edwin Groothuis +edwin@mavetju.org diff --git a/net/ipfw-graph/pkg-plist b/net/ipfw-graph/pkg-plist new file mode 100644 index 000000000000..8916d598db9b --- /dev/null +++ b/net/ipfw-graph/pkg-plist @@ -0,0 +1,2 @@ +bin/ipfw-graph +sbin/ipfw-al -- cgit