2009-12-20 00:19:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libnet < Formula
|
2010-07-02 15:40:04 +00:00
|
|
|
url "http://github.com/sam-github/libnet/tarball/libnet-1.1.4"
|
|
|
|
md5 "0cb6c04063c1db37c91af08c76d25134"
|
2009-12-20 00:19:58 +00:00
|
|
|
head 'git://github.com/sam-github/libnet.git'
|
|
|
|
homepage 'http://github.com/sam-github/libnet'
|
|
|
|
|
|
|
|
def install
|
|
|
|
cd 'libnet'
|
2010-07-02 15:40:04 +00:00
|
|
|
inreplace "autogen.sh", "libtoolize", "glibtoolize"
|
2009-12-20 00:19:58 +00:00
|
|
|
system "./autogen.sh"
|
2010-04-07 05:58:35 +00:00
|
|
|
cp "/usr/share/libtool/config/config.guess", "."
|
|
|
|
cp "/usr/share/libtool/config/config.sub", "."
|
2009-12-20 00:19:58 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
touch 'doc/man/man3/libnet.3'
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|