29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
require "formula"
|
|
|
|
class NetSnmp < Formula
|
|
homepage "http://www.net-snmp.org/"
|
|
url "https://downloads.sourceforge.net/project/net-snmp/net-snmp/5.7.2.1/net-snmp-5.7.2.1.tar.gz"
|
|
sha1 "815d4e5520a1ed96a27def33e7534b4190599f0f"
|
|
|
|
devel do
|
|
url "https://downloads.sourceforge.net/project/net-snmp/net-snmp/5.7.3-pre-releases/net-snmp-5.7.3.pre3.tar.gz"
|
|
version "5.7.3.pre3"
|
|
sha1 "5e46232a2508a3cb6543f0438569090f78e4a20e"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--disable-debugging",
|
|
"--prefix=#{prefix}",
|
|
"--enable-ipv6",
|
|
"--with-defaults",
|
|
"--with-persistent-directory=#{var}/db/net-snmp",
|
|
"--with-logfile=#{var}/log/snmpd.log",
|
|
"--with-mib-modules=host ucd-snmp/diskio",
|
|
"--without-rpm",
|
|
"--without-kmem-usage",
|
|
"--disable-embedded-perl",
|
|
"--without-perl-modules"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|