pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add a package for clixon version 7.1.0.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Tue Sep 17 12:52:50 2024 +0000
Changeset:	d31d0e046916a8ba2ec4f75f9f17572be96da27b

Added Files:
	clixon/DESCR
	clixon/Makefile
	clixon/PLIST
	clixon/distinfo
	clixon/patches/patch-configure.ac
	clixon/patches/patch-etc_Makefile.in
	clixon/patches/patch-lib_clixon_clixon__datastore.h
	clixon/patches/patch-lib_src_clixon__proc.c

Log Message:
Add a package for clixon version 7.1.0.

Clixon is a YANG-based configuration manager, with interactive CLI,
NETCONF and RESTCONF interfaces, an embedded database and transaction
mechanism.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d31d0e046916a8ba2ec4f75f9f17572be96da27b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 clixon/DESCR                                       |   3 +
 clixon/Makefile                                    |  53 ++++++++++
 clixon/PLIST                                       | 107 +++++++++++++++++++++
 clixon/distinfo                                    |   9 ++
 clixon/patches/patch-configure.ac                  |  15 +++
 clixon/patches/patch-etc_Makefile.in               |  25 +++++
 .../patches/patch-lib_clixon_clixon__datastore.h   |  15 +++
 clixon/patches/patch-lib_src_clixon__proc.c        |  16 +++
 8 files changed, 243 insertions(+)

