2010-11-16 17:26:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class NetSnmp < Formula
|
2011-06-01 12:19:25 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/net-snmp/net-snmp/5.6.1.1/net-snmp-5.6.1.1.tar.gz'
|
2010-11-16 17:26:14 +00:00
|
|
|
homepage 'http://www.net-snmp.org/'
|
2011-06-01 12:19:25 +00:00
|
|
|
md5 '79e2b9cac947567a01ae2cc67ad8fe53'
|
2010-11-16 17:26:14 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-persistent-directory=/var/db/net-snmp",
|
|
|
|
"--with-defaults",
|
|
|
|
"--without-rpm",
|
|
|
|
"--with-mib-modules=host ucd-snmp/diskio",
|
|
|
|
"--with-out-mib-modules=mibII/icmp",
|
|
|
|
"--without-kmem-usage"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|