]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx: update formula for HomeBrew (with upstream additions)
authorVincent Bernat <vincent@bernat.ch>
Sat, 5 Sep 2020 12:24:39 +0000 (14:24 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 5 Sep 2020 12:24:39 +0000 (14:24 +0200)
osx/lldpd.rb

index 9a55e61a9f8650bb2fe2c0e94acc828f6222c0a1..2ecc30cc74051314fcfe96f0b2fece9a1666461f 100644 (file)
@@ -4,6 +4,10 @@ class Lldpd < Formula
   url "https://media.luffy.cx/files/lldpd/lldpd-1.0.6.tar.gz"
   sha256 "25e15bc3407c1cbf2d0b2f21993561a57b7e2fdc5cebfcf6df4ce5ce376aaeec"
 
+  livecheck do
+    url "https://github.com/vincentbernat/lldpd.git"
+  end
+
   option "with-snmp", "Build SNMP subagent support"
 
   depends_on "pkg-config" => :build
@@ -11,6 +15,8 @@ class Lldpd < Formula
   depends_on "net-snmp" if build.with? "snmp"
   depends_on "readline"
 
+  uses_from_macos "libxml2"
+
   def install
     readline = Formula["readline"]
     args = %W[
@@ -73,7 +79,7 @@ class Lldpd < Formula
     end
   end
 
-  plist_options :startup => true
+  plist_options startup: true
 
   def plist
     additional_args = ""