summaryrefslogtreecommitdiff
path: root/net-p2p/oura/Makefile
blob: 7e04b9405b2d3b2143c3f04b0fe971282810deef (plain)
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
PORTNAME=		oura
DISTVERSIONPREFIX=	v
DISTVERSION=		1.7.2
PORTREVISION=	2
CATEGORIES=		net-p2p

MAINTAINER=		boris@zfs.ninja
COMMENT=		A pipeline that connects to the tip of a Cardano node
WWW=			https://txpipe.github.io/oura/

LICENSE=		APACHE20
LICENSE_FILE=		${WRKSRC}/LICENSE

NOT_FOR_ARCHS=		i386
NOT_FOR_ARCHS_REASON=	requires AVX on x86

USES=		cargo ssl
USE_GITHUB=	yes
GH_ACCOUNT=	txpipe

USE_RC_SUBR=	oura

CARGO_ENV=	OPENSSL_LIB_DIR=${OPENSSLLIB} OPENSSL_INCLUDE_DIR=${OPENSSLINC}

.sinclude "${.CURDIR}/Makefile.crates"

PLIST_FILES=	bin/oura

post-patch:
		# Remove vendored ssl
		${REINPLACE_CMD} -e 's/^openssl.*/openssl = { version = "0.10", optional = true }/g' \
		${WRKSRC}/Cargo.toml

.include <bsd.port.mk>