# $FreeBSD: tags/RELEASE_12_1_0/net/routinator/Makefile 513013 2019-09-27 09:35:20Z tobik $

PORTNAME=	routinator
PORTVERSION=	0.5.0
DISTVERSIONPREFIX=	v
PORTREVISION=	2
CATEGORIES=	net

MAINTAINER=	jaap@NLnetLabs.nl
COMMENT=	RPKI signed route collector and validator

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	ring crate not ported to other architectures

RUN_DEPENDS=	rsync:net/rsync

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	NLnetLabs

CARGO_CRATES=	aho-corasick-0.7.4 \
		ansi_term-0.11.0 \
		arc-swap-0.3.11 \
		argon2rs-0.2.5 \
		arrayvec-0.4.11 \
		atty-0.2.13 \
		autocfg-0.1.5 \
		backtrace-0.3.33 \
		backtrace-sys-0.1.31 \
		base64-0.10.1 \
		bcder-0.3.1 \
		bitflags-1.1.0 \
		blake2-rfc-0.2.18 \
		boxfnonce-0.1.1 \
		byteorder-1.3.2 \
		bytes-0.4.12 \
		c2-chacha-0.2.2 \
		cc-1.0.37 \
		cfg-if-0.1.9 \
		chrono-0.4.7 \
		clap-2.33.0 \
		cloudabi-0.0.3 \
		constant_time_eq-0.1.3 \
		crossbeam-deque-0.7.1 \
		crossbeam-epoch-0.7.1 \
		crossbeam-queue-0.1.2 \
		crossbeam-utils-0.6.5 \
		daemonize-0.4.1 \
		derive_more-0.14.1 \
		derive_more-0.15.0 \
		dirs-2.0.1 \
		dirs-sys-0.3.3 \
		either-1.5.2 \
		encoding_rs-0.8.17 \
		error-chain-0.11.0 \
		failure-0.1.5 \
		failure_derive-0.1.5 \
		fern-0.5.8 \
		fnv-1.0.6 \
		fuchsia-cprng-0.1.1 \
		fuchsia-zircon-0.3.3 \
		fuchsia-zircon-sys-0.3.3 \
		futures-0.1.28 \
		futures-cpupool-0.1.8 \
		getrandom-0.1.6 \
		h2-0.1.25 \
		http-0.1.17 \
		http-body-0.1.0 \
		httparse-1.3.4 \
		hyper-0.12.33 \
		indexmap-1.0.2 \
		iovec-0.1.2 \
		itoa-0.4.4 \
		json-0.11.14 \
		kernel32-sys-0.2.2 \
		lazy_static-1.3.0 \
		libc-0.2.60 \
		listenfd-0.3.3 \
		lock_api-0.1.5 \
		log-0.4.7 \
		log-reroute-0.1.2 \
		memchr-2.2.1 \
		memoffset-0.2.1 \
		mio-0.6.19 \
		mio-uds-0.6.7 \
		miow-0.2.1 \
		net2-0.2.33 \
		nodrop-0.1.13 \
		num-integer-0.1.41 \
		num-traits-0.2.8 \
		num_cpus-1.10.1 \
		once_cell-0.1.8 \
		owning_ref-0.4.0 \
		parking_lot-0.7.1 \
		parking_lot_core-0.4.0 \
		ppv-lite86-0.2.5 \
		proc-macro2-0.4.30 \
		quick-xml-0.15.0 \
		quote-0.6.13 \
		rand-0.6.5 \
		rand-0.7.0 \
		rand_chacha-0.1.1 \
		rand_chacha-0.2.0 \
		rand_core-0.3.1 \
		rand_core-0.4.0 \
		rand_core-0.5.0 \
		rand_hc-0.1.0 \
		rand_hc-0.2.0 \
		rand_isaac-0.1.1 \
		rand_jitter-0.1.4 \
		rand_os-0.1.3 \
		rand_pcg-0.1.2 \
		rand_xorshift-0.1.1 \
		rdrand-0.4.0 \
		redox_syscall-0.1.56 \
		redox_users-0.3.0 \
		regex-1.1.9 \
		regex-syntax-0.6.8 \
		remove_dir_all-0.5.2 \
		ring-0.14.6 \
		rpki-0.5.0 \
		rustc-demangle-0.1.15 \
		rustc_version-0.2.3 \
		scoped_threadpool-0.1.9 \
		scopeguard-0.3.3 \
		semver-0.9.0 \
		semver-parser-0.7.0 \
		serde-1.0.97 \
		serde_derive-1.0.97 \
		slab-0.4.2 \
		smallvec-0.6.10 \
		spin-0.5.0 \
		stable_deref_trait-1.1.1 \
		string-0.2.1 \
		strsim-0.8.0 \
		syn-0.15.39 \
		synstructure-0.10.2 \
		syslog-4.0.1 \
		tempfile-3.1.0 \
		textwrap-0.11.0 \
		thread_local-0.3.6 \
		time-0.1.42 \
		tokio-0.1.22 \
		tokio-buf-0.1.1 \
		tokio-codec-0.1.1 \
		tokio-current-thread-0.1.6 \
		tokio-executor-0.1.8 \
		tokio-fs-0.1.6 \
		tokio-io-0.1.12 \
		tokio-reactor-0.1.9 \
		tokio-sync-0.1.6 \
		tokio-tcp-0.1.3 \
		tokio-threadpool-0.1.15 \
		tokio-timer-0.2.11 \
		tokio-udp-0.1.3 \
		tokio-uds-0.2.5 \
		toml-0.5.1 \
		try-lock-0.2.2 \
		ucd-util-0.1.3 \
		unicode-width-0.1.5 \
		unicode-xid-0.1.0 \
		untrusted-0.6.2 \
		unwrap-1.2.1 \
		utf8-ranges-1.0.3 \
		uuid-0.6.5 \
		uuid-0.7.4 \
		vec_map-0.8.1 \
		want-0.2.0 \
		winapi-0.2.8 \
		winapi-0.3.7 \
		winapi-build-0.1.1 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		ws2_32-sys-0.2.1

PLIST_FILES=	bin/routinator \
		man/man1/routinator.1.gz

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/routinator
	${INSTALL_MAN} ${WRKSRC}/doc/routinator.1 ${STAGEDIR}${PREFIX}/man/man1/

.include <bsd.port.mk>
