diff options
| author | Adam Vandenberg | 2012-08-10 09:28:22 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-10 09:28:22 -0700 |
| commit | 288e4773a8568de1d5f258b552ce2c525d213362 (patch) | |
| tree | d75953ef6499b8c86cafba210cdf7f1fd7abce5e /Library | |
| parent | 889c67f14ba3e3f7f3e25a9d97c1a108be6885ea (diff) | |
| download | homebrew-288e4773a8568de1d5f258b552ce2c525d213362.tar.bz2 | |
libnet: fix raw sockets
Closes #12062.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libnet.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Library/Formula/libnet.rb b/Library/Formula/libnet.rb index 9a229dea8..79c720e4e 100644 --- a/Library/Formula/libnet.rb +++ b/Library/Formula/libnet.rb @@ -5,8 +5,22 @@ class Libnet < Formula url 'http://sourceforge.net/projects/libnet-dev/files/libnet-1.1.6.tar.gz' sha1 'dffff71c325584fdcf99b80567b60f8ad985e34c' + # MacPorts does an autoreconf to get raw sockets working + depends_on :autoconf + depends_on :libtool + + # Fix raw sockets support + def patches + {:p0 => + "https://trac.macports.org/export/95336/trunk/dports/net/libnet11/files/patch-configure.in.diff" + } + end + def install - system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" + system "autoreconf --force --install" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + inreplace "src/libnet_link_bpf.c", "#include <net/bpf.h>", "" # Per MacPorts system "make install" end end |
