netdata: fix edit-config issue
Fixed edit-config issue having wrong paths, reported on https://github.com/netdata/netdata/issues/6165 Also added extra configure flags, to comply with the netdata way of configuring. Closes #42330. Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
parent
08b23acb0b
commit
28501c560d
1 changed files with 6 additions and 0 deletions
|
@ -16,13 +16,19 @@ class Netdata < Formula
|
|||
depends_on "openssl" if MacOS.version <= :sierra
|
||||
|
||||
def install
|
||||
system "autoreconf", "-ivf"
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}",
|
||||
"--sysconfdir=#{etc}",
|
||||
"--localstatedir=#{var}",
|
||||
"--libexecdir=#{libexec}",
|
||||
"--with-math",
|
||||
"--with-zlib",
|
||||
"--with-user=netdata",
|
||||
"UUID_CFLAGS=-I/usr/include",
|
||||
"UUID_LIBS=-lc"
|
||||
system "make", "clean"
|
||||
system "make", "install"
|
||||
|
||||
(etc/"netdata").install "system/netdata.conf"
|
||||
|
|
Loading…
Reference in a new issue