diff --git a/Formula/lldpd.rb b/Formula/lldpd.rb index b8762d0c8c..49d14a5cbe 100644 --- a/Formula/lldpd.rb +++ b/Formula/lldpd.rb @@ -11,29 +11,26 @@ class Lldpd < Formula sha256 "1158b121a76df10a688d9907ab0843886ce7798f6d54ad8eaf9d21b17cb7b01f" => :el_capitan end - option "with-snmp", "Build SNMP subagent support" - depends_on "pkg-config" => :build depends_on "libevent" - depends_on "net-snmp" if build.with? "snmp" depends_on "readline" def install readline = Formula["readline"] - args = [ - "--prefix=#{prefix}", - "--sysconfdir=#{etc}", - "--localstatedir=#{var}", - "--with-xml", - "--with-readline", - "--with-privsep-chroot=/var/empty", - "--with-privsep-user=nobody", - "--with-privsep-group=nogroup", - "--with-launchddaemonsdir=no", - "CPPFLAGS=-I#{readline.include} -DRONLY=1", - "LDFLAGS=-L#{readline.lib}", + args = %W[ + --prefix=#{prefix} + --sysconfdir=#{etc} + --localstatedir=#{var} + --with-launchddaemonsdir=no + --with-privsep-chroot=/var/empty + --with-privsep-group=nogroup + --with-privsep-user=nobody + --with-readline + --with-xml + --without-snmp + CPPFLAGS=-I#{readline.include}\ -DRONLY=1 + LDFLAGS=-L#{readline.lib} ] - args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp") system "./configure", *args system "make"