Skip to content

Instantly share code, notes, and snippets.

@life1347
Forked from benhagen/libdnet_python.rb
Created May 7, 2014 12:52
Show Gist options
  • Select an option

  • Save life1347/5700b332d9a88f9960a7 to your computer and use it in GitHub Desktop.

Select an option

Save life1347/5700b332d9a88f9960a7 to your computer and use it in GitHub Desktop.

Revisions

  1. @benhagen benhagen revised this gist Mar 27, 2013. 2 changed files with 2 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion pylibpcap.rb
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    require 'formula'

    class PylibpcapPython <Formula
    class Pylibpcap <Formula
    url 'http://downloads.sourceforge.net/project/pylibpcap/pylibpcap/0.6.4/pylibpcap-0.6.4.tar.gz'
    homepage 'http://pylibpcap.sourceforge.net/'
    sha1 '30b5d2e9dc8dcf6df067a216d9ecae109ff34f86'
    2 changes: 1 addition & 1 deletion scapy.rb
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    require 'formula'

    class ScapyPython <Formula
    class Scapy <Formula
    depends_on 'libdnet_python'
    depends_on 'pylibpcap'
    url 'http://www.secdev.org/projects/scapy/files/scapy-2.1.0.tar.gz'
  2. @benhagen benhagen revised this gist Mar 27, 2013. 2 changed files with 28 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions libdnet_python.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    require 'formula'

    class LibdnetPython <Formula
    depends_on 'libdnet'
    url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
    homepage 'http://code.google.com/p/libdnet/'
    sha1 '71302be302e84fc19b559e811951b5d600d976f8'

    def install
    ENV["CFLAGS"] = "-O3 -w -pipe"
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
    "--prefix=#{prefix}",
    "--mandir=#{man}"
    system "make"
    system "cd python && /usr/local/bin/python setup.py install"
    end
    end
    11 changes: 11 additions & 0 deletions pylibpcap.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    require 'formula'

    class PylibpcapPython <Formula
    url 'http://downloads.sourceforge.net/project/pylibpcap/pylibpcap/0.6.4/pylibpcap-0.6.4.tar.gz'
    homepage 'http://pylibpcap.sourceforge.net/'
    sha1 '30b5d2e9dc8dcf6df067a216d9ecae109ff34f86'

    def install
    system "/usr/local/bin/python setup.py install"
    end
    end
  3. @benhagen benhagen created this gist Mar 27, 2013.
    13 changes: 13 additions & 0 deletions scapy.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    require 'formula'

    class ScapyPython <Formula
    depends_on 'libdnet_python'
    depends_on 'pylibpcap'
    url 'http://www.secdev.org/projects/scapy/files/scapy-2.1.0.tar.gz'
    homepage 'http://www.secdev.org/projects/scapy/'
    sha1 'e507bc0f2a32d209f321580c9338d2ceb72ab93a'

    def install
    system "/usr/local/bin/python setup.py install"
    end
    end