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
+14
View File
@@ -0,0 +1,14 @@
A set of tools to create web pages for tcpdump output files
<<Alpha test version for MAWI-WG internal use>>
March 8, 1999
WIDE Project MAWI WorkingGroup
Kenjiro Cho <kjc@csl.sony.co.jp>
wide-tcpdpriv:
a program for eliminating confidential information
from tcpdump trace files to address privacy and security
concerns.
Written by Greg Minshall of Ipsilon Networks, Inc.
we have modified the original tcpdpriv defaults to meet
the WIDE Project requirement.
+26
View File
@@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.20 2013/02/06 19:31:00 jperkin Exp $
DISTNAME= tcpd-tools-0.8
PKGNAME= tcpdpriv-0.8
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= # ftp://tracer.csl.sony.co.jp/pub/mawi/tools/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Anonymize tcpdump traces
CFLAGS.SunOS+= -DSVR4 -DIPPROTO_IPV4=IPPROTO_ENCAP -DIP_OFFMASK=0x1fff
CFLAGS.SunOS+= -DARPOP_REVREQUEST=REVARP_REQUEST -DARPOP_REVREPLY=REVARP_REPLY
CFLAGS.SunOS+= -Du_int64_t=uint64_t -Du_int32_t=uint32_t
CFLAGS.SunOS+= -Du_int16_t=uint16_t -Du_int8_t=uint8_t
WRKSRC= ${WRKDIR}/${DISTNAME}/wide-tcpdpriv
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tcpdpriv ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/tcpdpriv.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+3
View File
@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:59:21 zuntum Exp $
bin/tcpdpriv
man/man1/tcpdpriv.1
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.8 2012/03/07 18:56:52 hans Exp $
SHA1 (tcpd-tools-0.8.tar.gz) = fe2abe15bbf9062833af9bec3745c751a8aa06df
RMD160 (tcpd-tools-0.8.tar.gz) = 876842cbb37ca65d4b955718abd5ef5c14810dee
Size (tcpd-tools-0.8.tar.gz) = 468856 bytes
SHA1 (patch-Makefile) = 96ac3e3a0167807606a0f764467da84dcc55d90d
SHA1 (patch-aa) = 0470590f1baf8748a62d7542b70630478aa806c7
SHA1 (patch-ab) = 2c939882835b80d1fb11aa3bedc50eb80cefdf2e
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-Makefile,v 1.1 2012/03/07 18:56:52 hans Exp $
--- Makefile.orig 2000-03-02 07:54:28.000000000 +0100
+++ Makefile 2012-03-07 19:45:53.802691270 +0100
@@ -29,7 +29,7 @@ CC = gcc
#have-SVR4#LIBSVR4 = -lsocket -lnsl
-CFLAGS = -g ${INCLUDES} ${WARNINGS} ${SVR4} ${OSF1} -DWIDE
+CFLAGS += -g ${INCLUDES} ${WARNINGS} ${SVR4} ${OSF1} -DWIDE
SOURCES = tcpdpriv.c tcpdutil.c tcpdpriv.1 tcpdpriv.vtml \
attack50.tex Makefile.in configure INSTALL
+76
View File
@@ -0,0 +1,76 @@
$NetBSD: patch-aa,v 1.6 2012/03/07 18:56:52 hans Exp $
--- tcpdpriv.c.orig 2000-04-18 07:59:19.000000000 +0000
+++ tcpdpriv.c
@@ -65,7 +65,7 @@
#endif /* defined(SVR4) */
#include <sys/param.h>
#include <sys/time.h>
-#if !defined(SVR4)
+#if 0
#include <sys/ucred.h>
#endif /* !defined(SVR4) */
#include <sys/mount.h>
@@ -78,7 +78,7 @@
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#if !defined(SVR4)
+#if 0
#include <sys/mbuf.h>
#endif /* !defined(SVR4) */
#include <netinet/in_systm.h>
@@ -90,7 +90,7 @@
#include <arpa/nameser.h>
#endif
-#if !defined(sun)
+#if 0
#include <net/slcompress.h>
#if !defined(osf1)
#include <net/slip.h>
@@ -111,6 +111,14 @@
#include <pcap.h>
+#if defined(__sun)
+#include <sys/sysmacros.h>
+#endif
+
+#if defined(__NetBSD__) && (__NetBSD_Version__ >= 299000900) /* NetBSD 2.99.9 */
+#define statfs statvfs
+#endif
+
/*
* deal with systems in which bpf_int32 and bpf_u_int32 are not defined
*/
@@ -2491,10 +2499,10 @@ dlt_hdrlen(int dlt)
}
}
+static void usage(char *cmd);
static void
verify_and_print_args(char *cmd)
{
- static void usage(char *cmd);
lookup_init(&addr_propagate);
@@ -2759,7 +2767,7 @@ usage(char *cmd)
int
main(int argc, char *argv[], char *envp[])
{
- void bpf_dump(FILE *output, struct bpf_program *, int);
+ void my_bpf_dump(FILE *output, struct bpf_program *, int);
char *copy_argv(register char **argv);
char *read_infile(char *fname);
char *rfile, *wfile;
@@ -2903,7 +2911,7 @@ main(int argc, char *argv[], char *envp[
/* dump? */
if (dflag) {
- bpf_dump(stderr, &fcode, dflag);
+ my_bpf_dump(stderr, &fcode, dflag);
exit(0);
}
+21
View File
@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.2 2006/03/01 22:49:07 wiz Exp $
--- tcpdutil.c.orig 2000-04-18 08:08:34.000000000 +0000
+++ tcpdutil.c
@@ -30,6 +30,7 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <fcntl.h>
#include <pcap.h>
@@ -141,7 +142,7 @@ read_infile(char *fname)
void
-bpf_dump(FILE *output, struct bpf_program *p, int option)
+my_bpf_dump(FILE *output, struct bpf_program *p, int option)
{
struct bpf_insn *insn;
int i;