]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx/homebrew: use --without-json and --without-snmp to avoid autodetection
authorVincent Bernat <vincent@bernat.im>
Mon, 25 May 2015 18:03:56 +0000 (20:03 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 25 May 2015 18:03:56 +0000 (20:03 +0200)
osx/lldpd.rb

index a260169b8f41bd2b491d07e0d45df855d37037ef..221109b3c933b4b08df6252474d0735f6cfaa007 100644 (file)
@@ -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"