From: Vincent Bernat Date: Mon, 25 May 2015 18:03:56 +0000 (+0200) Subject: osx/homebrew: use --without-json and --without-snmp to avoid autodetection X-Git-Tag: 0.7.16~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60da771a80350998d6ac8ad31977c07f991717b6;p=thirdparty%2Flldpd.git osx/homebrew: use --without-json and --without-snmp to avoid autodetection --- diff --git a/osx/lldpd.rb b/osx/lldpd.rb index a260169b..221109b3 100644 --- a/osx/lldpd.rb +++ b/osx/lldpd.rb @@ -27,8 +27,8 @@ class Lldpd < Formula "--with-launchddaemonsdir=no", "CPPFLAGS=-I#{readline.include} -DRONLY=1", "LDFLAGS=-L#{readline.lib}"] - args << "--with-snmp" if build.with? "snmp" - args << "--with-json" if build.with? "json" + args << build.with?("snmp") ? "--with-snmp" : "--without-snmp" + args << build.with?("json") ? "--with-json" : "--without-json" system "./configure", *args system "make"