]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx: update homebrew recipe
authorVincent Bernat <bernat@luffy.cx>
Sun, 10 Nov 2013 15:10:34 +0000 (16:10 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 10 Nov 2013 15:10:34 +0000 (16:10 +0100)
The patch is not needed anymore. We replace it with the appropriate
`./configure` option. We could use the shipped launchd file but it
does not contain provision to specify options to enable SNMP support.

osx/lldpd.rb

index 22dc928fecd912db7107b479d2d46503a9642524..a221c682cd3c46752f59715e8dd4b3f45e87c958 100644 (file)
@@ -2,8 +2,8 @@ require 'formula'
 
 class Lldpd < Formula
   homepage 'http://vincentbernat.github.io/lldpd/'
-  url 'http://media.luffy.cx/files/lldpd/lldpd-0.7.6.tar.gz'
-  sha1 'be3d3937b22d14259553f637694f744ed3b8ba79'
+  url 'http://media.luffy.cx/files/lldpd/lldpd-0.7.7.tar.gz'
+  sha1 '4471e5fcd66d650b6327842a9e2e779e546f2491'
 
   option 'with-snmp', "Build SNMP subagent support"
   option 'with-json', "Build JSON support for lldpcli"
@@ -14,17 +14,13 @@ class Lldpd < Formula
   depends_on 'net-snmp' if build.include? 'with-snmp'
   depends_on 'jansson'  if build.include? 'with-json'
 
-  def patches
-    # Don't try to install provided launchd plist (outside of prefix)
-    "https://raw.github.com/vincentbernat/lldpd/master/osx/dont-install-launchd-plist.patch"
-  end
-
   def install
     readline = Formula.factory 'readline'
     args = [ "--prefix=#{prefix}",
              "--with-xml",
              "--with-readline",
              "--with-privsep-chroot=/var/empty",
+             "--with-launchddaemonsdir=no",
              "CPPFLAGS=-I#{readline.include} -DRONLY=1",
              "LDFLAGS=-L#{readline.lib}" ]
     args << "--with-snmp" if build.include? 'with-snmp'