Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2000 17:16:15 -0700 (PDT)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/19345: Update port: net/trafshow
Message-ID:  <20000617001615.DFE5F37B6E9@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         19345
>Category:       ports
>Synopsis:       Update port: net/trafshow
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 16 17:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.0-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS/PREFIX/LOCALBASE properly
- Add WWW: line into pkg/DESCR

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/net/trafshow/Makefile net/trafshow/Makefile
--- /usr/ports/net/trafshow/Makefile	Mon Apr 10 20:58:55 2000
+++ net/trafshow/Makefile	Tue May  2 01:00:50 2000
@@ -19,14 +19,18 @@
 .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 -urN /usr/ports/net/trafshow/patches/patch-ac net/trafshow/patches/patch-ac
--- /usr/ports/net/trafshow/patches/patch-ac	Tue Jan 25 01:08:06 2000
+++ net/trafshow/patches/patch-ac	Tue May  2 00:45:26 2000
@@ -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 -urN /usr/ports/net/trafshow/patches/patch-af net/trafshow/patches/patch-af
--- /usr/ports/net/trafshow/patches/patch-af	Mon Feb  7 16:01:11 2000
+++ net/trafshow/patches/patch-af	Tue May  2 00:51:55 2000
@@ -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 -urN /usr/ports/net/trafshow/pkg/DESCR net/trafshow/pkg/DESCR
--- /usr/ports/net/trafshow/pkg/DESCR	Sun Oct 20 02:30:14 1996
+++ net/trafshow/pkg/DESCR	Fri Jun 16 23:11:22 2000
@@ -11,5 +11,7 @@
 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


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000617001615.DFE5F37B6E9>