mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
confd: drop augeas from build requirements and clean up
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
committed by
Tobias Waldekranz
parent
96cdc7c628
commit
ff10f4ee2f
@@ -43,7 +43,6 @@ AS_IF([test "x$with_login_shell" != "xno"], [
|
||||
# Check for pkg-config first, warn if it's not installed
|
||||
PKG_PROG_PKG_CONFIG
|
||||
|
||||
PKG_CHECK_MODULES([augeas], [augeas >= 1.12.0])
|
||||
PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.50 gio-2.0 gio-unix-2.0])
|
||||
PKG_CHECK_MODULES([jansson], [jansson >= 2.0.0])
|
||||
PKG_CHECK_MODULES([libite], [libite >= 2.5.0])
|
||||
|
||||
@@ -6,7 +6,6 @@ plugin_LTLIBRARIES = confd-plugin.la
|
||||
confd_plugin_la_LDFLAGS = -module -avoid-version -shared
|
||||
|
||||
confd_plugin_la_CFLAGS = \
|
||||
$(augeas_CFLAGS) \
|
||||
$(glib_CFLAGS) \
|
||||
$(jansson_CFLAGS) \
|
||||
$(libite_CFLAGS) \
|
||||
@@ -15,7 +14,6 @@ confd_plugin_la_CFLAGS = \
|
||||
$(CFLAGS)
|
||||
|
||||
confd_plugin_la_LIBADD = \
|
||||
$(augeas_LIBS) \
|
||||
$(glib_LIBS) \
|
||||
$(jansson_LIBS) \
|
||||
$(libite_LIBS) \
|
||||
|
||||
@@ -117,9 +117,6 @@ int sr_plugin_init_cb(sr_session_ctx_t *session, void **priv)
|
||||
rc = sr_session_start(confd.conn, SR_DS_CANDIDATE, &confd.cand);
|
||||
if (rc)
|
||||
goto err;
|
||||
confd.aug = aug_init(NULL, "", 0);
|
||||
if (!confd.aug)
|
||||
goto err;
|
||||
|
||||
confd.root = json_load_file("/run/system.json", 0, NULL);
|
||||
if (!confd.root)
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include <sys/param.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <augeas.h>
|
||||
#include <libite/lite.h>
|
||||
#include <libite/queue.h>
|
||||
#include <libyang/libyang.h>
|
||||
@@ -87,7 +86,6 @@ struct confd {
|
||||
sr_subscription_ctx_t *sub;
|
||||
sr_subscription_ctx_t *fsub; /* factory-default sub */
|
||||
json_t *root;
|
||||
augeas *aug;
|
||||
struct dagger netdag;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user