diff options
-rw-r--r-- | net/trafshow/Makefile | 12 | ||||
-rw-r--r-- | net/trafshow/files/patch-ac | 2 | ||||
-rw-r--r-- | net/trafshow/files/patch-af | 19 | ||||
-rw-r--r-- | net/trafshow/pkg-descr | 2 | ||||
-rw-r--r-- | net/trafshow3/Makefile | 12 | ||||
-rw-r--r-- | net/trafshow3/files/patch-ac | 2 | ||||
-rw-r--r-- | net/trafshow3/files/patch-af | 19 | ||||
-rw-r--r-- | net/trafshow3/pkg-descr | 2 | ||||
-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 |
12 files changed, 57 insertions, 48 deletions
diff --git a/net/trafshow/Makefile b/net/trafshow/Makefile index 6a7c59b..e6fc8b7 100644 --- a/net/trafshow/Makefile +++ b/net/trafshow/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/trafshow/files/patch-ac b/net/trafshow/files/patch-ac index 63308d0..c15ab54 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 01fbad9e..dba73df 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) diff --git a/net/trafshow/pkg-descr b/net/trafshow/pkg-descr index 7491ccc..cd1260b 100644 --- a/net/trafshow/pkg-descr +++ b/net/trafshow/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 diff --git a/net/trafshow3/Makefile b/net/trafshow3/Makefile index 6a7c59b..e6fc8b7 100644 --- a/net/trafshow3/Makefile +++ b/net/trafshow3/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/trafshow3/files/patch-ac b/net/trafshow3/files/patch-ac index 63308d0..c15ab54 100644 --- a/net/trafshow3/files/patch-ac +++ b/net/trafshow3/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/trafshow3/files/patch-af b/net/trafshow3/files/patch-af index 01fbad9e..dba73df 100644 --- a/net/trafshow3/files/patch-af +++ b/net/trafshow3/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/trafshow3/pkg-descr b/net/trafshow3/pkg-descr index 7491ccc..cd1260b 100644 --- a/net/trafshow3/pkg-descr +++ b/net/trafshow3/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 diff --git a/net/trafshow4/Makefile b/net/trafshow4/Makefile index 6a7c59b..e6fc8b7 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 63308d0..c15ab54 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 01fbad9e..dba73df 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 7491ccc..cd1260b 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 |