freebsd-ports/devel/clixon/Makefile
Renato Botelho b7b4ae443f 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")
2022-04-08 14:09:59 -03:00

52 lines
1.2 KiB
Makefile

PORTNAME= clixon
PORTVERSION= 5.6.0
CATEGORIES= devel
MAINTAINER= dcornejo@netgate.com
COMMENT= YANG-based toolchain including CLI, NETCONF and RESTCONF interfaces
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.md
#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= bison compiler:c11 gmake
USE_GITHUB= yes
GH_ACCOUNT= clicon
USE_LDCONFIG= yes
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>