This repository has been archived by the owner. It is now read-only.

add pkt2flow #27055

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
4 participants

isotopp commented Feb 27, 2014

pkt2flow splits a large PCAP file as written by tcpdump or snoop into individual tcp or udp streams, again in PCAP format. These subfiles can then be analyzed individually.

OSX support has been added recently, but not yet released, so this formula references my fork of the original project in order to have a reference release. Once the original project incorporates my changes I will update the Formula to point to a https://github.com/yalla/pkt2flow/releases release.

+0TQAUKnnhiFapPVNgBAgCoPqAAABAQgKDH5prA99wLUAAAIABAACAAAAAoAEAAAAAAAAAAAAeAAA
+AA==
+====')
+ system 'uudecode', '-m', 'capture.uue'
@MikeMcQuaid

MikeMcQuaid Feb 27, 2014

Owner

Failing on Lion and Mountain Lion:

uudecode: illegal option -- m
usage: uudecode [-cips] [file ...]
usage: uudecode [-i] -o output_file [file]
Error: pkt2flow: failed
+AAAAAAAAAGTzBACDeI8dQgAAAEIAAAAIYG7l/4JqWzWpJAAIAEUAADRUh0AAQAYAAMCoAWnAqAEK
+0TQAUKnnhiFapPVNgBAgCoPqAAABAQgKDH5prA99wLUAAAIABAACAAAAAoAEAAAAAAAAAAAAeAAA
+AA==
+====')
@MikeMcQuaid

MikeMcQuaid Feb 27, 2014

Owner

Any chance of making this a bit smaller?

+ args = [ "--prefix=#{prefix}"]
+
+ scons 'pkt2flow'
+ scons 'install', *args
@MikeMcQuaid

MikeMcQuaid Feb 27, 2014

Owner

Just add the args on the end rather than creating an array.

+class Pkt2flow < Formula
+ homepage "https://github.com/isotopp/pkt2flow"
+ # actual url https://github.com/yalla/pkt2flow/releases...
+ # waiting for my changes to be accepted.
@MikeMcQuaid

MikeMcQuaid Feb 27, 2014

Owner

We'll hold off merging this until your changes are merged.

+AA==
+====')
+ system 'uudecode', '-m', 'capture.uue'
+ system 'mkdir', 'x'
@MikeMcQuaid

MikeMcQuaid Feb 27, 2014

Owner

Use native mkdir method.

+====')
+ system 'uudecode', '-m', 'capture.uue'
+ system 'mkdir', 'x'
+ system "#{bin}/pkt2flow -o x capture"
@MikeMcQuaid

MikeMcQuaid Feb 27, 2014

Owner

Separate arguments with commas e.g. "#{bin}/pkt2flow", "-o"

Owner

MikeMcQuaid commented Feb 27, 2014

Please read the Ruby Style Guide and update this pull request's changes to conform to it. Thanks!

Contributor

adamv commented Mar 16, 2014

@isotopp any updates?

Contributor

adamv commented Apr 28, 2014

Ping; we'll need these issues addressed to include this.

Contributor

adamv commented May 12, 2014

It looks like the commit was accepted upstream, but we need a new tagged version from upstream to be able to package this.

Contributor

adamv commented May 19, 2014

Closing due to no response, but will review and updated pull request.

@adamv adamv closed this May 19, 2014

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 17, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.