freebsd-ports/www/httpgrabber/files/patch-Makefile
Pete Fritchman 18469d84a7 Add httpgrabber-1.0, a HTTP network traffic grabber and extractor
PR:		30358
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
2001-11-06 18:03:15 +00:00

34 lines
932 B
Text

$FreeBSD$
--- Makefile.orig Wed Sep 5 05:35:02 2001
+++ Makefile Tue Nov 6 12:55:33 2001
@@ -2,9 +2,9 @@
# $Id: Makefile,v 1.3 2001/09/05 09:31:57 mavetju Exp $
#
-CC=gcc
-CFLAGS=-g -Wall -I/usr/local/include -c
-LFLAGS=-g -Wall -L/usr/local/lib
+CC?=gcc
+CFLAGS+=-g -Wall -I${PREFIX}/include -c
+LFLAGS=-g -Wall -L${PREFIX}/lib
LIBS=-lngrep -lpcap
all: httpgrabber
@@ -16,12 +16,12 @@
$(CC) $(CFLAGS) -o httpgrabber.o httpgrabber.c
install: httpgrabber httpgrabber.8
- install -c -m 755 -o root httpgrabber /usr/local/bin
- install -c -m 755 -o root httpgrabber.8 /usr/local/man/man8
+ install -c -m 755 -o root httpgrabber ${PREFIX}/bin
+ install -c -m 755 -o root httpgrabber.8 ${PREFIX}/man/man8
uninstall:
- rm /usr/local/bin/httpgrabber
- rm /usr/local/man/man8/httpgrabber.8
+ rm ${PREFIX}/bin/httpgrabber
+ rm ${PREFIX}/man/man8/httpgrabber.8
clean:
rm -rf httpgrabber httpgrabber.o httpgrabber.core