diffs:
diff --git a/clixon/DESCR b/clixon/DESCR
new file mode 100644
index 0000000000..35dd051885
--- /dev/null
+++ b/clixon/DESCR
@@ -0,0 +1,3 @@
+Clixon is a YANG-based configuration manager, with interactive CLI,
+NETCONF and RESTCONF interfaces, an embedded database and transaction
+mechanism.
diff --git a/clixon/Makefile b/clixon/Makefile
new file mode 100644
index 0000000000..aab3af7ae8
--- /dev/null
+++ b/clixon/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD$
+
+DISTNAME=	clixon-7.1.0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=clicon/}
+GITHUB_PROJECT=	clixon
+DISTFILES+=	${PKGNAME_NOREV}.tar.gz
+
+MAINTAINER=	he%NetBSD.org@localhost
+HOMEPAGE=	https://www.clicon.org/
+COMMENT=	YANG-based configuration manager
+LICENSE=	apache-2.0 OR gnu-gpl-v2
+
+USE_LANGUAGES=	c
+GNU_CONFIGURE=	yes
+
+USE_TOOLS+=	gmake bison autoconf
+
+CLIXON_USER?=	clixon
+CLIXON_GROUP?=	clixon
+
+PKG_USERS=		${CLIXON_USER}:${CLIXON_GROUP}
+PKG_GROUPS=		${CLIXON_GROUP}
+PKG_USERS_VARS+=	CLIXON_USER
+PKG_GROUPS_VARS+=	CLIXON_GROUP
+
+# Material for options.mk...:
+#CONFIGURE_ARGS+=	--with-restconf=fcgi
+#.include "../../www/fcgi/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-restconf=native
+#CONFIGURE_ARGS+=	--without-restconf
+
+# Don't pick these from the PATH in the build scaffolding...
+CONFIGURE_ENV+=	GREP=/usr/bin/grep
+CONFIGURE_ENV+=	TAIL_BIN=/usr/bin/tail
+CONFIGURE_ENV+=	WC_BIN=/usr/bin/wc
+CONFIGURE_ENV+=	CAT_BIN=/bin/cat
+
+EGDIR=		share/examples/${PKGBASE}
+CONF_FILES+=	${EGDIR}/clixonrc ${PKG_SYSCONFDIR}/clixonrc
+
+INSTALLATION_DIRS+=	${EGDIR}
+
+pre-configure:
+	cd ${WRKSRC} && autoconf
+
+post-install:
+	cd ${WRKSRC}/etc; \
+		${INSTALL_DATA} clixonrc ${DESTDIR}/${PREFIX}/${EGDIR}
+
+.include "../../wip/cligen/buildlink3.mk"
+.include "../../www/nghttp2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/clixon/PLIST b/clixon/PLIST
new file mode 100644
index 0000000000..36e41c3b8d
--- /dev/null
+++ b/clixon/PLIST
@@ -0,0 +1,107 @@
+@comment $NetBSD$
+bin/clixon_cli
+bin/clixon_netconf
+include/clixon/cli_autocli.h
+include/clixon/cli_generate.h
+include/clixon/clixon.h
+include/clixon/clixon_backend.h
+include/clixon/clixon_backend_client.h
+include/clixon/clixon_backend_commit.h
+include/clixon/clixon_backend_plugin.h
+include/clixon/clixon_backend_transaction.h
+include/clixon/clixon_cli.h
+include/clixon/clixon_cli_api.h
+include/clixon/clixon_client.h
+include/clixon/clixon_data.h
+include/clixon/clixon_datastore.h
+include/clixon/clixon_debug.h
+include/clixon/clixon_digest.h
+include/clixon/clixon_dispatcher.h
+include/clixon/clixon_err.h
+include/clixon/clixon_err_string.h
+include/clixon/clixon_event.h
+include/clixon/clixon_file.h
+include/clixon/clixon_handle.h
+include/clixon/clixon_hash.h
+include/clixon/clixon_json.h
+include/clixon/clixon_log.h
+include/clixon/clixon_nacm.h
+include/clixon/clixon_netconf.h
+include/clixon/clixon_netconf_input.h
+include/clixon/clixon_netconf_lib.h
+include/clixon/clixon_netconf_monitoring.h
+include/clixon/clixon_netns.h
+include/clixon/clixon_options.h
+include/clixon/clixon_path.h
+include/clixon/clixon_plugin.h
+include/clixon/clixon_proc.h
+include/clixon/clixon_proto.h
+include/clixon/clixon_proto_client.h
+include/clixon/clixon_queue.h
+include/clixon/clixon_regex.h
+include/clixon/clixon_restconf.h
+include/clixon/clixon_sig.h
+include/clixon/clixon_stream.h
+include/clixon/clixon_string.h
+include/clixon/clixon_text_syntax.h
+include/clixon/clixon_uid.h
+include/clixon/clixon_validate.h
+include/clixon/clixon_validate_minmax.h
+include/clixon/clixon_xml.h
+include/clixon/clixon_xml_bind.h
+include/clixon/clixon_xml_changelog.h
+include/clixon/clixon_xml_default.h
+include/clixon/clixon_xml_io.h
+include/clixon/clixon_xml_map.h
+include/clixon/clixon_xml_nsctx.h
+include/clixon/clixon_xml_sort.h
+include/clixon/clixon_xml_vec.h
+include/clixon/clixon_xpath.h
+include/clixon/clixon_xpath_ctx.h
+include/clixon/clixon_xpath_optimize.h
+include/clixon/clixon_xpath_yang.h
+include/clixon/clixon_yang.h
+include/clixon/clixon_yang_module.h
+include/clixon/clixon_yang_parse_lib.h
+include/clixon/clixon_yang_schema_mount.h
+include/clixon/clixon_yang_type.h
+lib/libclixon.so
+lib/libclixon.so.7
+lib/libclixon.so.7.1
+lib/libclixon_backend.so
+lib/libclixon_backend.so.7
+lib/libclixon_backend.so.7.1
+lib/libclixon_cli.so
+lib/libclixon_cli.so.7
+lib/libclixon_cli.so.7.1
+lib/libclixon_restconf.so
+lib/libclixon_restconf.so.7
+lib/libclixon_restconf.so.7.1
+sbin/clixon_backend
+sbin/clixon_restconf
+share/clixon/clixon-autocli%2023-09-01.yang@localhost
+share/clixon/clixon-config%2024-04-01.yang@localhost
+share/clixon/clixon-lib%2024-04-01.yang@localhost
+share/clixon/clixon-restconf%2022-08-01.yang@localhost
+share/clixon/clixon-rfc5277%2008-07-01.yang@localhost
+share/clixon/clixon-xml-changelog%2019-03-21.yang@localhost
+share/clixon/ietf-datastores%2018-02-14.yang@localhost
+share/clixon/ietf-inet-types%2021-02-22.yang@localhost
+share/clixon/ietf-list-pagination-nc%2022-07-24.yang@localhost
+share/clixon/ietf-list-pagination%2022-07-24.yang@localhost
+share/clixon/ietf-netconf-acm%2018-02-14.yang@localhost
+share/clixon/ietf-netconf-monitoring%2010-10-04.yang@localhost
+share/clixon/ietf-netconf-nmda%2019-01-07.yang@localhost
+share/clixon/ietf-netconf-with-defaults%2011-06-01.yang@localhost
+share/clixon/ietf-netconf%2011-06-01.yang@localhost
+share/clixon/ietf-origin%2018-02-14.yang@localhost
+share/clixon/ietf-restconf-monitoring%2017-01-26.yang@localhost
+share/clixon/ietf-restconf%2017-01-26.yang@localhost
+share/clixon/ietf-yang-library%2019-01-04.yang@localhost
+share/clixon/ietf-yang-metadata%2016-08-05.yang@localhost
+share/clixon/ietf-yang-patch%2017-02-22.yang@localhost
+share/clixon/ietf-yang-schema-mount%2019-01-14.yang@localhost
+share/clixon/ietf-yang-types%2013-07-15.yang@localhost
+share/examples/clixon/clixonrc
+@pkgdir lib/clixon/plugins/cli
+@pkgdir lib/clixon/plugins/backend
diff --git a/clixon/distinfo b/clixon/distinfo
new file mode 100644
index 0000000000..9e2ae20055
--- /dev/null
+++ b/clixon/distinfo
@@ -0,0 +1,9 @@
+$NetBSD$
+
+BLAKE2s (clixon-7.1.0.tar.gz) = f330d82961e55010206ae020fa093bca891e9b2ed7e783ccd139b1cf035cc1e4
+SHA512 (clixon-7.1.0.tar.gz) = 604d281474a39ccc7c4b16747c465417e346333dc38d138e6ba8a08bc1b5f266c35f75c6e3779e43ef623ac52efe202552f88f9fc17bb595c2163c463a22a05d
+Size (clixon-7.1.0.tar.gz) = 1698601 bytes
+SHA1 (patch-configure.ac) = 110ebae711864a80ca4d44acea1435ef0c28f3da
+SHA1 (patch-etc_Makefile.in) = 70090dc658aa85037e0ec5e34c47b7ddafa5cebc
+SHA1 (patch-lib_clixon_clixon__datastore.h) = 7ca3c2fdcd626f1a2368128f4faedec6528b1a56
+SHA1 (patch-lib_src_clixon__proc.c) = e10bbf7b5c1fdd96f9bde76734c2c75ae94cb910
diff --git a/clixon/patches/patch-configure.ac b/clixon/patches/patch-configure.ac
new file mode 100644
index 0000000000..94a4bb1a8f
--- /dev/null
+++ b/clixon/patches/patch-configure.ac
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix test for bison, allow "/usr/pkg/bin/bison -y"...
+
+--- configure.ac.orig	2024-09-17 11:36:31.323368820 +0000
++++ configure.ac
+@@ -165,7 +165,7 @@ AC_PATH_PROG(CAT_BIN, cat)
+ AC_DEFINE_UNQUOTED(CAT_BIN, "$CAT_BIN", [cat binary])
+ 
+ # Get "bison" from bison -y or other string
+-if test "$YACC" = "${YACC##bison}" ; then
++if test "$YACC" = "${YACC##*bison}" ; then
+    AC_MSG_ERROR(CLIXON does not find bison.  There are several problems with yacc and byacc. Please install bison. YACC="$YACC")
+ fi
+ # Hardcoded to bison -y, seems to work in all bisons?
diff --git a/clixon/patches/patch-etc_Makefile.in b/clixon/patches/patch-etc_Makefile.in
new file mode 100644
index 0000000000..498c2b3468
--- /dev/null
+++ b/clixon/patches/patch-etc_Makefile.in
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Don't install / overwrite / un-install config file.
+Config file handling in pkg Makefile.
+
+--- etc/Makefile.in.orig	2024-09-17 12:23:58.628894167 +0000
++++ etc/Makefile.in
+@@ -49,14 +49,14 @@ distclean: clean
+ 	rm -f Makefile *~ .depend clixonrc
+ 
+ install:	 clixonrc
+-	install -m 0755 -d $(DESTDIR)$(sysconfdir)
+-	install -m 0644 clixonrc $(DESTDIR)$(sysconfdir)
++#	install -m 0755 -d $(DESTDIR)$(sysconfdir)
++#	install -m 0644 clixonrc $(DESTDIR)$(sysconfdir)
+ 
+ install-include:	
+ 
+ 
+ uninstall:
+-	rm -f $(DESTDIR)$(sysconfdir)/clixonrc
++#	rm -f $(DESTDIR)$(sysconfdir)/clixonrc
+ 
+ depend:
+ 
diff --git a/clixon/patches/patch-lib_clixon_clixon__datastore.h b/clixon/patches/patch-lib_clixon_clixon__datastore.h
new file mode 100644
index 0000000000..05d1662177
--- /dev/null
+++ b/clixon/patches/patch-lib_clixon_clixon__datastore.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add include file to bring "struct timeval" in scope.
+
+--- lib/clixon/clixon_datastore.h.orig	2024-09-17 11:49:43.889641347 +0000
++++ lib/clixon/clixon_datastore.h
+@@ -38,6 +38,8 @@
+ #ifndef _CLIXON_DATASTORE_H
+ #define _CLIXON_DATASTORE_H
+ 
++#include <sys/time.h>	/* struct timeval */
++
+ /*
+  * Types
+  */
diff --git a/clixon/patches/patch-lib_src_clixon__proc.c b/clixon/patches/patch-lib_src_clixon__proc.c
new file mode 100644
index 0000000000..631e40ed1d
--- /dev/null
+++ b/clixon/patches/patch-lib_src_clixon__proc.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Unavailable header file on NetBSD...
+
+--- ./lib/src/clixon_proc.c.orig	2024-09-17 11:46:41.479459341 +0000
++++ ./lib/src/clixon_proc.c
+@@ -105,7 +105,9 @@
+ #include <sys/socket.h>
+ #include <sys/wait.h>
+ #include <sys/param.h>
++#ifndef __NetBSD__
+ #include <sys/user.h>
++#endif
+ #include <sys/time.h>
+ #include <sys/resource.h>
+ 


Home | Main Index | Thread Index | Old Index