summaryrefslogtreecommitdiff
path: root/net/boringtun/Makefile
blob: 9c63228eccd2207c862030f4dd575574ffd99e08 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $FreeBSD$

PORTNAME=	boringtun
DISTVERSIONPREFIX=	v
DISTVERSION=	0.2.0
PORTREVISION=	5
CATEGORIES=	net

PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES=	b10df0ef427cea425f6eeedb372da372055de308.patch:-p1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	CloudFlares Userspace WireGuard implementation in Rust

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.md

IGNORE=		has unclear project status because the only release was \
		silently deleted upstream
DEPRECATED=	Status of the project and motivation is unclear
EXPIRATION_DATE=	2020-04-30

RUN_DEPENDS=	wg-quick:net/wireguard

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	cloudflare

CARGO_CRATES=	ascii-0.9.1 \
		autocfg-0.1.2 \
		backtrace-0.3.14 \
		backtrace-sys-0.1.28 \
		base64-0.9.3 \
		bitflags-1.0.4 \
		boxfnonce-0.1.1 \
		byteorder-1.3.1 \
		cc-1.0.30 \
		cesu8-1.1.0 \
		cfg-if-0.1.7 \
		chrono-0.4.6 \
		clap-2.32.0 \
		combine-3.6.7 \
		daemonize-0.4.1 \
		either-1.5.1 \
		error-chain-0.12.0 \
		hex-0.3.2 \
		jni-0.10.2 \
		jni-sys-0.3.0 \
		lazy_static-1.3.0 \
		libc-0.2.50 \
		log-0.4.6 \
		memchr-2.2.0 \
		num-integer-0.1.39 \
		num-traits-0.2.6 \
		redox_syscall-0.1.51 \
		ring-0.14.6 \
		rustc-demangle-0.1.13 \
		safemem-0.3.0 \
		same-file-1.0.4 \
		spin-0.5.0 \
		strsim-0.7.0 \
		textwrap-0.10.0 \
		time-0.1.42 \
		unicode-width-0.1.5 \
		unreachable-1.0.0 \
		untrusted-0.6.2 \
		void-1.0.2 \
		walkdir-2.2.7 \
		winapi-0.3.6 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.2 \
		winapi-x86_64-pc-windows-gnu-0.4.0

PLIST_FILES=	bin/${PORTNAME}

post-patch:
	${MV} ${WRKSRC}/src/device/tun_darwin.rs ${WRKSRC}/src/device/tun_bsd.rs

.include <bsd.port.mk>