]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx: reduce differences with official homebrew formula
authorVincent Bernat <vincent@bernat.im>
Sun, 28 Feb 2016 12:25:10 +0000 (13:25 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 28 Feb 2016 12:25:10 +0000 (13:25 +0100)
osx/lldpd.rb

index d1c43fb8147174d956365056433462c96367b64d..a08938dacf7cd6fa63ae759ac3f4b92c95cc0374 100644 (file)
@@ -11,7 +11,7 @@ class Lldpd < Formula
   depends_on "readline"
   depends_on "libevent"
   depends_on "net-snmp" if build.with? "snmp"
-  depends_on "jansson"  if build.with? "json"
+  depends_on "jansson" if build.with? "json"
 
   def install
     readline = Formula["readline"]
@@ -34,8 +34,8 @@ class Lldpd < Formula
     system "make", "install"
   end
 
-  def postinstall
-    (var/"run/lldpd").mkpath
+  def post_install
+    (var/"run").mkpath
   end
 
   def dscl(*args)