devel/clixon: Update to 5.6.0

Added new OPTIONS to let users to enable/disable restconf and if
enabled, chose between embedded one or fcgi

Approved by:	Dave Cornejo <dcornejo@netgate.com> (maintainer)
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Renato Botelho 2022-04-08 08:44:10 -03:00
parent 0206d84e8e
commit b7b4ae443f
3 changed files with 70 additions and 34 deletions

View file

@ -1,5 +1,5 @@
PORTNAME= clixon
PORTVERSION= 4.8.0
PORTVERSION= 5.6.0
CATEGORIES= devel
MAINTAINER= dcornejo@netgate.com
@ -8,27 +8,45 @@ COMMENT= YANG-based toolchain including CLI, NETCONF and RESTCONF interfaces
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libcligen.so:devel/cligen \
libfcgi.so:www/fcgi
BUILD_DEPENDS= cligen>=4.8.0:devel/cligen
#LIB_DEPENDS= libfcgi.so:www/fcgi
BUILD_DEPENDS= cligen>=5.6.0:devel/cligen \
nghttp2>=0:www/nghttp2
RUN_DEPENDS= cligen>=5.6.0:devel/cligen \
nghttp2>=0:www/nghttp2
USES= autoreconf bison compiler:c11 gmake
USES= bison compiler:c11 gmake
USE_GITHUB= yes
GH_ACCOUNT= clicon
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= clicon
MAKE_ARGS= wwwdir=${PREFIX}/sbin \
wwwuser=${WWWOWN}
GROUPS= clixon
USERS= clixon
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${ETCDIR} \
--with-cligen=${LOCALBASE}
CONFIGURE_ENV= YACC="bison -y"
MAKE_ARGS= wwwdir=${PREFIX}/sbin \
wwwuser=${WWWOWN}
SUB_FILES= pkg-message
USERS= clixon
GROUPS= clixon
OPTIONS_DEFAULT= NATIVE
OPTIONS_SINGLE= RESTCONF
OPTIONS_SINGLE_RESTCONF= NATIVE FCGI OFF
OPTIONS_SUB= yes
FCGI_DESC= FCGI interface for stand-alone web rev-proxy (eg nginx)
NATIVE_DESC= Use embedded web server
OFF_DESC= Disable restconf
FCGI_LIB_DEPENDS= libfcgi.so:www/fcgi
FCGI_CONFIGURE_ON= --with-restconf=fcgi
NATIVE_BUILD_DEPENDS= nghttp2>=0:www/nghttp2
NATIVE_RUN_DEPENDS= nghttp2>=0:www/nghttp2
NATIVE_CONFIGURE_ON= --with-restconf=native
OFF_CONFIGURE_ON= --without-restconf
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1606784428
SHA256 (clicon-clixon-4.8.0_GH0.tar.gz) = 9691e1387af144e30df730c420097b12edaae87b8fcd54183160b26ac6fd07e9
SIZE (clicon-clixon-4.8.0_GH0.tar.gz) = 1187697
TIMESTAMP = 1649416117
SHA256 (clicon-clixon-5.6.0_GH0.tar.gz) = 19d1847a49ffb947b492c4e535704492aabd670cc7cc431f99aeb075c79e8f59
SIZE (clicon-clixon-5.6.0_GH0.tar.gz) = 1410229

View file

@ -1,14 +1,20 @@
bin/clixon_cli
bin/clixon_netconf
%%ETCDIR%%/clixonrc
include/clixon/cli_autocli.h
include/clixon/cli_generate.h
include/clixon/clixon.h
include/clixon/clixon_backend.h
include/clixon/clixon_backend_commit.h
include/clixon/clixon_backend_handle.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_dispatcher.h
include/clixon/clixon_err.h
include/clixon/clixon_err_string.h
include/clixon/clixon_event.h
@ -20,15 +26,16 @@ include/clixon/clixon_log.h
include/clixon/clixon_nacm.h
include/clixon/clixon_netconf.h
include/clixon/clixon_netconf_lib.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_sha1.h
%%NO_OFF%%include/clixon/clixon_restconf.h
include/clixon/clixon_sig.h
include/clixon/clixon_stream.h
include/clixon/clixon_string.h
@ -45,37 +52,48 @@ 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_type.h
lib/libclixon.so
lib/libclixon.so.4
lib/libclixon.so.4.8
lib/libclixon.so.5
lib/libclixon.so.5.6
lib/libclixon_backend.so
lib/libclixon_backend.so.4
lib/libclixon_backend.so.4.8
lib/libclixon_backend.so.5
lib/libclixon_backend.so.5.6
lib/libclixon_cli.so
lib/libclixon_cli.so.4
lib/libclixon_cli.so.4.8
lib/libclixon_cli.so.5
lib/libclixon_cli.so.5.6
lib/libclixon_netconf.so
lib/libclixon_netconf.so.4
lib/libclixon_netconf.so.4.8
lib/libclixon_restconf.so
lib/libclixon_restconf.so.4
lib/libclixon_restconf.so.4.8
lib/libclixon_netconf.so.5
lib/libclixon_netconf.so.5.6
%%NO_OFF%%lib/libclixon_restconf.so
%%NO_OFF%%lib/libclixon_restconf.so.5
%%NO_OFF%%lib/libclixon_restconf.so.5.6
sbin/clixon_backend
sbin/clixon_restconf
%%DATADIR%%/clixon-config@2020-10-01.yang
%%DATADIR%%/clixon-lib@2020-04-23.yang
%%NO_OFF%%sbin/clixon_restconf
%%DATADIR%%/clixon-autocli@2022-02-11.yang
%%DATADIR%%/clixon-config@2022-02-11.yang
%%DATADIR%%/clixon-lib@2021-12-05.yang
%%DATADIR%%/clixon-restconf@2021-05-20.yang
%%DATADIR%%/clixon-rfc5277@2008-07-01.yang
%%DATADIR%%/clixon-xml-changelog@2019-03-21.yang
%%DATADIR%%/ietf-inet-types@2013-07-15.yang
%%DATADIR%%/ietf-datastores@2018-02-14.yang
%%DATADIR%%/ietf-inet-types@2021-02-22.yang
%%DATADIR%%/ietf-list-pagination-nc@2021-10-25.yang
%%DATADIR%%/ietf-list-pagination@2021-10-25.yang
%%DATADIR%%/ietf-netconf-acm@2018-02-14.yang
%%DATADIR%%/ietf-netconf-nmda@2019-01-07.yang
%%DATADIR%%/ietf-netconf-with-defaults@2011-06-01.yang
%%DATADIR%%/ietf-netconf@2011-06-01.yang
%%DATADIR%%/ietf-origin@2018-02-14.yang
%%DATADIR%%/ietf-restconf-monitoring@2017-01-26.yang
%%DATADIR%%/ietf-restconf@2017-01-26.yang
%%DATADIR%%/ietf-yang-library@2016-06-21.yang
%%DATADIR%%/ietf-yang-library@2019-01-04.yang
%%DATADIR%%/ietf-yang-metadata@2016-08-05.yang
%%DATADIR%%/ietf-yang-patch@2017-02-22.yang
%%DATADIR%%/ietf-yang-types@2013-07-15.yang
@dir lib/clixon/plugins/backend
@dir lib/clixon/plugins/cli