pkgsrc-WIP-changes archive

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

Add a package for clixon-controller version 1.1.0.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Tue Sep 17 17:05:53 2024 +0000
Changeset:	03088b9ead2ee9c8365449c13f18f5a68a4dc15f

Added Files:
	clixon-controller/DESCR
	clixon-controller/Makefile
	clixon-controller/PLIST
	clixon-controller/distinfo
	clixon-controller/patches/patch-src_Makefile.in

Log Message:
Add a package for clixon-controller version 1.1.0.

The Clixon controller is an open-source manager of network devices
based on NETCONF and YANG.

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

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

diffstat:
 clixon-controller/DESCR                         |  2 ++
 clixon-controller/Makefile                      | 44 +++++++++++++++++++++++++
 clixon-controller/PLIST                         | 20 +++++++++++
 clixon-controller/distinfo                      |  6 ++++
 clixon-controller/patches/patch-src_Makefile.in | 38 +++++++++++++++++++++
 5 files changed, 110 insertions(+)

diffs:
diff --git a/clixon-controller/DESCR b/clixon-controller/DESCR
new file mode 100644
index 0000000000..1995fff324
--- /dev/null
+++ b/clixon-controller/DESCR
@@ -0,0 +1,2 @@
+The Clixon controller is an open-source manager of network devices
+based on NETCONF and YANG.
diff --git a/clixon-controller/Makefile b/clixon-controller/Makefile
new file mode 100644
index 0000000000..8660e3a9ee
--- /dev/null
+++ b/clixon-controller/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD$
+
+DISTNAME=	clixon-controller-1.1.0
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=clicon/}
+GITHUB_PROJECT=	clixon-controller
+DISTFILES=	${PKGNAME_NOREV}.tar.gz
+
+MAINTAINER=	he%NetBSD.org@localhost
+HOMEPAGE=	https://www.clicon.org/
+COMMENT=	Manager of network devices based on Netconf/YANG
+LICENSE=	apache-2.0
+
+USE_LANGUAGES=	c
+GNU_CONFIGURE=	yes
+
+USE_TOOLS+=	gmake
+
+CLIXON_USER?=	clixon
+CLIXON_GROUP?=	clixon
+
+EGDIR=			share/examples/${PKGBASE}
+INSTALLATION_DIRS+=	${EGDIR}
+INSTALLATION_DIRS+=	etc/clixon
+INSTALLATION_DIRS+=	etc/clixon/controller
+CONF_FILES+=		${EGDIR}/controller.xml \
+			${PKG_SYSCONFDIR}/clixon/controller.xml
+CONF_FILES+=		${EGDIR}/autocli.xml \
+			${PKG_SYSCONFDIR}/clixon/controller/autocli.xml
+
+CONFIGURE_ARGS+=	--with-cligen=${BUILDLINK_PREFIX.cligen}
+CONFIGURE_ARGS+=	--with-clixon=${BUILDLINK_PREFIX.clixon}
+CONFIGURE_ARGS+=	--with-clicon-user=${CLIXON_USER}
+CONFIGURE_ARGS+=	--with-clicon-group=${CLIXON_GROUP}
+
+post-install:
+	cd ${WRKSRC}/src; \
+		${INSTALL_DATA} controller.xml ${DESTDIR}/${PREFIX}/${EGDIR}; \
+		${INSTALL_DATA} autocli.xml ${DESTDIR}/${PREFIX}/${EGDIR}
+
+.include "../../wip/cligen/buildlink3.mk"
+.include "../../wip/clixon/buildlink3.mk"
+.include "../../wip/clixon-pyapi/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/clixon-controller/PLIST b/clixon-controller/PLIST
new file mode 100644
index 0000000000..e85b51f78a
--- /dev/null
+++ b/clixon-controller/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD$
+bin/clixon_controller_packages.sh
+bin/clixon_controller_service
+bin/clixon_controller_xpath
+lib/controller/backend/controller_backend.so
+lib/controller/cli/controller_cli.so
+lib/controller/clispec/controller_configure.cli
+lib/controller/clispec/controller_operation.cli
+lib/controller/clispec/controller_pipe.cli
+lib/controller/clispec/controller_pipe_show.cli
+lib/controller/clispec/controller_template_vars.cli
+share/clixon/controller/clixon-controller-config%2023-11-01.yang@localhost
+share/clixon/controller/main/clixon-controller%2024-04-01.yang@localhost
+share/examples/clixon-controller/autocli.xml
+share/examples/clixon-controller/controller.xml
+@pkgdir var/run
+@pkgdir var/controller
+@pkgdir share/clixon/controller/mounts
+@pkgdir share/clixon/controller/modules
+@pkgdir etc/clixon/controller
diff --git a/clixon-controller/distinfo b/clixon-controller/distinfo
new file mode 100644
index 0000000000..53ae0c0b9a
--- /dev/null
+++ b/clixon-controller/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (clixon-controller-1.1.0.tar.gz) = d857643984d0071d74878bb1120f8ce7f5fc7f5e634b55c268b214934b0ad9bd
+SHA512 (clixon-controller-1.1.0.tar.gz) = 3d1c16b32e37c1efcac17e68ad7d8a3b9c1b0c3b8f2004d98fcc002a7971d4d19898fc29c87fd09a5b226718f524de5f8a169a2ec1a727f8ba87b5216ccdec43
+Size (clixon-controller-1.1.0.tar.gz) = 356906 bytes
+SHA1 (patch-src_Makefile.in) = eb52ac4786c8bef7ba1a053c8e23939ab77607e5
diff --git a/clixon-controller/patches/patch-src_Makefile.in b/clixon-controller/patches/patch-src_Makefile.in
new file mode 100644
index 0000000000..55d8367109
--- /dev/null
+++ b/clixon-controller/patches/patch-src_Makefile.in
@@ -0,0 +1,38 @@
+$NetBSD$
+
+Don't install/overwrite config files.
+Config files handled by pkg Makefile.
+
+--- src/Makefile.in.orig	2024-07-03 04:45:05.000000000 +0000
++++ src/Makefile.in
+@@ -30,6 +30,8 @@ sysconfdir      = @sysconfdir@
+ localstatedir   = @localstatedir@
+ libdir          = @exec_prefix@/lib
+ version         = @CONTROLLER_VERSION@
++clicon_user	= @CLICON_USER@
++clicon_group	= @CLICON_GROUP@
+ 
+ APPNAME	        = controller
+ 
+@@ -113,8 +115,8 @@ distclean: clean
+ install: $(CLISPECS) $(PLUGINS) $(APPNAME).xml autocli.xml
+ 	install -d -m 0755 $(DESTDIR)$(sysconfdir)/clixon
+ 	install -d -m 0755 $(DESTDIR)$(sysconfdir)/clixon/$(APPNAME)
+-	install -m 0644 $(APPNAME).xml $(DESTDIR)$(sysconfdir)/clixon
+-	install -m 0644 autocli.xml $(DESTDIR)$(sysconfdir)/clixon/$(APPNAME)
++#	install -m 0644 $(APPNAME).xml $(DESTDIR)$(sysconfdir)/clixon
++#	install -m 0644 autocli.xml $(DESTDIR)$(sysconfdir)/clixon/$(APPNAME)
+ 	install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)
+ 	install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)/clispec
+ 	install -d -m 0755 $(DESTDIR)$(libdir)/$(APPNAME)/backend
+@@ -125,8 +127,8 @@ install: $(CLISPECS) $(PLUGINS) $(APPNAM
+ 	install -m 0644 $(INSTALLFLAGS) $(BE_PLUGIN) $(DESTDIR)$(libdir)/$(APPNAME)/backend
+ 	install -m 0644 $(INSTALLFLAGS) $(CLI_PLUGIN) $(DESTDIR)$(libdir)/$(APPNAME)/cli
+ 	install -d -m 0755 $(DESTDIR)$(datarootdir)/clixon/controller/mounts # See YANG_SCHEMA_MOUNT_DIR
+-	install -d -m 0755 -g clicon $(DESTDIR)$(localstatedir)/run # for pidfiles
+-	install -d -m 0755 -o clicon -g clicon $(DESTDIR)$(datarootdir)/clixon/controller/modules/
++	install -d -m 0755 -g $(clicon_group) $(DESTDIR)$(localstatedir)/run # for pidfiles
++	install -d -m 0755 -o $(clicon_user) -g $(clicon_group) $(DESTDIR)$(datarootdir)/clixon/controller/modules/
+ 
+ uninstall:
+ 	rm -f $(DESTDIR)$(sysconfdir)/clixon/$(APPNAME).xml


Home | Main Index | Thread Index | Old Index