Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 16:52:56 +0900 (JST)
From:      UMENO Takashi <umeno@rr.iij4u.or.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        sakamoto@netbsd.org
Subject:   ports/28225: [New Port] net/xipdump - displays ip packets using X window from NetBSD pkgsrc.
Message-ID:  <200106170752.f5H7qux24322@belldandy.unnumbered.net>

next in thread | raw e-mail | index | archive | help

>Number:         28225
>Category:       ports
>Synopsis:       [New Port] net/xipdump - displays ip packets using X window from NetBSD pkgsrc.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 17 01:00:10 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     UMENO Takashi
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
personal
>Environment:
System: FreeBSD belldandy.unnumbered.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Sat Jun 16 21:54:55 JST 2001 root@belldandy.unnumbered.net:/data2/umeno/free/kernel/sys/compile/BELLDANDY2 i386


	
>Description:
	This is a port of xipdump (displays ip packets using X window) from
	NetBSD pkgsrc (/usr/pkgsrc/net/xipdump).
	Maintainer of /usr/pkgsrc/net/xipdump is Mr. Sakamoto.
	(sakamoto@netbsd.org)
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	xipdump
#	xipdump/distinfo
#	xipdump/Makefile
#	xipdump/files
#	xipdump/files/patch-aa
#	xipdump/files/patch-ab
#	xipdump/files/patch-ac
#	xipdump/files/patch-ad
#	xipdump/pkg-plist
#	xipdump/pkg-descr
#	xipdump/pkg-comment
#
echo c - xipdump
mkdir -p xipdump > /dev/null 2>&1
echo x - xipdump/distinfo
sed 's/^X//' >xipdump/distinfo << 'END-of-xipdump/distinfo'
XMD5 (xipdump-1.5.4.tgz) = 0b987cdb3b1ef49209a1a85d0bc6851d
END-of-xipdump/distinfo
echo x - xipdump/Makefile
sed 's/^X//' >xipdump/Makefile << 'END-of-xipdump/Makefile'
X# New ports collection makefile for:	xipdump
X# Date created:				17 Jun 2001
X# Whom:					UMENO Takashi <umeno@rr.iij4u.or.jp>
X#
X# $FreeBSD:$
X#
X
XPORTNAME=	xipdump
XPORTVERSION=	1.5.4
XCATEGORIES=	net
XMASTER_SITES=	http://www.epita.fr/~lse/xipdump/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	umeno@rr.iij4u.or.jp
X
XBUILD_DEPENDS=	${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet
X
XLIBNET_CONFIG=	${LOCALBASE}/bin/libnet-config
X
XUSE_X_PREFIX=	yes
XGNU_CONFIGURE=	yes
XCFLAGS+=	`${LIBNET_CONFIG} --cflags` `${LIBNET_CONFIG} --defines`
XCFLAGS+=	-I${LOCALBASE}/include
XLIBS=		`${LIBNET_CONFIG} --libs`
XCONFIGURE_ENV=      LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${LIBS}"
X
XPLIST=	${WRKDIR}/PLIST
X
Xpost-build:
X	@${CP} ${PKGDIR}/pkg-plist ${PLIST}
X	@(cd ${WRKSRC}/data; find pkc pkt ! -type d | \
X		${SED} -e 's|^|share/xipdump/|' >> ${PLIST})
X	@${ECHO} "@dirrm share/xipdump/pkt" >> ${PLIST}
X	@${ECHO} "@dirrm share/xipdump/pkc" >> ${PLIST}
X	@${ECHO} "@dirrm share/xipdump" >> ${PLIST}
X
X.include <bsd.port.mk>
END-of-xipdump/Makefile
echo c - xipdump/files
mkdir -p xipdump/files > /dev/null 2>&1
echo x - xipdump/files/patch-aa
sed 's/^X//' >xipdump/files/patch-aa << 'END-of-xipdump/files/patch-aa'
X$NetBSD$
X
X--- configure.in.orig	Wed Dec 22 09:50:40 1999
X+++ configure.in
X@@ -55,6 +55,8 @@
X 	LDFLAGS="$LDFLAGS -L$PCAP_LIBPATH"
X fi
X 
X+if false
X+then
X MG_LIBNET(LIBNET_DEP,LIBNET_INCLPATH,LIBNET_LIBPATH)
X if test "x$LIBNET_INCLPATH" != "x"
X then
X@@ -64,14 +66,8 @@
X then
X 	LDFLAGS="$LDFLAGS -L$LIBNET_LIBPATH"
X fi
X-
X-dnl Extra defines for libnet
X-if test "x$ac_cv_c_bigendian" = "xyes"; then
X-       AC_DEFINE(LIBNET_BIG_ENDIAN)
X-else
X-       AC_DEFINE(LIBNET_LIL_ENDIAN)
X fi
X-       
X+
X dnl Determine if -lsocket or -lnsl are needed.
X dnl On some platforms (Irix) libnsl and libsocket should not be used.
X AC_CHECK_FUNCS(gethostbyname getservbyname)
X@@ -111,6 +107,13 @@
X FP_C_PROTOTYPES
X MG_C_ANSI_CPP
X 
X+dnl Extra defines for libnet
X+if test "x$ac_cv_c_bigendian" = "xyes"; then
X+       AC_DEFINE(LIBNET_BIG_ENDIAN)
X+else
X+       AC_DEFINE(LIBNET_LIL_ENDIAN)
X+fi
X+       
X dnl
X dnl library functions
X dnl
END-of-xipdump/files/patch-aa
echo x - xipdump/files/patch-ab
sed 's/^X//' >xipdump/files/patch-ab << 'END-of-xipdump/files/patch-ab'
X$NetBSD$
X
X--- configure.orig	Wed Dec 22 09:51:48 1999
X+++ configure
X@@ -1360,8 +1360,10 @@
X 	LDFLAGS="$LDFLAGS -L$PCAP_LIBPATH"
X fi
X 
X+if false
X+then
X echo $ac_n "checking for local libnet library""... $ac_c" 1>&6
X echo "configure:1365: checking for local libnet library" >&5
X     libnet=FAIL
X     lastdir=FAIL
X     places=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
X@@ -1389,18 +1391,7 @@
X then
X 	LDFLAGS="$LDFLAGS -L$LIBNET_LIBPATH"
X fi
X-
X-if test "x$ac_cv_c_bigendian" = "xyes"; then
X-       cat >> confdefs.h <<\EOF
X-#define LIBNET_BIG_ENDIAN 1
X-EOF
X-
X-else
X-       cat >> confdefs.h <<\EOF
X-#define LIBNET_LIL_ENDIAN 1
X-EOF
X-
X fi
X-       
X+
X for ac_func in gethostbyname getservbyname
X do
X@@ -1877,6 +1868,18 @@
X fi
X 
X 
X+if test "x$ac_cv_c_bigendian" = "xyes"; then
X+       cat >> confdefs.h <<\EOF
X+#define LIBNET_BIG_ENDIAN 1
X+EOF
X+
X+else
X+       cat >> confdefs.h <<\EOF
X+#define LIBNET_LIL_ENDIAN 1
X+EOF
X+
X+fi
X+       
X 
X for ac_func in bzero bcopy bcmp strdup qsort snprintf usleep strerror strtol strtoul dlopen scandir
X do
END-of-xipdump/files/patch-ab
echo x - xipdump/files/patch-ac
sed 's/^X//' >xipdump/files/patch-ac << 'END-of-xipdump/files/patch-ac'
X$NetBSD$
X
X--- xipshcut.c.orig	Fri Oct 29 05:23:57 1999
X+++ xipshcut.c	Mon Nov 15 10:41:54 1999
X@@ -27,7 +27,7 @@
X   {"",
X    "<b>%Timestamp%</b>: %Pat% %ether.shost% %ether.dhost% %ether.Type% %Len%"},
X-  {"arp[6:2] = 1",
X+  {"arp[7] = 1 && arp[6] = 0",
X    "<b>%Timestamp%</b>: arp who-has %arpethip.Tpa% tell %arpethip.Spa%"},
X-  {"arp[6:2] = 2",
X+  {"arp[7] = 2 && arp[6] = 0",
X    "<b>%Timestamp%</b>: %arpethip.Spa% tells %arpethip.Tpa% he has %arpethip.sha%"},
X   {"ip",
END-of-xipdump/files/patch-ac
echo x - xipdump/files/patch-ad
sed 's/^X//' >xipdump/files/patch-ad << 'END-of-xipdump/files/patch-ad'
X$NetBSD$
X
X--- XmgMacro.c.orig	Mon Nov 15 10:47:25 1999
X+++ XmgMacro.c	Tue Oct 10 16:10:50 2000
X@@ -274,7 +274,7 @@
X #if defined(__osf__) && defined(__alpha)
X 			   (ArgList)(var._a0),
X #else
X-			   (ArgList)var,
X+			   va_arg(var, ArgList),
X #endif
X 			   total_count);
X #if XtSpecificationRelease>4  
END-of-xipdump/files/patch-ad
echo x - xipdump/pkg-plist
sed 's/^X//' >xipdump/pkg-plist << 'END-of-xipdump/pkg-plist'
X@comment $NetBSD: PLIST,v 1.1.1.1 1999/11/15 02:29:51 sakamoto Exp $
X@comment $FreeBSD$
Xbin/xipdump
Xlib/X11/app-defaults/Xipdump
Xman/man8/xipdump.8
END-of-xipdump/pkg-plist
echo x - xipdump/pkg-descr
sed 's/^X//' >xipdump/pkg-descr << 'END-of-xipdump/pkg-descr'
Xxipdump - displays ip packets using X window.
X
Xxipdump is a protocol analyzer and tester. It's a kind of graphical
Xtcpdump(8) with possibility of changing packet values and resending them.
XIt could be also designed by term "human ip stack". 
END-of-xipdump/pkg-descr
echo x - xipdump/pkg-comment
sed 's/^X//' >xipdump/pkg-comment << 'END-of-xipdump/pkg-comment'
Xxipdump - displays ip packets using X window.
END-of-xipdump/pkg-comment
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106170752.f5H7qux24322>