From 1eb493a3efc9b79046d74dc79d227a11ea00552b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 28 Dec 2015 20:29:47 +0100 Subject: [PATCH] osx: reduce distance with official HomeBrew formula We still want to use a dedicated user as it is safer. --- osx/lldpd.rb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/osx/lldpd.rb b/osx/lldpd.rb index a6cb2706..1e3d415b 100644 --- a/osx/lldpd.rb +++ b/osx/lldpd.rb @@ -15,15 +15,17 @@ class Lldpd < Formula def install readline = Formula["readline"] - args = ["--prefix=#{prefix}", - "--sysconfdir=#{etc}", - "--localstatedir=#{var}", - "--with-xml", - "--with-readline", - "--with-privsep-chroot=/var/empty", - "--with-launchddaemonsdir=no", - "CPPFLAGS=-I#{readline.include} -DRONLY=1", - "LDFLAGS=-L#{readline.lib}"] + args = [ + "--prefix=#{prefix}", + "--sysconfdir=#{etc}", + "--localstatedir=#{var}", + "--with-xml", + "--with-readline", + "--with-privsep-chroot=/var/empty", + "--with-launchddaemonsdir=no", + "CPPFLAGS=-I#{readline.include} -DRONLY=1", + "LDFLAGS=-L#{readline.lib}", + ] args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp") args << (build.with?("json") ? "--with-json" : "--without-json") -- 2.39.5