From edwin@mavetju.org  Wed Sep  5 15:34:47 2001
Return-Path: <edwin@mavetju.org>
Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141])
	by hub.freebsd.org (Postfix) with ESMTP id 6396B37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Sep 2001 15:34:47 -0700 (PDT)
Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141])
	by topaz.mdcc.cx (Postfix) with ESMTP id D4FC92B718
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Sep 2001 00:34:32 +0200 (CEST)
Received: by k7.mavetju.org (Postfix, from userid 1001)
	id 77EAB77D; Wed,  5 Sep 2001 19:49:43 +1000 (EST)
Message-Id: <20010905094943.77EAB77D@k7.mavetju.org>
Date: Wed,  5 Sep 2001 19:49:43 +1000 (EST)
From: edwin@mavetju.org
Reply-To: edwin@mavetju.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: new port: www/httpgrabber - HTTP traffic analyzer and extractor
X-Send-Pr-Version: 3.2

>Number:         30358
>Category:       ports
>Synopsis:       new port: www/httpgrabber - HTTP traffic analyzer and extractor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 05 15:40:01 PDT 2001
>Closed-Date:    Tue Nov 6 10:03:21 PST 2001
>Last-Modified:  Tue Nov 06 10:04:04 PST 2001
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
-
>Environment:

n/a

>Description:

New port: httpgrabber - HTTP traffic analyzer and extractor

>How-To-Repeat:

n/a

>Fix:

# 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:
#
#	www/httpgrabber/
#	www/httpgrabber/Makefile
#	www/httpgrabber/distinfo
#	www/httpgrabber/files
#	www/httpgrabber/files/patch-Makefile
#	www/httpgrabber/pkg-plist
#	www/httpgrabber/pkg-comment
#	www/httpgrabber/pkg-descr
#
echo c - www/httpgrabber/
mkdir -p www/httpgrabber/ > /dev/null 2>&1
echo x - www/httpgrabber/Makefile
sed 's/^X//' >www/httpgrabber/Makefile << 'END-of-www/httpgrabber/Makefile'
X# New ports collection makefile for:   httpgrabber
X# Date created:        5 september 2001
X# Whom:                Edwin Groothuis (edwin@mavetju.org)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	httpgrabber
XPORTVERSION=	1.0
XCATEGORIES=	net
XMASTER_SITES=	http://www.mavetju.org/download/
X
XMAINTAINER=	edwin@mavetju.org
X
XBUILD_DEPENDS=	${LOCALBASE}/lib/libngrep.so:${PORTSDIR}/net/ngrep-lib
X
XMAN8=		httpgrabber.8
X
X.include <bsd.port.mk>
END-of-www/httpgrabber/Makefile
echo x - www/httpgrabber/distinfo
sed 's/^X//' >www/httpgrabber/distinfo << 'END-of-www/httpgrabber/distinfo'
XMD5 (httpgrabber-1.0.tar.gz) = 2337d44547be4ab97c371391781960e4
END-of-www/httpgrabber/distinfo
echo c - www/httpgrabber/files
mkdir -p www/httpgrabber/files > /dev/null 2>&1
echo x - www/httpgrabber/files/patch-Makefile
sed 's/^X//' >www/httpgrabber/files/patch-Makefile << 'END-of-www/httpgrabber/files/patch-Makefile'
X--- Makefile.old	Wed Sep  5 19:39:01 2001
X+++ Makefile	Wed Sep  5 19:39:32 2001
X@@ -3,8 +3,8 @@
X #
X 
X CC=gcc
X-CFLAGS=-g -Wall -I/usr/local/include -c
X-LFLAGS=-g -Wall -L/usr/local/lib
X+CFLAGS=-g -Wall -I${PREFIX}/include -c
X+LFLAGS=-g -Wall -L${PREFIX}/lib
X LIBS=-lngrep -lpcap
X 
X all: httpgrabber
X@@ -16,12 +16,12 @@
X 	$(CC) $(CFLAGS) -o httpgrabber.o httpgrabber.c
X 
X install: httpgrabber httpgrabber.8
X-	install -c -m 755 -o root httpgrabber /usr/local/bin
X-	install -c -m 755 -o root httpgrabber.8 /usr/local/man/man8
X+	install -c -m 755 -o root httpgrabber ${PREFIX}/bin
X+	install -c -m 755 -o root httpgrabber.8 ${PREFIX}/man/man8
X 
X uninstall:
X-	rm /usr/local/bin/httpgrabber
X-	rm /usr/local/man/man8/httpgrabber.8
X+	rm ${PREFIX}/bin/httpgrabber
X+	rm ${PREFIX}/man/man8/httpgrabber.8
X 
X clean:
X 	rm -rf httpgrabber httpgrabber.o httpgrabber.core
END-of-www/httpgrabber/files/patch-Makefile
echo x - www/httpgrabber/pkg-plist
sed 's/^X//' >www/httpgrabber/pkg-plist << 'END-of-www/httpgrabber/pkg-plist'
Xbin/httpgrabber
END-of-www/httpgrabber/pkg-plist
echo x - www/httpgrabber/pkg-comment
sed 's/^X//' >www/httpgrabber/pkg-comment << 'END-of-www/httpgrabber/pkg-comment'
XHTTP network traffic grabber and extractor
END-of-www/httpgrabber/pkg-comment
echo x - www/httpgrabber/pkg-descr
sed 's/^X//' >www/httpgrabber/pkg-descr << 'END-of-www/httpgrabber/pkg-descr'
XHTTPgrabber saves the information being sent via the HTTP
Xprotocol on disk. In other words, you can use it to see
Xwhat other people on your LAN are downloading.
X
XWWW: http://www.mavetju.org
X
X- Edwin Groothuis
Xedwin@mavetju.org
END-of-www/httpgrabber/pkg-descr
exit


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: will 
State-Changed-When: Sun Sep 16 13:38:38 PDT 2001 
State-Changed-Why:  
Something's missing here: 

