From: Vincent Bernat Date: Sun, 1 Feb 2026 11:07:46 +0000 (+0100) Subject: osx: sync HomeBrew formula X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e957a6692b7d856ba7fb60ac03b1f1f7143ceebc;p=thirdparty%2Flldpd.git osx: sync HomeBrew formula --- diff --git a/osx/lldpd.rb b/osx/lldpd.rb index 9954049e..d9e1a757 100644 --- a/osx/lldpd.rb +++ b/osx/lldpd.rb @@ -6,12 +6,13 @@ class Lldpd < Formula license "ISC" livecheck do - url "https://github.com/lldpd/lldpd.git" + url :homepage + regex(/href=.*?lldpd[._-]v?(\d+(?:\.\d+)+)\.t/i) end option "with-snmp", "Build SNMP subagent support" - depends_on "pkg-config" => :build + depends_on "pkgconf" => :build depends_on "libevent" depends_on "net-snmp" if build.with? "snmp" depends_on "readline" @@ -24,21 +25,19 @@ class Lldpd < Formula --prefix=#{prefix} --sysconfdir=#{etc} --localstatedir=#{var} - --with-launchddaemonsdir=no --with-privsep-chroot=/var/empty --with-readline --with-xml + --without-launchddaemonsdir CPPFLAGS=-I#{readline.include}\ -DRONLY=1 LDFLAGS=-L#{readline.lib} ] args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp") - system "./configure", *args + system "./configure", *args, *std_configure_args system "make" system "make", "install" - end - def post_install (var/"run").mkpath end