aboutsummaryrefslogtreecommitdiffstats
path: root/net/redpanda-connect/Makefile
blob: 07e52598e2184406d514a7bd14865c71a0b30bd2 (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
PORTNAME=	connect
DISTVERSIONPREFIX=	v
DISTVERSION=	4.65.0
CATEGORIES=	net
PKGNAMEPREFIX=	redpanda-

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Stream processor for a wide array of data sources and sinks
WWW=		https://redpanda.com/blog/redpanda-connect

# RCL license applies to some connectors
LICENSE=	APACHE20 RCL
LICENSE_COMB=	multi
LICENSE_NAME_RCL=	Redpanda Community License Agreement
LICENSE_FILE_APACHE20=	${WRKSRC}/licenses/Apache-2.0.txt
LICENSE_FILE_RCL=	${WRKSRC}/licenses/rcl.md
LICENSE_PERMS_RCL=	dist-mirror dist-sell pkg-mirror pkg-sell \
			no-auto-accept
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USES=		go:modules
USE_RC_SUBR=	redpanda_connect

GO_MODULE=	github.com/redpanda-data/connect/v4
GO_TARGET=	./cmd/redpanda-connect

ETCDIR=		${PREFIX}/etc/${PKGNAMEPREFIX}${PORTNAME}

# Redpanda Connect was formerly known as Benthos
USERS=		benthos
GROUPS=		benthos

PLIST_FILES=	"@dir(,,755) %%ETCDIR%%" \
		"@sample %%ETCDIR%%/config.yaml.sample" \
		bin/redpanda-connect

OPTIONS_DEFINE=		ENTERPRISE
ENTERPRISE_DESC=	Enable connectors under the RCL license

.include <bsd.port.options.mk>

.if !${PORT_OPTIONS:MENTERPRISE}
EXTRA_PATCHES=	${FILESDIR}/extra-patch-public_components_all_package.go
.endif

.include <bsd.port.pre.mk>

post-install:
	@${MKDIR} ${STAGEDIR}${ETCDIR}
	${INSTALL_DATA} ${FILESDIR}/config.yaml ${STAGEDIR}${ETCDIR}/config.yaml.sample

.include <bsd.port.post.mk>