* Makefile change: Removed the make include file: clixon.mk and clixon.mk.in
* These generated the Makefile variables: clixon_DBSPECDIR, clixon_SYSCONFDIR, clixon_LOCALSTATEDIR, clixon_LIBDIR, clixon_DATADIR which have been replaced by generic autoconf variables instead.
This commit is contained in:
parent
faea537d25
commit
9776ee864f
16 changed files with 51 additions and 384 deletions
|
|
@ -41,6 +41,9 @@ translate {
|
||||||
* xpath_each() is removed
|
* xpath_each() is removed
|
||||||
* The old API can be enabled by setting COMPAT_XSL in include/clixon_custom.h and recompile.
|
* The old API can be enabled by setting COMPAT_XSL in include/clixon_custom.h and recompile.
|
||||||
|
|
||||||
|
* Makefile change: Removed the make include file: clixon.mk and clixon.mk.in
|
||||||
|
* These generated the Makefile variables: clixon_DBSPECDIR, clixon_SYSCONFDIR, clixon_LOCALSTATEDIR, clixon_LIBDIR, clixon_DATADIR which have been replaced by generic autoconf variables instead.
|
||||||
|
|
||||||
* Removed cli callback vector functions. Set COMPAT_CLIV if you need to keep these functions in include/clixon_custom.h.
|
* Removed cli callback vector functions. Set COMPAT_CLIV if you need to keep these functions in include/clixon_custom.h.
|
||||||
* Replace functions as follows in CLI SPEC files:
|
* Replace functions as follows in CLI SPEC files:
|
||||||
* cli_setv --> cli_set
|
* cli_setv --> cli_set
|
||||||
|
|
|
||||||
12
Makefile.in
12
Makefile.in
|
|
@ -56,7 +56,7 @@ SUBDIRS = lib apps include etc datastore util yang
|
||||||
|
|
||||||
.PHONY: doc all clean depend $(SUBDIRS) install loc TAGS .config.status docker
|
.PHONY: doc all clean depend $(SUBDIRS) install loc TAGS .config.status docker
|
||||||
|
|
||||||
all: $(SUBDIRS) clixon.mk
|
all: $(SUBDIRS)
|
||||||
|
|
||||||
$(SUBDIRS):
|
$(SUBDIRS):
|
||||||
(cd $@ && $(MAKE) $(MFLAGS) all)
|
(cd $@ && $(MAKE) $(MFLAGS) all)
|
||||||
|
|
@ -65,12 +65,7 @@ depend:
|
||||||
for i in $(SUBDIRS) doc example docker; \
|
for i in $(SUBDIRS) doc example docker; \
|
||||||
do (cd $$i && $(MAKE) $(MFLAGS) depend); done
|
do (cd $$i && $(MAKE) $(MFLAGS) depend); done
|
||||||
|
|
||||||
clixon.mk: clixon.mk.cpp
|
install:
|
||||||
$(CPP) -P -traditional-cpp -x assembler-with-cpp -Dprefix=$(prefix) -Dlocalstatedir=$(localstatedir) -Dsysconfdir=$(sysconfdir) -Ddatadir=$(datadir) -Dlibdir=$(libdir) $< > $@
|
|
||||||
|
|
||||||
install: clixon.mk
|
|
||||||
install -d -m 0755 $(DESTDIR)$(datadir)/clixon
|
|
||||||
install -m 0644 clixon.mk $(DESTDIR)$(datadir)/clixon
|
|
||||||
for i in $(SUBDIRS) doc; \
|
for i in $(SUBDIRS) doc; \
|
||||||
do (cd $$i; $(MAKE) $(MFLAGS) $@)||exit 1; done; \
|
do (cd $$i; $(MAKE) $(MFLAGS) $@)||exit 1; done; \
|
||||||
echo "Install for compilation by: make install-include"
|
echo "Install for compilation by: make install-include"
|
||||||
|
|
@ -83,7 +78,6 @@ install-include:
|
||||||
uninstall:
|
uninstall:
|
||||||
for i in $(SUBDIRS) doc example docker; \
|
for i in $(SUBDIRS) doc example docker; \
|
||||||
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done;
|
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done;
|
||||||
rm -f $(DESTDIR)$(datadir)/clixon/clixon.mk
|
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
cd $@; $(MAKE) $(MFLAGS) $@
|
cd $@; $(MAKE) $(MFLAGS) $@
|
||||||
|
|
@ -100,7 +94,7 @@ clean:
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
rm -f Makefile TAGS config.status config.log *~ .depend
|
rm -f Makefile TAGS config.status config.log *~ .depend
|
||||||
rm -rf autom4te.cache clixon.mk build-root/rpmbuild
|
rm -rf autom4te.cache build-root/rpmbuild
|
||||||
rm -f build-root/*.tar.xz build-root/*.rpm extras/rpm/Makefile
|
rm -f build-root/*.tar.xz build-root/*.rpm extras/rpm/Makefile
|
||||||
for i in $(SUBDIRS) doc example docker; \
|
for i in $(SUBDIRS) doc example docker; \
|
||||||
do (cd $$i && $(MAKE) $(MFLAGS) $@); done
|
do (cd $$i && $(MAKE) $(MFLAGS) $@); done
|
||||||
|
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
||||||
#
|
|
||||||
# ***** BEGIN LICENSE BLOCK *****
|
|
||||||
#
|
|
||||||
# Copyright (C) 2009-2018 Olof Hagsand and Benny Holmgren
|
|
||||||
#
|
|
||||||
# This file is part of CLIXON
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
# Alternatively, the contents of this file may be used under the terms of
|
|
||||||
# the GNU General Public License Version 3 or later (the "GPL"),
|
|
||||||
# in which case the provisions of the GPL are applicable instead
|
|
||||||
# of those above. If you wish to allow use of your version of this file only
|
|
||||||
# under the terms of the GPL, and not to allow others to
|
|
||||||
# use your version of this file under the terms of Apache License version 2,
|
|
||||||
# indicate your decision by deleting the provisions above and replace them with
|
|
||||||
# the notice and other provisions required by the GPL. If you do not delete
|
|
||||||
# the provisions above, a recipient may use your version of this file under
|
|
||||||
# the terms of any one of the Apache License version 2 or the GPL.
|
|
||||||
#
|
|
||||||
# ***** END LICENSE BLOCK *****
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# Include this file in your application Makefile using eg:
|
|
||||||
# -include $(datarootdir)/clixon/clixon.mk
|
|
||||||
# then you can use the DIRS below in your install rules.
|
|
||||||
# You also get rules for the application configure file.
|
|
||||||
# NOTE: APPNAME must be defined in the local Makefile
|
|
||||||
|
|
||||||
clixon_DBSPECDIR=prefix/share/$(APPNAME)
|
|
||||||
clixon_SYSCONFDIR=sysconfdir
|
|
||||||
clixon_LOCALSTATEDIR=localstatedir/$(APPNAME)
|
|
||||||
clixon_LIBDIR=libdir/$(APPNAME)
|
|
||||||
clixon_DATADIR=datadir/clixon # for system yang files
|
|
||||||
|
|
||||||
8
configure
vendored
8
configure
vendored
|
|
@ -621,6 +621,7 @@ ac_includes_default="\
|
||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
|
CLIXON_DATADIR
|
||||||
EGREP
|
EGREP
|
||||||
GREP
|
GREP
|
||||||
LEXLIB
|
LEXLIB
|
||||||
|
|
@ -4308,11 +4309,12 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# This is to find clixon system files in the source code.
|
# This is to find clixon system files in the source code and Makefile
|
||||||
# same as clixon_DATADIR defined in clixon.mk.cpp for Makefiles
|
|
||||||
|
CLIXON_DATADIR="${prefix}/share/clixon"
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define CLIXON_DATADIR "${prefix}/share/clixon"
|
#define CLIXON_DATADIR "${CLIXON_DATADIR}"
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -178,9 +178,10 @@ AC_CHECK_LIB(dl, dlopen)
|
||||||
|
|
||||||
AC_CHECK_FUNCS(inet_aton sigaction sigvec strlcpy strsep strndup alphasort versionsort strverscmp)
|
AC_CHECK_FUNCS(inet_aton sigaction sigvec strlcpy strsep strndup alphasort versionsort strverscmp)
|
||||||
|
|
||||||
# This is to find clixon system files in the source code.
|
# This is to find clixon system files in the source code and Makefile
|
||||||
# same as clixon_DATADIR defined in clixon.mk.cpp for Makefiles
|
AC_SUBST(CLIXON_DATADIR)
|
||||||
AC_DEFINE_UNQUOTED(CLIXON_DATADIR, "${prefix}/share/clixon", [Clixon data dir for system yang files etc])
|
CLIXON_DATADIR="${prefix}/share/clixon"
|
||||||
|
AC_DEFINE_UNQUOTED(CLIXON_DATADIR, "${CLIXON_DATADIR}", [Clixon data dir for system yang files etc])
|
||||||
|
|
||||||
# Default location for config file
|
# Default location for config file
|
||||||
AC_DEFINE_UNQUOTED(CLIXON_DEFAULT_CONFIG,"${DEFAULT_CONFIG}",[Location for apps to find default config file])
|
AC_DEFINE_UNQUOTED(CLIXON_DEFAULT_CONFIG,"${DEFAULT_CONFIG}",[Location for apps to find default config file])
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,6 @@ APPL = datastore_client
|
||||||
|
|
||||||
all: $(SUBDIRS) $(APPL)
|
all: $(SUBDIRS) $(APPL)
|
||||||
|
|
||||||
-include $(DESTDIR)$(datarootdir)/clixon/clixon.mk
|
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
|
||||||
|
|
@ -101,14 +99,11 @@ install-include:
|
||||||
for i in $(SUBDIRS); \
|
for i in $(SUBDIRS); \
|
||||||
do (cd $$i ; $(MAKE) $(MFLAGS) $@)||exit 1; done;
|
do (cd $$i ; $(MAKE) $(MFLAGS) $@)||exit 1; done;
|
||||||
|
|
||||||
install: $(APPL)
|
install:
|
||||||
install -d -m 0755 $(DESTDIR)$(bindir)
|
|
||||||
install -m 0755 $(INSTALLFLAGS) $(APPL) $(DESTDIR)$(bindir)
|
|
||||||
for i in $(SUBDIRS); \
|
for i in $(SUBDIRS); \
|
||||||
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done
|
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(bindir)/$(APPL)
|
|
||||||
for i in $(SUBDIRS); \
|
for i in $(SUBDIRS); \
|
||||||
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done
|
do (cd $$i && $(MAKE) $(MFLAGS) $@)||exit 1; done
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,6 @@ OBJS = $(SRC:.c=.o)
|
||||||
|
|
||||||
all: $(PLUGIN)
|
all: $(PLUGIN)
|
||||||
|
|
||||||
-include $(DESTDIR)$(datarootdir)/clixon/clixon.mk
|
|
||||||
|
|
||||||
$(PLUGIN): $(SRC)
|
$(PLUGIN): $(SRC)
|
||||||
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) $(LDFLAGS) -shared -o $@ -lc $^ $(LIBS)
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) $(LDFLAGS) -shared -o $@ -lc $^ $(LIBS)
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,6 @@ OBJS = $(SRC:.c=.o)
|
||||||
|
|
||||||
all: $(PLUGIN)
|
all: $(PLUGIN)
|
||||||
|
|
||||||
-include $(DESTDIR)$(datarootdir)/clixon/clixon.mk
|
|
||||||
|
|
||||||
$(PLUGIN): $(SRC)
|
$(PLUGIN): $(SRC)
|
||||||
ifeq ($(HOST_VENDOR),apple)
|
ifeq ($(HOST_VENDOR),apple)
|
||||||
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) $(LDFLAGS) -shared -undefined dynamic_lookup -o $@ -lc $^ $(LIBS)
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) $(LDFLAGS) -shared -undefined dynamic_lookup -o $@ -lc $^ $(LIBS)
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,13 @@ prefix = @prefix@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @exec_prefix@/lib
|
||||||
|
|
||||||
APPNAME = example
|
APPNAME = example
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CFLAGS = @CFLAGS@ -rdynamic -fPIC
|
CFLAGS = @CFLAGS@ -rdynamic -fPIC
|
||||||
INSTALLFLAGS = @INSTALLFLAGS@
|
INSTALLFLAGS = @INSTALLFLAGS@
|
||||||
|
|
@ -60,9 +65,6 @@ PLUGINS = $(BE_PLUGIN) $(BE2_PLUGIN) $(CLI_PLUGIN) $(NETCONF_PLUGIN) $(RESTCONF_
|
||||||
|
|
||||||
all: $(PLUGINS)
|
all: $(PLUGINS)
|
||||||
|
|
||||||
# Note: clixon.mk has rules for clixon_DBSPECDIR, clixon_SYSCONFDIR, etc used below
|
|
||||||
-include $(DESTDIR)$(datarootdir)/clixon/clixon.mk
|
|
||||||
|
|
||||||
CLISPECS = $(APPNAME)_cli.cli
|
CLISPECS = $(APPNAME)_cli.cli
|
||||||
|
|
||||||
YANGSPECS = $(APPNAME).yang
|
YANGSPECS = $(APPNAME).yang
|
||||||
|
|
@ -116,21 +118,21 @@ distclean: clean
|
||||||
rm -f Makefile *~ .depend
|
rm -f Makefile *~ .depend
|
||||||
|
|
||||||
install: $(YANGSPECS) $(CLISPECS) $(BE_PLUGIN) $(BE2_PLUGIN) $(CLI_PLUGIN) $(NETCONF_PLUGIN) $(RESTCONF_PLUGIN) $(APPNAME).xml
|
install: $(YANGSPECS) $(CLISPECS) $(BE_PLUGIN) $(BE2_PLUGIN) $(CLI_PLUGIN) $(NETCONF_PLUGIN) $(RESTCONF_PLUGIN) $(APPNAME).xml
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_SYSCONFDIR)
|
install -d -m 0755 $(DESTDIR)$(sysconfdir)
|
||||||
install -m 0644 $(APPNAME).xml $(DESTDIR)$(clixon_SYSCONFDIR)
|
install -m 0644 $(APPNAME).xml $(DESTDIR)$(sysconfdir)
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_DBSPECDIR)/yang
|
install -d -m 0755 $(DESTDIR)$(datarootdir)/$(APPNAME)/yang
|
||||||
install -m 0644 $(YANGSPECS) $(DESTDIR)$(clixon_DBSPECDIR)/yang
|
install -m 0644 $(YANGSPECS) $(DESTDIR)$(datarootdir)/$(APPNAME)/yang
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_LIBDIR)/cli
|
install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)/cli
|
||||||
install -m 0644 $(INSTALLFLAGS) $(CLI_PLUGIN) $(DESTDIR)$(clixon_LIBDIR)/cli
|
install -m 0644 $(INSTALLFLAGS) $(CLI_PLUGIN) $(DESTDIR)$(libdir)/$(APPNAME)/cli
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_LIBDIR)/backend
|
install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)/backend
|
||||||
install -m 0644 $(INSTALLFLAGS) $(BE_PLUGIN) $(BE2_PLUGIN) $(DESTDIR)$(clixon_LIBDIR)/backend
|
install -m 0644 $(INSTALLFLAGS) $(BE_PLUGIN) $(BE2_PLUGIN) $(DESTDIR)$(libdir)/$(APPNAME)/backend
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_LIBDIR)/netconf
|
install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)/netconf
|
||||||
install -m 0644 $(INSTALLFLAGS) $(NETCONF_PLUGIN) $(DESTDIR)$(clixon_LIBDIR)/netconf
|
install -m 0644 $(INSTALLFLAGS) $(NETCONF_PLUGIN) $(DESTDIR)$(libdir)/$(APPNAME)/netconf
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_LIBDIR)/restconf
|
install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)/restconf
|
||||||
install -m 0644 $(INSTALLFLAGS) $(RESTCONF_PLUGIN) $(DESTDIR)$(clixon_LIBDIR)/restconf
|
install -m 0644 $(INSTALLFLAGS) $(RESTCONF_PLUGIN) $(DESTDIR)$(libdir)/$(APPNAME)/restconf
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_LIBDIR)/clispec
|
install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)/clispec
|
||||||
install -m 0644 $(CLISPECS) $(DESTDIR)$(clixon_LIBDIR)/clispec
|
install -m 0644 $(CLISPECS) $(DESTDIR)$(libdir)/$(APPNAME)/clispec
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_LOCALSTATEDIR)
|
install -d -m 0755 $(DESTDIR)$(localstatedir)/$(APPNAME)
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
sudo docker build -t $(IMAGE) .
|
sudo docker build -t $(IMAGE) .
|
||||||
|
|
@ -138,12 +140,13 @@ docker:
|
||||||
push:
|
push:
|
||||||
sudo docker push $(IMAGE)
|
sudo docker push $(IMAGE)
|
||||||
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -rf $(DESTDIR)$(clixon_SYSCONFDIR)/$(APPNAME).xml
|
echo "libdir:$(libdir)"
|
||||||
rm -rf $(DESTDIR)$(clixon_DBSPECDIR)
|
echo "libdir2:$(libdir2)"
|
||||||
rm -rf $(DESTDIR)$(clixon_LOCALSTATEDIR)
|
rm -rf $(DESTDIR)$(sysconfdir)/$(APPNAME).xml
|
||||||
rm -rf $(DESTDIR)$(clixon_LIBDIR)
|
rm -rf $(DESTDIR)$(datarootdir)/$(APPNAME)
|
||||||
|
rm -rf $(DESTDIR)$(localstatedir)/$(APPNAME)
|
||||||
|
rm -rf $(DESTDIR)$(libdir)/$(APPNAME)
|
||||||
|
|
||||||
install-include:
|
install-include:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,142 +0,0 @@
|
||||||
/* include/clixon_config.h.in. Generated from configure.ac by autoheader. */
|
|
||||||
|
|
||||||
/* Clixon data dir for system yang files etc */
|
|
||||||
#undef CLIXON_DATADIR
|
|
||||||
|
|
||||||
/* Location for apps to find default config file */
|
|
||||||
#undef CLIXON_DEFAULT_CONFIG
|
|
||||||
|
|
||||||
/* Clixon major release */
|
|
||||||
#undef CLIXON_VERSION_MAJOR
|
|
||||||
|
|
||||||
/* Clixon minor release */
|
|
||||||
#undef CLIXON_VERSION_MINOR
|
|
||||||
|
|
||||||
/* Clixon path version */
|
|
||||||
#undef CLIXON_VERSION_PATCH
|
|
||||||
|
|
||||||
/* Clixon version string */
|
|
||||||
#undef CLIXON_VERSION_STRING
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `alphasort' function. */
|
|
||||||
#undef HAVE_ALPHASORT
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <cligen/cligen.h> header file. */
|
|
||||||
#undef HAVE_CLIGEN_CLIGEN_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <crypt.h> header file. */
|
|
||||||
#undef HAVE_CRYPT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <depot.h> header file. */
|
|
||||||
#undef HAVE_DEPOT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `inet_aton' function. */
|
|
||||||
#undef HAVE_INET_ATON
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
||||||
#undef HAVE_INTTYPES_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `cligen' library (-lcligen). */
|
|
||||||
#undef HAVE_LIBCLIGEN
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `crypt' library (-lcrypt). */
|
|
||||||
#undef HAVE_LIBCRYPT
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
|
||||||
#undef HAVE_LIBDL
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `fcgi' library (-lfcgi). */
|
|
||||||
#undef HAVE_LIBFCGI
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `m' library (-lm). */
|
|
||||||
#undef HAVE_LIBM
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
|
||||||
#undef HAVE_LIBNSL
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `qdbm' library (-lqdbm). */
|
|
||||||
#undef HAVE_LIBQDBM
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `socket' library (-lsocket). */
|
|
||||||
#undef HAVE_LIBSOCKET
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <linux/if_vlan.h> header file. */
|
|
||||||
#undef HAVE_LINUX_IF_VLAN_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
|
||||||
#undef HAVE_MEMORY_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <qdbm/depot.h> header file. */
|
|
||||||
#undef HAVE_QDBM_DEPOT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `sigaction' function. */
|
|
||||||
#undef HAVE_SIGACTION
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `sigvec' function. */
|
|
||||||
#undef HAVE_SIGVEC
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
|
||||||
#undef HAVE_STDINT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
||||||
#undef HAVE_STDLIB_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
|
||||||
#undef HAVE_STRINGS_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <string.h> header file. */
|
|
||||||
#undef HAVE_STRING_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strlcpy' function. */
|
|
||||||
#undef HAVE_STRLCPY
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strndup' function. */
|
|
||||||
#undef HAVE_STRNDUP
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strsep' function. */
|
|
||||||
#undef HAVE_STRSEP
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strverscmp' function. */
|
|
||||||
#undef HAVE_STRVERSCMP
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
||||||
#undef HAVE_SYS_STAT_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
||||||
#undef HAVE_SYS_TYPES_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ucred.h> header file. */
|
|
||||||
#undef HAVE_SYS_UCRED_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
|
||||||
#undef HAVE_UNISTD_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `versionsort' function. */
|
|
||||||
#undef HAVE_VERSIONSORT
|
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
|
||||||
#undef PACKAGE_BUGREPORT
|
|
||||||
|
|
||||||
/* Define to the full name of this package. */
|
|
||||||
#undef PACKAGE_NAME
|
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
|
||||||
#undef PACKAGE_STRING
|
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
|
||||||
#undef PACKAGE_TARNAME
|
|
||||||
|
|
||||||
/* Define to the home page for this package. */
|
|
||||||
#undef PACKAGE_URL
|
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
|
||||||
#undef PACKAGE_VERSION
|
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
|
||||||
#undef STDC_HEADERS
|
|
||||||
|
|
||||||
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
|
|
||||||
`char[]'. */
|
|
||||||
#undef YYTEXT_POINTER
|
|
||||||
|
|
||||||
#include <clixon_custom.h>
|
|
||||||
|
|
@ -1,134 +0,0 @@
|
||||||
/* include/clixon_config.h. Generated from clixon_config.h.in by configure. */
|
|
||||||
/* include/clixon_config.h.in. Generated from configure.ac by autoheader. */
|
|
||||||
|
|
||||||
/* Clixon major release */
|
|
||||||
#define CLIXON_VERSION_MAJOR 3
|
|
||||||
|
|
||||||
/* Clixon minor release */
|
|
||||||
#define CLIXON_VERSION_MINOR 3
|
|
||||||
|
|
||||||
/* Clixon path version */
|
|
||||||
#define CLIXON_VERSION_PATCH 2
|
|
||||||
|
|
||||||
/* Clixon version string */
|
|
||||||
#define CLIXON_VERSION_STRING "3.3.2"
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `alphasort' function. */
|
|
||||||
#define HAVE_ALPHASORT 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <cligen/cligen.h> header file. */
|
|
||||||
#define HAVE_CLIGEN_CLIGEN_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <crypt.h> header file. */
|
|
||||||
#define HAVE_CRYPT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <depot.h> header file. */
|
|
||||||
/* #undef HAVE_DEPOT_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `inet_aton' function. */
|
|
||||||
#define HAVE_INET_ATON 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
||||||
#define HAVE_INTTYPES_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `crypt' library (-lcrypt). */
|
|
||||||
#define HAVE_LIBCRYPT 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
|
||||||
#define HAVE_LIBDL 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `fcgi' library (-lfcgi). */
|
|
||||||
#define HAVE_LIBFCGI 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `m' library (-lm). */
|
|
||||||
#define HAVE_LIBM 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
|
||||||
#define HAVE_LIBNSL 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `qdbm' library (-lqdbm). */
|
|
||||||
#define HAVE_LIBQDBM 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `socket' library (-lsocket). */
|
|
||||||
/* #undef HAVE_LIBSOCKET */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <linux/if_vlan.h> header file. */
|
|
||||||
#define HAVE_LINUX_IF_VLAN_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
|
||||||
#define HAVE_MEMORY_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <qdbm/depot.h> header file. */
|
|
||||||
#define HAVE_QDBM_DEPOT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `sigaction' function. */
|
|
||||||
#define HAVE_SIGACTION 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `sigvec' function. */
|
|
||||||
#define HAVE_SIGVEC 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
|
||||||
#define HAVE_STDINT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
||||||
#define HAVE_STDLIB_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
|
||||||
#define HAVE_STRINGS_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <string.h> header file. */
|
|
||||||
#define HAVE_STRING_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strlcpy' function. */
|
|
||||||
/* #undef HAVE_STRLCPY */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strndup' function. */
|
|
||||||
#define HAVE_STRNDUP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strsep' function. */
|
|
||||||
#define HAVE_STRSEP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strverscmp' function. */
|
|
||||||
#define HAVE_STRVERSCMP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
||||||
#define HAVE_SYS_STAT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
||||||
#define HAVE_SYS_TYPES_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ucred.h> header file. */
|
|
||||||
/* #undef HAVE_SYS_UCRED_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
|
||||||
#define HAVE_UNISTD_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `versionsort' function. */
|
|
||||||
#define HAVE_VERSIONSORT 1
|
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
|
||||||
#define PACKAGE_BUGREPORT ""
|
|
||||||
|
|
||||||
/* Define to the full name of this package. */
|
|
||||||
#define PACKAGE_NAME ""
|
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
|
||||||
#define PACKAGE_STRING ""
|
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
|
||||||
#define PACKAGE_TARNAME ""
|
|
||||||
|
|
||||||
/* Define to the home page for this package. */
|
|
||||||
#define PACKAGE_URL ""
|
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
|
||||||
#define PACKAGE_VERSION ""
|
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
|
||||||
#define STDC_HEADERS 1
|
|
||||||
|
|
||||||
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
|
|
||||||
`char[]'. */
|
|
||||||
#define YYTEXT_POINTER 1
|
|
||||||
|
|
||||||
#include <clixon_custom.h>
|
|
||||||
|
|
@ -1835,7 +1835,7 @@ yang_parse_recurse(const char *yang_dir,
|
||||||
if ((nr = yang_parse_find_match(yang_dir, module, fbuf)) < 0)
|
if ((nr = yang_parse_find_match(yang_dir, module, fbuf)) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
if (nr == 0){
|
if (nr == 0){
|
||||||
clicon_err(OE_YANG, errno, "No matching %s yang files found (expected module name or absolute filename)", module);
|
clicon_err(OE_YANG, errno, "No matching %s yang files found in %s (expected module name or absolute filename)", module, yang_dir);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ nacmfile=$dir/nacmfile
|
||||||
cat <<EOF > $cfg
|
cat <<EOF > $cfg
|
||||||
<config>
|
<config>
|
||||||
<CLICON_CONFIGFILE>$cfg</CLICON_CONFIGFILE>
|
<CLICON_CONFIGFILE>$cfg</CLICON_CONFIGFILE>
|
||||||
<CLICON_YANG_DIR>/usr/local/share/clixon</CLICON_YANG_DIR>
|
<CLICON_YANG_DIR>/usr/local/share/example/yang</CLICON_YANG_DIR>
|
||||||
<CLICON_YANG_MODULE_MAIN>$fyang</CLICON_YANG_MODULE_MAIN>
|
<CLICON_YANG_MODULE_MAIN>$fyang</CLICON_YANG_MODULE_MAIN>
|
||||||
<CLICON_CLISPEC_DIR>/usr/local/lib/$APPNAME/clispec</CLICON_CLISPEC_DIR>
|
<CLICON_CLISPEC_DIR>/usr/local/lib/$APPNAME/clispec</CLICON_CLISPEC_DIR>
|
||||||
<CLICON_BACKEND_DIR>/usr/local/lib/$APPNAME/backend</CLICON_BACKEND_DIR>
|
<CLICON_BACKEND_DIR>/usr/local/lib/$APPNAME/backend</CLICON_BACKEND_DIR>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
. ./lib.sh
|
. ./lib.sh
|
||||||
fyang=$dir/ietf-ip.yang
|
fyang=$dir/ietf-ip.yang
|
||||||
|
|
||||||
datastore=datastore_client
|
datastore=../datastore/datastore_client
|
||||||
|
|
||||||
cat <<EOF > $fyang
|
cat <<EOF > $fyang
|
||||||
module ietf-ip{
|
module ietf-ip{
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,6 @@ fi
|
||||||
if [ ! -d $dir/www-data ]; then
|
if [ ! -d $dir/www-data ]; then
|
||||||
err $dir/www-data
|
err $dir/www-data
|
||||||
fi
|
fi
|
||||||
if [ ! -f $dir/usr/local/share/clixon/clixon.mk ]; then
|
|
||||||
err $dir/usr/local/share/clixon/clixon.mk
|
|
||||||
fi
|
|
||||||
if [ ! -f $dir/usr/local/share/clixon/clixon-config* ]; then
|
if [ ! -f $dir/usr/local/share/clixon/clixon-config* ]; then
|
||||||
err $dir/usr/local/share/clixon/clixon-config*
|
err $dir/usr/local/share/clixon/clixon-config*
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ bindir = @bindir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
|
|
||||||
|
CLIXON_DATADIR = @CLIXON_DATADIR@
|
||||||
|
|
||||||
YANGSPECS = clixon-config@2018-04-30.yang
|
YANGSPECS = clixon-config@2018-04-30.yang
|
||||||
YANGSPECS += ietf-netconf@2011-06-01.yang
|
YANGSPECS += ietf-netconf@2011-06-01.yang
|
||||||
YANGSPECS += ietf-netconf-acm@2018-02-14.yang
|
YANGSPECS += ietf-netconf-acm@2018-02-14.yang
|
||||||
|
|
@ -48,22 +50,17 @@ APPNAME = clixon # subdir ehere these files are installed
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
# Note: clixon.mk has a rule for:
|
|
||||||
-include $(DESTDIR)$(datarootdir)/clixon/clixon.mk
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile *~ .depend
|
rm -f Makefile *~ .depend
|
||||||
|
|
||||||
install: $(YANGSPECS)
|
install: $(YANGSPECS)
|
||||||
echo $(DESTDIR)$(datarootdir)/clixon/clixon.mk
|
install -d -m 0755 $(DESTDIR)$(CLIXON_DATADIR)
|
||||||
echo $(DESTDIR)$(clixon_DATADIR)
|
install -m 0644 $(YANGSPECS) $(DESTDIR)$(CLIXON_DATADIR)
|
||||||
install -d -m 0755 $(DESTDIR)$(clixon_DATADIR)
|
|
||||||
install -m 0644 $(YANGSPECS) $(DESTDIR)$(clixon_DATADIR)
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
(cd $(DESTDIR)$(clixon_DATADIR); rm -rf $(YANGSPECS))
|
(cd $(DESTDIR)$(CLIXON_DATADIR); rm -rf *.yang)
|
||||||
|
|
||||||
install-include:
|
install-include:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue