summaryrefslogtreecommitdiff
path: root/www/httpgrabber/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/httpgrabber/files/patch-Makefile')
-rw-r--r--www/httpgrabber/files/patch-Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/www/httpgrabber/files/patch-Makefile b/www/httpgrabber/files/patch-Makefile
new file mode 100644
index 000000000000..0c7e403354b6
--- /dev/null
+++ b/www/httpgrabber/files/patch-Makefile
@@ -0,0 +1,34 @@
+$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