Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2006 10:40:41 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        gnn@freebsd.org
Cc:        freebsd-net@freebsd.org
Subject:   Re: Packet Construction and Protocol Testing...
Message-ID:  <44BF95E9.2030102@mac.com>
In-Reply-To: <m2bqrkr5a5.wl%gnn@neville-neil.com>
References:  <m2bqrkr5a5.wl%gnn@neville-neil.com>

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

gnn@freebsd.org wrote:
[ ... ]
> The Source Forge page is here:
> 
> http://sourceforge.net/projects/pcs
> 
> and the shar files submitted to get the ports created are now on:
> 
> http://www.freebsd.org/~gnn/pcs.port.shar
> http://www.freebsd.org/~gnn/py-pypcap.shar

This strikes me as a pretty cool thing, thank you for putting the source out 
there...given a bit of free time, I'd like to at least test this, if not 
contribute. [1] :-)

The port is missing a dependency on net/py-pcap, BTW, which makes most of the 
tests fail if one simply downloads the shar file and tries to run them:

# cd /tmp/pcs/work/pcs-0.1/tests && python icmpv4test.py
======================================================================
ERROR: Test the underlying __compare__ functionality of the
----------------------------------------------------------------------
Traceback (most recent call last):
   File "icmpv4test.py", line 81, in test_icmpv4_compare
     file = PcapConnector("loopping.out")
   File "../pcs/__init__.py", line 446, in __init__
     from pcap import pcap
ImportError: No module named pcap
[ ... ]

	--------------

Here's a simple patch for the port Makefile, although maybe someone might want 
to create a ${PYPCAP} in bsd.python.mk (similar to ${PYXML} and so forth) instead:

--- pcs/Makefile.old        Thu Jul 20 10:21:45 2006
+++ pcs/Makefile    Thu Jul 20 10:33:40 2006
@@ -15,6 +15,8 @@
  MAINTAINER=    gnn@FreeBSD.org
  COMMENT=       Protocol Construction Set

+RUN_DEPENDS=   ${PYTHON_SITELIBDIR}/pcap.py:${PORTSDIR}/net/py-pcap
+
  USE_PYTHON=    yes
  USE_PYDISTUTILS=       yes
  USE_PYTHON_PREFIX=     yes

-- 
-Chuck

[1]: If I could only get net/py-pcap to build, I might be able to do a little 
more...  :-)



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