aboutsummaryrefslogtreecommitdiffstats
path: root/net/trafshow3
diff options
context:
space:
mode:
authorjseger <jseger@FreeBSD.org>2000-01-25 00:08:09 +0800
committerjseger <jseger@FreeBSD.org>2000-01-25 00:08:09 +0800
commit14662aeaaadf0845f62bcb1292ffb9cc0241cf59 (patch)
treea7d64252ad4e9975d4323215e1b697bfb4ff6725 /net/trafshow3
parent1f2cdeb6ea375a739faf29de6f06aee91d581853 (diff)
downloadfreebsd-ports-graphics-14662aeaaadf0845f62bcb1292ffb9cc0241cf59.tar.gz
freebsd-ports-graphics-14662aeaaadf0845f62bcb1292ffb9cc0241cf59.tar.zst
freebsd-ports-graphics-14662aeaaadf0845f62bcb1292ffb9cc0241cf59.zip
Update to trafshow-3.1
Submitted by: Michael Vasilenko <acid@stu.cn.ua> PR: ports/15907, ports/16296
Diffstat (limited to 'net/trafshow3')
-rw-r--r--net/trafshow3/Makefile22
-rw-r--r--net/trafshow3/distinfo2
-rw-r--r--net/trafshow3/files/patch-ac11
-rw-r--r--net/trafshow3/files/patch-af11
-rw-r--r--net/trafshow3/pkg-plist1
5 files changed, 42 insertions, 5 deletions
diff --git a/net/trafshow3/Makefile b/net/trafshow3/Makefile
index 6ee7d807a17..2da6c6d97c8 100644
--- a/net/trafshow3/Makefile
+++ b/net/trafshow3/Makefile
@@ -1,18 +1,32 @@
# New ports collection makefile for: trafshow
-# Version required: 2.0
+# Version required: 3.1
# Date created: 25 September 1996
# Whom: igor@zynaps.ru
#
# $FreeBSD$
#
-DISTNAME= trafshow-2.0
+DISTNAME= trafshow-3.1
CATEGORIES= net
-MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/tcpip/netmaint/
+MASTER_SITES= ftp://ftp.nsk.su/pub/RinetSoftware/
EXTRACT_SUFX= .tgz
MAINTAINER= jseger@FreeBSD.org
+.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 400010
+LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
+.endif
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= LDFLAGS=-L/usr/local/lib
+ALL_TARGET= trafshow
+
MAN1= trafshow.1
-.include <bsd.port.mk>
+do-install:
+ @ ${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/distinfo b/net/trafshow3/distinfo
index cd589125857..f404b24464c 100644
--- a/net/trafshow3/distinfo
+++ b/net/trafshow3/distinfo
@@ -1 +1 @@
-MD5 (trafshow-2.0.tgz) = d977e8605ed8bae90c06bd31f38eff3e
+MD5 (trafshow-3.1.tgz) = 085b99f160002a269b358aab1c5004f0
diff --git a/net/trafshow3/files/patch-ac b/net/trafshow3/files/patch-ac
new file mode 100644
index 00000000000..63308d0f003
--- /dev/null
+++ b/net/trafshow3/files/patch-ac
@@ -0,0 +1,11 @@
+--- color.c.orig Mon Jan 24 10:59:01 2000
++++ color.c Mon Jan 24 10:57:36 2000
+@@ -336,7 +336,7 @@
+ error(1, "init_color_mask: getpwuid");
+ (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) 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
new file mode 100644
index 00000000000..b0c731e14f0
--- /dev/null
+++ b/net/trafshow3/files/patch-af
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Mon Aug 24 00:54:16 1998
++++ Makefile.in Mon Jan 24 11:00:31 2000
+@@ -29,7 +29,7 @@
+ PROG = trafshow
+ CC = @CC@
+ CCOPT = @V_CCOPT@
+-INCLS = -I. @V_INCLS@
++INCLS = -I. -I/usr/local/include @V_INCLS@
+ DEFS = @DEFS@
+
+ CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
diff --git a/net/trafshow3/pkg-plist b/net/trafshow3/pkg-plist
index 4076937c7c6..19aa4ae4556 100644
--- a/net/trafshow3/pkg-plist
+++ b/net/trafshow3/pkg-plist
@@ -1 +1,2 @@
bin/trafshow
+etc/trafshow