diff options
author | Alexander Langer <alex@FreeBSD.org> | 2000-06-28 12:53:16 +0000 |
---|---|---|
committer | Alexander Langer <alex@FreeBSD.org> | 2000-06-28 12:53:16 +0000 |
commit | 5b582eae63d144ec532c5fbb435378924573162d (patch) | |
tree | 78929dcfd6674ef470614606827329466535ad86 /net/trafshow4 | |
parent | fe7ece28b51aa1eb42c34cf2bd9b34415804bbc7 (diff) | |
download | ports-5b582eae63d144ec532c5fbb435378924573162d.tar.gz ports-5b582eae63d144ec532c5fbb435378924573162d.zip |
Notes
Diffstat (limited to 'net/trafshow4')
-rw-r--r-- | net/trafshow4/Makefile | 12 | ||||
-rw-r--r-- | net/trafshow4/files/patch-ac | 2 | ||||
-rw-r--r-- | net/trafshow4/files/patch-af | 19 | ||||
-rw-r--r-- | net/trafshow4/pkg-descr | 2 |
4 files changed, 19 insertions, 16 deletions
diff --git a/net/trafshow4/Makefile b/net/trafshow4/Makefile index 6a7c59b2d218..e6fc8b78ad04 100644 --- a/net/trafshow4/Makefile +++ b/net/trafshow4/Makefile @@ -19,14 +19,18 @@ LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses .endif GNU_CONFIGURE= yes -CONFIGURE_ENV= LDFLAGS=-L/usr/local/lib +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" ALL_TARGET= trafshow MAN1= trafshow.1 +post-patch: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.c + do-install: - @ ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin - @ ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1 - @ ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow + ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow .include <bsd.port.post.mk> diff --git a/net/trafshow4/files/patch-ac b/net/trafshow4/files/patch-ac index 63308d0f003f..c15ab541f4d8 100644 --- a/net/trafshow4/files/patch-ac +++ b/net/trafshow4/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/trafshow4/files/patch-af b/net/trafshow4/files/patch-af index 01fbad9e17b8..dba73df91ae9 100644 --- a/net/trafshow4/files/patch-af +++ b/net/trafshow4/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) diff --git a/net/trafshow4/pkg-descr b/net/trafshow4/pkg-descr index 7491ccc5678a..cd1260b6aaa3 100644 --- a/net/trafshow4/pkg-descr +++ b/net/trafshow4/pkg-descr @@ -11,5 +11,7 @@ pseudo-device bpfilter 4 # Berkeley packet filter The number after bpfilter is the number of interfaces that can be examined simultaneously. See section 5.8.3 of Handbook for details. +WWW: http://www.rinetsoft.nsk.su/trafshow/index_en.html + - Igor igor@zynaps.ru |