Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
b7529808
Commit
b7529808
authored
Jan 16, 2017
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил ключик enable/disable netdata plugin для configure.
По умолчанию: enabled. Для отключения --disable-netdata
parent
4fb7b140
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
libuniset2.spec
conf/libuniset2.spec
+1
-6
configure.ac
configure.ac
+13
-0
Makefile.am
python/netdata-plugin/Makefile.am
+2
-1
No files found.
conf/libuniset2.spec
View file @
b7529808
...
...
@@ -315,18 +315,13 @@ SharedMemoryPlus extension ('all in one') for libuniset
%build
%autoreconf
%configure %{subst_enable docs} %{subst_enable mysql} %{subst_enable sqlite} %{subst_enable pgsql} %{subst_enable python} %{subst_enable rrd} %{subst_enable io} %{subst_enable logicproc} %{subst_enable tests} %{subst_enable mqtt} %{subst_enable api}
%configure %{subst_enable docs} %{subst_enable mysql} %{subst_enable sqlite} %{subst_enable pgsql} %{subst_enable python} %{subst_enable rrd} %{subst_enable io} %{subst_enable logicproc} %{subst_enable tests} %{subst_enable mqtt} %{subst_enable api}
%{subst_enable netdata}
%make_build
%install
%makeinstall_std
rm -f %buildroot%_libdir/*.la
%if_disabled netdata
rm -rf %buildroot%_libdir/netdata/python.d
rm -rf %buildroot%_sysconfdir/netdata/*
%endif
%files utils
%_bindir/%oname-admin
%_bindir/%oname-mb*
...
...
configure.ac
View file @
b7529808
...
...
@@ -239,6 +239,19 @@ if test ${buildpython} = true; then
AM_PATH_PYTHON(,,)
PKG_CHECK_MODULES(PYTHON,python-2.7,,exit)
# AC_CHECK_PROG(SWIG, swig, yes, exit)
AC_MSG_CHECKING([netdata python plugin])
netdata=true
AC_ARG_ENABLE(netdata,AC_HELP_STRING([--disable-netdata], [disable build netdata python plugin]),
[ if test $enableval = yes; then netdata=true; else netdata=false; fi],[ netdata=true; ])
if test ${netdata} = true; then
AC_MSG_RESULT([enabled])
else
AC_MSG_RESULT([disabled])
fi
AM_CONDITIONAL(HAVE_NETDATA, test ${netdata} = true)
else
AC_MSG_RESULT([disabled])
fi
...
...
python/netdata-plugin/Makefile.am
View file @
b7529808
if
DISABLE_PYTHON
else
if
HAVE_NETDATA
netdataconfdir
=
$(sysconfdir)
/netdata/python.d
netdataconf_DATA
=
*
.conf
...
...
@@ -10,3 +10,4 @@ plug_DATA = *.py
include
$(top_builddir)/include.mk
endif
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment