lldpd: remove options
This commit is contained in:
parent
f51601f31e
commit
fe65ca15dd
1 changed files with 13 additions and 16 deletions
|
@ -11,29 +11,26 @@ class Lldpd < Formula
|
|||
sha256 "1158b121a76df10a688d9907ab0843886ce7798f6d54ad8eaf9d21b17cb7b01f" => :el_capitan
|
||||
end
|
||||
|
||||
option "with-snmp", "Build SNMP subagent support"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "libevent"
|
||||
depends_on "net-snmp" if build.with? "snmp"
|
||||
depends_on "readline"
|
||||
|
||||
def install
|
||||
readline = Formula["readline"]
|
||||
args = [
|
||||
"--prefix=#{prefix}",
|
||||
"--sysconfdir=#{etc}",
|
||||
"--localstatedir=#{var}",
|
||||
"--with-xml",
|
||||
"--with-readline",
|
||||
"--with-privsep-chroot=/var/empty",
|
||||
"--with-privsep-user=nobody",
|
||||
"--with-privsep-group=nogroup",
|
||||
"--with-launchddaemonsdir=no",
|
||||
"CPPFLAGS=-I#{readline.include} -DRONLY=1",
|
||||
"LDFLAGS=-L#{readline.lib}",
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--sysconfdir=#{etc}
|
||||
--localstatedir=#{var}
|
||||
--with-launchddaemonsdir=no
|
||||
--with-privsep-chroot=/var/empty
|
||||
--with-privsep-group=nogroup
|
||||
--with-privsep-user=nobody
|
||||
--with-readline
|
||||
--with-xml
|
||||
--without-snmp
|
||||
CPPFLAGS=-I#{readline.include}\ -DRONLY=1
|
||||
LDFLAGS=-L#{readline.lib}
|
||||
]
|
||||
args << (build.with?("snmp") ? "--with-snmp" : "--without-snmp")
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
|
|
Loading…
Reference in a new issue