summaryrefslogtreecommitdiff
path: root/net/trafshow
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2000-08-11 05:42:15 +0000
committeritojun <itojun@pkgsrc.org>2000-08-11 05:42:15 +0000
commitf602807cc53cb3d30a54ba5ef99433724c58e9ce (patch)
tree1b5a5f0458b62b628b494772b33b706bc7df86d7 /net/trafshow
parent368af1e9173f25f45822068759ca69d7398327b5 (diff)
downloadpkgsrc-f602807cc53cb3d30a54ba5ef99433724c58e9ce.tar.gz
adapt to netbsd build. use /etc/trafshow, not ${PREFIX}/etc/trafshow for
systemwide config file.
Diffstat (limited to 'net/trafshow')
-rw-r--r--net/trafshow/Makefile29
-rw-r--r--net/trafshow/files/md52
-rw-r--r--net/trafshow/files/patch-sum4
-rw-r--r--net/trafshow/patches/patch-ac11
-rw-r--r--net/trafshow/patches/patch-af2
-rw-r--r--net/trafshow/pkg/PLIST4
6 files changed, 21 insertions, 31 deletions
diff --git a/net/trafshow/Makefile b/net/trafshow/Makefile
index 1b2b8dd3a49..db1acb9991d 100644
--- a/net/trafshow/Makefile
+++ b/net/trafshow/Makefile
@@ -1,36 +1,27 @@
-# New ports collection makefile for: trafshow
-# Date created: 25 September 1996
-# Whom: igor@zynaps.ru
-#
+# $NetBSD: Makefile,v 1.2 2000/08/11 05:42:15 itojun Exp $
# $FreeBSD: ports/net/trafshow/Makefile,v 1.14 2000/06/28 12:53:15 alex Exp $
#
-PORTNAME= trafshow
-PORTVERSION= 3.1
+DISTNAME= trafshow-3.1
CATEGORIES= net
MASTER_SITES= ftp://ftp.nsk.su/pub/RinetSoftware/
EXTRACT_SUFX= .tgz
-MAINTAINER= jseger@FreeBSD.org
+MAINTAINER= packages@netbsd.org
-.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 400010
-LIB_DEPENDS= ncurses.4:${PORTSDIR}/devel/ncurses
-.endif
+BUILD_DEPENDS+= autoreconf:../../devel/autoconf
GNU_CONFIGURE= yes
-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
+pre-configure:
+ cd ${WRKSRC} && autoreconf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/man/man1
- ${INSTALL_DATA} ${WRKSRC}/.trafshow ${PREFIX}/etc/trafshow
+ ${MKDIR} ${PREFIX}/share/examples/trafshow
+ ${INSTALL_DATA} ${WRKSRC}/.trafshow \
+ ${PREFIX}/share/examples/trafshow/trafshow
-.include <bsd.port.post.mk>
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/trafshow/files/md5 b/net/trafshow/files/md5
index f404b24464c..dab8f445d70 100644
--- a/net/trafshow/files/md5
+++ b/net/trafshow/files/md5
@@ -1 +1,3 @@
+$NetBSD: md5,v 1.2 2000/08/11 05:42:17 itojun Exp $
+
MD5 (trafshow-3.1.tgz) = 085b99f160002a269b358aab1c5004f0
diff --git a/net/trafshow/files/patch-sum b/net/trafshow/files/patch-sum
new file mode 100644
index 00000000000..fc62e819455
--- /dev/null
+++ b/net/trafshow/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1 2000/08/11 05:42:17 itojun Exp $
+
+MD5 (patch-af) = 87eb1ae01c745f4aa2e85cbcb506226b
+MD5 (patch-ag) = c62acae00e4d96231b3fbcddd5a15b42
diff --git a/net/trafshow/patches/patch-ac b/net/trafshow/patches/patch-ac
deleted file mode 100644
index c15ab541f4d..00000000000
--- a/net/trafshow/patches/patch-ac
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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, "%%PREFIX%%/etc/");
- (void) strcat(buf, program_name);
- if ((fp = fopen(buf, "r")) == NULL) return 0;
- }
diff --git a/net/trafshow/patches/patch-af b/net/trafshow/patches/patch-af
index dba73df91ae..c1fc30e375f 100644
--- a/net/trafshow/patches/patch-af
+++ b/net/trafshow/patches/patch-af
@@ -1,3 +1,5 @@
+$NetBSD: patch-af,v 1.2 2000/08/11 05:42:18 itojun Exp $
+
--- Makefile.in.orig Mon Aug 24 13:54:16 1998
+++ Makefile.in Tue May 2 00:51:47 2000
@@ -28,8 +28,8 @@
diff --git a/net/trafshow/pkg/PLIST b/net/trafshow/pkg/PLIST
index 19aa4ae4556..dffefc2d944 100644
--- a/net/trafshow/pkg/PLIST
+++ b/net/trafshow/pkg/PLIST
@@ -1,2 +1,4 @@
bin/trafshow
-etc/trafshow
+man/man1/trafshow.1
+share/examples/trafshow/trafshow
+@dirrm share/examples/trafshow