summaryrefslogtreecommitdiff
path: root/net/trafshow/files
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2000-06-28 12:53:16 +0000
committerAlexander Langer <alex@FreeBSD.org>2000-06-28 12:53:16 +0000
commit5b582eae63d144ec532c5fbb435378924573162d (patch)
tree78929dcfd6674ef470614606827329466535ad86 /net/trafshow/files
parentUpdate maintainer email. (diff)
- Support CFLAGS/PREFIX/LOCALBASE properly
- Add WWW: line into pkg/DESCR PR: 19345 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes: svn path=/head/; revision=29934
Diffstat (limited to 'net/trafshow/files')
-rw-r--r--net/trafshow/files/patch-ac2
-rw-r--r--net/trafshow/files/patch-af19
2 files changed, 9 insertions, 12 deletions
diff --git a/net/trafshow/files/patch-ac b/net/trafshow/files/patch-ac
index 63308d0f003f..c15ab541f4d8 100644
--- a/net/trafshow/files/patch-ac
+++ b/net/trafshow/files/patch-ac
@@ -5,7 +5,7 @@
(void) sprintf(buf, "%s/.%s", pw->pw_dir, program_name);
if ((fp = fopen(buf, "r")) == NULL) {
- (void) strcpy(buf, "/etc/");
-+ (void) strcpy(buf, "/usr/local/etc/");
++ (void) strcpy(buf, "%%PREFIX%%/etc/");
(void) strcat(buf, program_name);
if ((fp = fopen(buf, "r")) == NULL) return 0;
}
diff --git a/net/trafshow/files/patch-af b/net/trafshow/files/patch-af
index 01fbad9e17b8..dba73df91ae9 100644
--- a/net/trafshow/files/patch-af
+++ b/net/trafshow/files/patch-af
@@ -1,16 +1,13 @@
---- Makefile.in.orig Sun Aug 23 21:54:16 1998
-+++ Makefile.in Sun Feb 6 22:12:03 2000
-@@ -29,10 +29,11 @@
+--- Makefile.in.orig Mon Aug 24 13:54:16 1998
++++ Makefile.in Tue May 2 00:51:47 2000
+@@ -28,8 +28,8 @@
+
PROG = trafshow
CC = @CC@
- CCOPT = @V_CCOPT@
+-CCOPT = @V_CCOPT@
-INCLS = -I. @V_INCLS@
-+INCLS = -I. -I/usr/local/include @V_INCLS@
++CCOPT = @CFLAGS@
++INCLS = -I. @CPPFLAGS@
DEFS = @DEFS@
--CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
-+CFLAGS ?= -O2
-+CFLAGS += $(DEFS) $(INCLS)
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
-
+ CFLAGS = $(CCOPT) $(DEFS) $(INCLS)