aboutsummaryrefslogtreecommitdiff
path: root/devel/clixon/Makefile
blob: 16eb4110a21ae7483a71a23c7c8cb96f8a00d67f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PORTNAME=	clixon
PORTVERSION=	5.8.0
CATEGORIES=	devel

MAINTAINER=	dave@dogwood.com
COMMENT=	YANG-based toolchain including CLI, NETCONF and RESTCONF interfaces
WWW=		https://www.clicon.org/

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

PLIST_SUB=	LIBMAJORVERSION=${PORTVERSION:R:R} \
		LIBVERSION=${PORTVERSION:R}

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>