1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

add xipdump

Displays ip packets using X window

PR:		28225
Submitted by:	UMENO Takashi <umeno@rr.iij4u.or.jp>
This commit is contained in:
Ying-Chieh Liao 2001-12-08 19:45:01 +00:00
parent 8607a509cc
commit 7d7a63cbcd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51230
9 changed files with 124 additions and 0 deletions

View File

@ -475,6 +475,7 @@
SUBDIR += xbone
SUBDIR += xferstats
SUBDIR += xicq
SUBDIR += xipdump
SUBDIR += xipmsg
SUBDIR += xisp
SUBDIR += xmlrpc-c

38
net/xipdump/Makefile Normal file
View File

@ -0,0 +1,38 @@
# New ports collection makefile for: xipdump
# Date created: 17 Jun 2001
# Whom: UMENO Takashi <umeno@rr.iij4u.or.jp>
#
# $FreeBSD$
#
PORTNAME= xipdump
PORTVERSION= 1.5.4
CATEGORIES= net
MASTER_SITES= http://www.epita.fr/~lse/xipdump/
EXTRACT_SUFX= .tgz
MAINTAINER= umeno@rr.iij4u.or.jp
BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet
USE_X_PREFIX= yes
LIBNET_CONFIG= ${LOCALBASE}/bin/libnet-config
CFLAGS+= `${LIBNET_CONFIG} --cflags` `${LIBNET_CONFIG} --defines`
CFLAGS+= -I${LOCALBASE}/include
LIBS= `${LIBNET_CONFIG} --libs`
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${LIBS}"
PLIST= ${WRKDIR}/PLIST
MAN8= xipdump.8
post-build:
@${CP} ${PKGDIR}/pkg-plist ${PLIST}
@(cd ${WRKSRC}/data; find pkc pkt ! -type d | \
${SED} -e 's|^|share/xipdump/|' >> ${PLIST})
@${ECHO} "@dirrm share/xipdump/pkt" >> ${PLIST}
@${ECHO} "@dirrm share/xipdump/pkc" >> ${PLIST}
@${ECHO} "@dirrm share/xipdump" >> ${PLIST}
.include <bsd.port.mk>

1
net/xipdump/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (xipdump-1.5.4.tgz) = 0b987cdb3b1ef49209a1a85d0bc6851d

View File

@ -0,0 +1,11 @@
--- XmgMacro.c.orig Mon Nov 15 10:47:25 1999
+++ XmgMacro.c Tue Oct 10 16:10:50 2000
@@ -274,7 +274,7 @@
#if defined(__osf__) && defined(__alpha)
(ArgList)(var._a0),
#else
- (ArgList)var,
+ va_arg(var, ArgList),
#endif
total_count);
#if XtSpecificationRelease>4

View File

@ -0,0 +1,52 @@
--- configure.orig Wed Dec 22 09:51:48 1999
+++ configure
@@ -1360,8 +1360,10 @@
LDFLAGS="$LDFLAGS -L$PCAP_LIBPATH"
fi
+if false
+then
echo $ac_n "checking for local libnet library""... $ac_c" 1>&6
echo "configure:1365: checking for local libnet library" >&5
libnet=FAIL
lastdir=FAIL
places=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
@@ -1389,18 +1391,7 @@
then
LDFLAGS="$LDFLAGS -L$LIBNET_LIBPATH"
fi
-
-if test "x$ac_cv_c_bigendian" = "xyes"; then
- cat >> confdefs.h <<\EOF
-#define LIBNET_BIG_ENDIAN 1
-EOF
-
-else
- cat >> confdefs.h <<\EOF
-#define LIBNET_LIL_ENDIAN 1
-EOF
-
fi
-
+
for ac_func in gethostbyname getservbyname
do
@@ -1877,6 +1868,18 @@
fi
+if test "x$ac_cv_c_bigendian" = "xyes"; then
+ cat >> confdefs.h <<\EOF
+#define LIBNET_BIG_ENDIAN 1
+EOF
+
+else
+ cat >> confdefs.h <<\EOF
+#define LIBNET_LIL_ENDIAN 1
+EOF
+
+fi
+
for ac_func in bzero bcopy bcmp strdup qsort snprintf usleep strerror strtol strtoul dlopen scandir
do

View File

@ -0,0 +1,12 @@
--- xipshcut.c.orig Fri Oct 29 05:23:57 1999
+++ xipshcut.c Mon Nov 15 10:41:54 1999
@@ -27,7 +27,7 @@
{"",
"<b>%Timestamp%</b>: %Pat% %ether.shost% %ether.dhost% %ether.Type% %Len%"},
- {"arp[6:2] = 1",
+ {"arp[7] = 1 && arp[6] = 0",
"<b>%Timestamp%</b>: arp who-has %arpethip.Tpa% tell %arpethip.Spa%"},
- {"arp[6:2] = 2",
+ {"arp[7] = 2 && arp[6] = 0",
"<b>%Timestamp%</b>: %arpethip.Spa% tells %arpethip.Tpa% he has %arpethip.sha%"},
{"ip",

1
net/xipdump/pkg-comment Normal file
View File

@ -0,0 +1 @@
Displays ip packets using X window

5
net/xipdump/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
xipdump - displays ip packets using X window.
xipdump is a protocol analyzer and tester. It's a kind of graphical
tcpdump(8) with possibility of changing packet values and resending them.
It could be also designed by term "human ip stack".

3
net/xipdump/pkg-plist Normal file
View File

@ -0,0 +1,3 @@
@comment $FreeBSD$
bin/xipdump
lib/X11/app-defaults/Xipdump