<1 5037-0> (15:38:21) [will@puck ~/ports/www/httpgrabber]% make 
===>  Building for httpgrabber-1.0 
gcc -g -Wall -I/usr/local/include -c -o httpgrabber.o httpgrabber.c 
httpgrabber.c:34: ngrep-lib.h: No such file or directory 
*** Error code 1 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30358 
State-Changed-From-To: feedback->open 
State-Changed-By: will 
State-Changed-When: Sun Sep 16 13:39:44 PDT 2001 
State-Changed-Why:  
Never mind, I see the new port request for ngrep-lib.  Will take care of 
that, momentarily. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30358 
State-Changed-From-To: open->feedback 
State-Changed-By: will 
State-Changed-When: Sun Sep 16 13:46:59 PDT 2001 
State-Changed-Why:  
OK, here's a real issue: 

===>  Building for httpgrabber-1.0 
gcc -g -Wall -I/usr/local/include -c -o httpgrabber.o httpgrabber.c 
httpgrabber.c:136: conflicting types for `usage' 
/usr/local/include/ngrep-lib.h:42: previous declaration of `usage' 
*** Error code 1 

putting a function like usage() in a library is a BAD idea, doncha know? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30358 

From: Edwin Groothuis <edwin@mavetju.org>
To: will@FreeBSD.org
Cc: freebsd-ports@FreeBSD.org
Subject: Re: ports/30358: new port: www/httpgrabber - HTTP traffic analyzer and extractor
Date: Thu, 27 Sep 2001 09:13:25 +1000

 Dear Will,
 
 On Sun, Sep 16, 2001 at 01:47:32PM -0700, will@FreeBSD.org wrote:
 > Synopsis: new port: www/httpgrabber - HTTP traffic analyzer and extractor
 > 
 > State-Changed-From-To: open->feedback
 
 I'm sorry about the problems I've caused regarding this. httpgrabber
 was made to be used with ngrep-lib-1.1, which wasn't in the ports
 collection yet. ngrep-lib-1.0 was submitted but not in it neither.
 I shouldn't have submitted it yet. Anyway, damage is done, hope I
 can undo it a little by saying that ngrep-lib-1.1 is in the ports
 collections now and that this port has all the dependancies available.
 
 Edwin
 
 -- 
 Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
 edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
 ------------------+                       http://www.FatalDimensions.org/
State-Changed-From-To: feedback->closed 
State-Changed-By: petef 
State-Changed-When: Tue Nov 6 10:03:21 PST 2001 
State-Changed-Why:  
Committed, thanks!  I added a little more to patch-Makefile to respect 
CC/CFLAGS. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30358 
>Unformatted:
