mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 23:43:20 +02:00
mech: Add infrastructure for backend plugins using Augeas
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_MECH
|
||||
bool "mech"
|
||||
select BR2_PACKAGE_CLIXON
|
||||
select BR2_PACKAGE_AUGEAS
|
||||
help
|
||||
Orchestrate an Infix node using any of the front-ends
|
||||
offered by Clixon, e.g. NETCONF, RESTCONF or SNMP.
|
||||
|
||||
@@ -7,6 +7,7 @@ MECH_VERSION = 1.0
|
||||
MECH_LICENSE = GPL
|
||||
MECH_SITE_METHOD = local
|
||||
MECH_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/mech
|
||||
MECH_DEPENDENCIES = augeas clixon
|
||||
MECH_AUTORECONF = YES
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
|
||||
CPPFLAGS = -I $(top_srcdir)/include/
|
||||
|
||||
finitdir = $(sysconfdir)/finit.d
|
||||
|
||||
clixonlibdir = $(libdir)/clixon
|
||||
@@ -13,3 +16,8 @@ yang_DATA =
|
||||
|
||||
cli_libadd = -lclixon -lclixon_cli
|
||||
cli_ldflags = -module -avoid-version -shared
|
||||
|
||||
backend_cflags = $(CFLAGS) $(augeas_CFLAGS)
|
||||
backend_libadd = $(augeas_LIBS) -lclixon -lclixon_backend
|
||||
backend_ldflags = -module -avoid-version -shared
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_CHECK_LIB([clixon], [yang_len_get],, AC_MSG_ERROR([Clixon not found]))
|
||||
PKG_CHECK_MODULES([augeas], [augeas >= 1.12.0])
|
||||
|
||||
|
||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
include $(top_srcdir)/common.am
|
||||
|
||||
CFLAGS = -Wall -Wextra -Werror -Wno-unused-parameter
|
||||
SUBDIRS = core
|
||||
|
||||
install-exec-hook:
|
||||
|
||||
Reference in New Issue
Block a user