homebrew-core/Formula/libnet.rb
Jack Nagel 2cbbfee68c libnet: needs automake as well
Closes Homebrew/homebrew#14329.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-21 16:05:54 -05:00

28 lines
797 B
Ruby

require 'formula'
class Libnet < Formula
homepage 'https://github.com/sam-github/libnet'
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 :automake
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 "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