class Lldpd < Formula
desc "Implementation of IEEE 802.1ab (LLDP)"
homepage "https://vincentbernat.github.io/lldpd/"
- url "https://media.luffy.cx/files/lldpd/lldpd-0.9.6.tar.gz"
- sha256 "e74e2dd7e2a233ca1ff385c925ddae2a916d302819d1433741407d2f8fb0ddd8"
+ url "https://media.luffy.cx/files/lldpd/lldpd-0.9.7.tar.gz"
+ sha256 "b9360355c30a3c06fd5c0a6e658f2ad8bf77037d5a17c6fcabf20e62882e0db8"
option "with-snmp", "Build SNMP subagent support"
- option "with-json", "Build JSON support for lldpcli"
depends_on "pkg-config" => :build
depends_on "readline"
depends_on "libevent"
depends_on "net-snmp" if build.with? "snmp"
- depends_on "jansson" if build.with? "json"
def install
readline = Formula["readline"]
"LDFLAGS=-L#{readline.lib}",
]
args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp")
- args << (build.with?("json") ? "--with-json" : "--without-json")
system "./configure", *args
system "make"