Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

2
graphics/xplot/DESCR Normal file
View File

@@ -0,0 +1,2 @@
Tim Shepard's plotting program. This is most often used to generate
TCP time-sequence plots.

29
graphics/xplot/Makefile Normal file
View File

@@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.31 2013/05/31 12:41:10 wiz Exp $
DISTNAME= xplot-0.90.7.1
PKGREVISION= 8
CATEGORIES= graphics x11
MASTER_SITES= http://www.xplot.org/xplot/
HOMEPAGE= http://www.xplot.org/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Plotting program, most often used in conjunction with tcptrace
USE_X11BASE= yes
GNU_CONFIGURE= yes
REPLACE_PERL+= tcpdump2xplot.pl
USE_TOOLS+= perl:run
DOCFILES= ANNOUNCE README README.tcp_plots
# demo.? removed from interim .7.1 version
# demo.0 demo.1 demo.2 demo.3 demo.4 demo.5 demo.6 demo.7
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/xplot
.for file in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${PREFIX}/share/doc/xplot
.endfor
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

8
graphics/xplot/PLIST Normal file
View File

@@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:59:32 joerg Exp $
bin/tcpdump2xplot
bin/xplot
man/man1/tcpdump2xplot.1
man/man1/xplot.1
share/doc/xplot/ANNOUNCE
share/doc/xplot/README
share/doc/xplot/README.tcp_plots

9
graphics/xplot/distinfo Normal file
View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.9 2009/12/11 16:57:12 asau Exp $
SHA1 (xplot-0.90.7.1.tar.gz) = 164074206addaeb971d2fa65069c7c7be654efc5
RMD160 (xplot-0.90.7.1.tar.gz) = 166915e138ea52e58a67e80cb20d42005fa54621
Size (xplot-0.90.7.1.tar.gz) = 60166 bytes
SHA1 (patch-aa) = 487b2f4b55c4851ec7b0ae8770c5f741187a061d
SHA1 (patch-ab) = 97c7b292a1c1f8d9294c69d4cc2eacbbff411d2e
SHA1 (patch-ac) = 671b63a8db7c41df4e9f14147988d81ff921aca7
SHA1 (patch-ad) = fd19823030badf91734fde92b45fcaecc06cf0f8

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-aa,v 1.8 2009/12/11 16:57:12 asau Exp $
--- Makefile.in.orig 2000-05-05 01:04:20.000000000 +0400
+++ Makefile.in 2009-12-11 19:54:53.000000000 +0300
@@ -62,7 +62,7 @@
all: ${PROG}
${PROG}: ${OFILES}
- ${CC} ${CFLAGS} -o $@.new ${OFILES} ${LIBS}
+ ${CC} ${CFLAGS} -o $@.new ${OFILES} ${LIBS} ${LDFLAGS}
-mv -f $@ $@.old
mv -f $@.new $@
@@ -70,11 +70,11 @@
echo 'char *version_string = "'`cat version`'";' >version_string.c
install: all
- mkdir -p $(bindir)
- $(INSTALL_PROGRAM) xplot $(bindir)/xplot
- $(INSTALL) tcpdump2xplot.pl $(bindir)/tcpdump2xplot
- mkdir -p $(mandir)
- $(INSTALL_MAN) $(MANFILES) $(mandir)
+ mkdir -p $(DESTDIR)$(bindir)
+ $(INSTALL_PROGRAM) xplot $(DESTDIR)$(bindir)/xplot
+ $(INSTALL) tcpdump2xplot.pl $(DESTDIR)$(bindir)/tcpdump2xplot
+ mkdir -p $(DESTDIR)$(mandir)
+ $(INSTALL_MAN) $(MANFILES) $(DESTDIR)$(mandir)
clean:
rm -f ${PROG} ${PROG}.old *.o version_string.c

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ab,v 1.7 2006/10/14 09:13:14 bad Exp $
--- tcpdump2xplot.pl.orig 2000-05-03 20:08:19.000000000 +0200
+++ tcpdump2xplot.pl
@@ -226,9 +226,16 @@ for ($lineNo = 1; <$Tcpdump>; $lineNo++)
local(%opts);
chop;
+ # strip unwanted output added by modern tcdump versions in verbose mode
+ #
+ s/\(tos.*?\)//; # (tos 0x0, ttl ... length: \d+)
+ s/ \[(?:bad )?tcp (?:ck)?sum.*?\]//; # [tcp sum ok]/[bad tcp cksum ....]
$opts = $_; # save this for later
- split(/ /);
+ split(/ +/);
+ # Sometime after version 3.7.1 tcpdump started to print 'IP'
+ # as the second field in the output. Get rid of it again.
+ splice @_, 1, 1 if $_[1] eq 'IP';
$time = $_[0];
$from = $_[1];
$to = $_[3];
@@ -412,7 +419,7 @@ for ($lineNo = 1; <$Tcpdump>; $lineNo++)
# print stderr "SACKS after : $sacks \n";
- @sacks = split(/ /, $sacks);
+ @sacks = split(/ +/, $sacks);
for ($i = 0; $i <= $#sacks; $i++) {
local($start);

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ac,v 1.3 1999/01/29 20:19:22 tron Exp $
*** unsigned.c.orig Fri Dec 12 20:16:26 1997
--- unsigned.c Fri Dec 12 20:16:52 1997
***************
*** 45,50 ****
--- 45,54 ----
#define LIBC_ATOI_IS_BROKEN
#endif
+ #ifdef __NetBSD__
+ #define LIBC_ATOI_IS_BROKEN
+ #endif
+
#ifdef LIBC_ATOI_IS_BROKEN
#include <ctype.h>
#endif

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-ad,v 1.3 1999/01/29 20:19:22 tron Exp $
--- timeval.c.DIST Fri Jun 28 12:41:21 1996
+++ timeval.c Mon Mar 30 19:58:50 1998
@@ -102,6 +102,13 @@
r.t.tv_sec = atoi(s);
while (isdigit(*s)) s++;
+ while (*s == ':') {
+ s++;
+ r.t.tv_sec *= 60;
+ r.t.tv_sec += atoi(s);
+ while (isdigit(*s)) s++;
+ }
+
if (*s == '.') {
s++;
r.t.tv_usec = atoi(s);