PORTNAME=	greptimedb
DISTVERSIONPREFIX=	v
DISTVERSION=	0.7.2
CATEGORIES=	databases

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Open-source, cloud-native, distributed time-series database
WWW=		https://greptime.com/ \
		https://github.com/GreptimeTeam/greptimedb

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN=		error[E0635]: unknown feature `stdsimd`, see https://github.com/GreptimeTeam/greptimedb/issues/3656

BUILD_DEPENDS=	gmake:devel/gmake \
		protoc:devel/protobuf \
		rust-nightly>0:lang/rust-nightly \
		${LOCALBASE}/bin/nm:devel/binutils
LIB_DEPENDS=	libzstd.so:archivers/zstd

USES=		cargo
USE_RC_SUBR=	greptimedb

USE_GITHUB=	yes
GH_ACCOUNT=	GreptimeTeam

CARGO_BUILDDEP=	no
CARGO_CRATES=	Inflector-0.11.4 \
		addr2line-0.21.0 \
		adler-1.0.2 \
		adler32-1.2.0 \
		aes-0.8.4 \
		ahash-0.7.7 \
		ahash-0.8.6 \
		aho-corasick-1.1.2 \
		aide-0.9.0 \
		alloc-no-stdlib-2.0.4 \
		alloc-stdlib-0.2.2 \
		allocator-api2-0.2.16 \
		android-tzdata-0.1.1 \
		android_system_properties-0.1.5 \
		anes-0.1.6 \
		ansi_term-0.12.1 \
		anstream-0.6.5 \
		anstyle-1.0.4 \
		anstyle-parse-0.2.3 \
		anstyle-query-1.0.2 \
		anstyle-wincon-3.0.2 \
		anyhow-1.0.76 \
		anymap-1.0.0-beta.2 \
		approx-0.5.1 \
		approx_eq-0.1.8 \
		aquamarine-0.3.3 \
		arbitrary-1.3.2 \
		arc-swap-1.6.0 \
		array-init-2.1.0 \
		arrayref-0.3.7 \
		arrayvec-0.7.4 \
		arrow-47.0.0 \
		arrow-arith-47.0.0 \
		arrow-array-47.0.0 \
		arrow-buffer-47.0.0 \
		arrow-cast-47.0.0 \
		arrow-csv-47.0.0 \
		arrow-data-47.0.0 \
		arrow-flight-47.0.0 \
		arrow-ipc-47.0.0 \
		arrow-json-47.0.0 \
		arrow-ord-47.0.0 \
		arrow-row-47.0.0 \
		arrow-schema-47.0.0 \
		arrow-select-47.0.0 \
		arrow-string-47.0.0 \
		ascii-1.1.0 \
		ascii-canvas-3.0.0 \
		async-channel-1.9.0 \
		async-compression-0.3.15 \
		async-compression-0.4.5 \
		async-lock-2.8.0 \
		async-recursion-1.0.5 \
		async-stream-0.3.5 \
		async-stream-impl-0.3.5 \
		async-trait-0.1.75 \
		asynchronous-codec-0.7.0 \
		atoi-1.0.0 \
		atomic-0.5.3 \
		atty-0.2.14 \
		auto_impl-1.1.0 \
		auto_ops-0.3.0 \
		autocfg-1.1.0 \
		autotools-0.2.6 \
		axum-0.6.20 \
		axum-core-0.3.4 \
		axum-macros-0.3.8 \
		axum-test-helper-0.3.0 \
		backon-0.4.1 \
		backtrace-0.3.69 \
		base64-0.13.1 \
		base64-0.21.5 \
		base64-0.22.0 \
		base64ct-1.6.0 \
		bcder-0.7.3 \
		bigdecimal-0.4.2 \
		bincode-1.3.3 \
		bindgen-0.69.1 \
		bit-set-0.5.3 \
		bit-vec-0.6.3 \
		bitflags-1.3.2 \
		bitflags-2.4.1 \
		bitvec-1.0.1 \
		blake2-0.10.6 \
		blake3-1.5.0 \
		block-buffer-0.10.4 \
		block-padding-0.3.3 \
		borsh-1.3.0 \
		borsh-derive-1.3.0 \
		brotli-3.4.0 \
		brotli-decompressor-2.5.1 \
		bstr-0.2.17 \
		btoi-0.4.3 \
		build-data-0.1.5 \
		bumpalo-3.14.0 \
		bytecheck-0.6.11 \
		bytecheck_derive-0.6.11 \
		bytecount-0.6.7 \
		bytemuck-1.14.0 \
		byteorder-1.5.0 \
		bytes-1.5.0 \
		bzip2-0.4.4 \
		bzip2-sys-0.1.11+1.0.8 \
		c2rust-bitfields-0.3.0 \
		c2rust-bitfields-derive-0.2.1 \
		cactus-1.0.6 \
		camino-1.1.6 \
		cargo-platform-0.1.5 \
		cargo_metadata-0.14.2 \
		caseless-0.2.1 \
		cast-0.3.0 \
		cbc-0.1.2 \
		cc-1.0.83 \
		cc-traits-2.0.0 \
		cesu8-1.1.0 \
		cexpr-0.6.0 \
		cfg-if-0.1.10 \
		cfg-if-1.0.0 \
		cfg_aliases-0.1.1 \
		cfgrammar-0.12.0 \
		chrono-0.4.33 \
		chrono-tz-0.8.4 \
		chrono-tz-build-0.2.1 \
		chunked_transfer-1.5.0 \
		ciborium-0.2.1 \
		ciborium-io-0.2.1 \
		ciborium-ll-0.2.1 \
		cipher-0.4.4 \
		clang-sys-1.6.1 \
		clap-2.34.0 \
		clap-3.2.25 \
		clap-4.4.11 \
		clap_builder-4.4.11 \
		clap_derive-4.4.7 \
		clap_lex-0.2.4 \
		clap_lex-0.6.0 \
		clipboard-win-4.5.0 \
		cmake-0.1.50 \
		colorchoice-1.0.0 \
		combine-4.6.6 \
		comfy-table-7.1.0 \
		comma-1.0.0 \
		concurrent-queue-2.4.0 \
		config-0.13.4 \
		console-0.15.7 \
		console-api-0.5.0 \
		console-subscriber-0.1.10 \
		const-oid-0.7.1 \
		const-oid-0.9.6 \
		const-random-0.1.17 \
		const-random-macro-0.1.16 \
		constant_time_eq-0.3.0 \
		core-foundation-0.9.4 \
		core-foundation-sys-0.8.6 \
		cpp_demangle-0.4.3 \
		cpufeatures-0.2.11 \
		crc-3.0.1 \
		crc-catalog-2.4.0 \
		crc32c-0.6.4 \
		crc32fast-1.3.2 \
		criterion-0.4.0 \
		criterion-plot-0.5.0 \
		crossbeam-0.8.3 \
		crossbeam-channel-0.5.10 \
		crossbeam-deque-0.8.4 \
		crossbeam-epoch-0.9.17 \
		crossbeam-queue-0.3.10 \
		crossbeam-utils-0.8.18 \
		crunchy-0.2.2 \
		crypto-bigint-0.3.2 \
		crypto-common-0.1.6 \
		csv-1.3.0 \
		csv-core-0.1.11 \
		darling-0.14.4 \
		darling-0.20.3 \
		darling_core-0.14.4 \
		darling_core-0.20.3 \
		darling_macro-0.14.4 \
		darling_macro-0.20.3 \
		dashmap-5.5.3 \
		data-encoding-2.5.0 \
		debugid-0.8.0 \
		der-0.5.1 \
		der-0.7.8 \
		deranged-0.3.10 \
		derive-new-0.5.9 \
		derive-new-0.6.0 \
		derive_arbitrary-1.3.2 \
		derive_builder-0.11.2 \
		derive_builder-0.12.0 \
		derive_builder_core-0.11.2 \
		derive_builder_core-0.12.0 \
		derive_builder_macro-0.11.2 \
		derive_builder_macro-0.12.0 \
		diff-0.1.13 \
		difference-2.0.0 \
		difflib-0.4.0 \
		digest-0.10.7 \
		dirs-3.0.2 \
		dirs-4.0.0 \
		dirs-next-2.0.0 \
		dirs-sys-0.3.7 \
		dirs-sys-next-0.1.2 \
		dlv-list-0.3.0 \
		dlv-list-0.5.2 \
		dns-lookup-1.0.8 \
		doc-comment-0.3.3 \
		dotenv-0.15.0 \
		dotenvy-0.15.7 \
		downcast-0.11.0 \
		dyn-clone-1.0.16 \
		either-1.9.0 \
		ena-0.14.2 \
		encode_unicode-0.3.6 \
		encoding_rs-0.8.33 \
		endian-type-0.1.2 \
		enum-iterator-1.4.1 \
		enum-iterator-derive-1.2.1 \
		enum_dispatch-0.3.12 \
		equivalent-1.0.1 \
		erased-serde-0.4.1 \
		errno-0.3.8 \
		error-chain-0.12.4 \
		error-code-2.3.1 \
		etcd-client-0.12.3 \
		event-listener-2.5.3 \
		exitcode-1.1.2 \
		fail-0.5.1 \
		fallible-iterator-0.2.0 \
		fallible-streaming-iterator-0.1.9 \
		fastrand-1.9.0 \
		fastrand-2.0.1 \
		fd-lock-3.0.13 \
		filetime-0.2.23 \
		findshlibs-0.10.2 \
		finl_unicode-1.2.0 \
		fixedbitset-0.4.2 \
		flagset-0.4.4 \
		flatbuffers-23.5.26 \
		flate2-1.0.28 \
		float-cmp-0.9.0 \
		fnv-1.0.7 \
		form_urlencoded-1.2.1 \
		format_num-0.1.0 \
		fragile-2.0.0 \
		frunk-0.4.2 \
		frunk_core-0.4.2 \
		frunk_derives-0.4.2 \
		frunk_proc_macro_helpers-0.1.2 \
		frunk_proc_macros-0.1.2 \
		fs2-0.4.3 \
		fsevent-sys-4.1.0 \
		fst-0.4.7 \
		funty-2.0.0 \
		futures-0.3.30 \
		futures-channel-0.3.30 \
		futures-core-0.3.30 \
		futures-executor-0.3.30 \
		futures-intrusive-0.4.2 \
		futures-io-0.3.30 \
		futures-macro-0.3.30 \
		futures-sink-0.3.30 \
		futures-task-0.3.30 \
		futures-timer-3.0.2 \
		futures-util-0.3.30 \
		generic-array-0.14.7 \
		gethostname-0.2.3 \
		getopts-0.2.21 \
		getrandom-0.2.11 \
		getset-0.1.2 \
		gimli-0.28.1 \
		git2-0.18.1 \
		glob-0.3.1 \
		h2-0.3.26 \
		half-1.8.2 \
		half-2.3.1 \
		hashbrown-0.12.3 \
		hashbrown-0.13.2 \
		hashbrown-0.14.3 \
		hashlink-0.8.4 \
		hdrhistogram-7.5.4 \
		headers-0.3.9 \
		headers-core-0.2.0 \
		heck-0.4.1 \
		hermit-abi-0.1.19 \
		hermit-abi-0.3.3 \
		hex-0.4.3 \
		hexf-parse-0.2.1 \
		hkdf-0.12.4 \
		hmac-0.12.1 \
		home-0.5.9 \
		hostname-0.3.1 \
		html-escape-0.2.13 \
		http-0.2.11 \
		http-body-0.4.6 \
		http-range-header-0.3.1 \
		httparse-1.8.0 \
		httpdate-1.0.3 \
		human-panic-1.2.2 \
		humantime-2.1.0 \
		humantime-serde-1.1.1 \
		hydroflow-0.5.0 \
		hydroflow_datalog-0.5.0 \
		hydroflow_datalog_core-0.5.0 \
		hydroflow_lang-0.5.0 \
		hydroflow_macro-0.5.0 \
		hyper-0.14.28 \
		hyper-rustls-0.24.2 \
		hyper-timeout-0.4.1 \
		iana-time-zone-0.1.58 \
		iana-time-zone-haiku-0.1.2 \
		ident_case-1.0.1 \
		idna-0.5.0 \
		if_chain-1.0.2 \
		include_dir-0.7.3 \
		include_dir_macros-0.7.3 \
		indexmap-1.9.3 \
		indexmap-2.1.0 \
		indicatif-0.17.7 \
		indoc-1.0.9 \
		inferno-0.11.19 \
		inotify-0.9.6 \
		inotify-sys-0.1.5 \
		inout-0.1.3 \
		instant-0.1.12 \
		integer-encoding-3.0.4 \
		integer-encoding-4.0.0 \
		inventory-0.3.14 \
		io-lifetimes-1.0.11 \
		ipnet-2.9.0 \
		iri-string-0.7.0 \
		is-macro-0.2.2 \
		is-terminal-0.4.9 \
		itertools-0.10.5 \
		itertools-0.11.0 \
		itertools-0.12.0 \
		itoa-1.0.10 \
		jni-0.21.1 \
		jni-sys-0.3.0 \
		jobserver-0.1.27 \
		js-sys-0.3.66 \
		json5-0.4.1 \
		jsonwebtoken-9.2.0 \
		keccak-0.1.4 \
		keyed_priority_queue-0.4.2 \
		kqueue-1.0.8 \
		kqueue-sys-1.0.4 \
		lalrpop-0.19.12 \
		lalrpop-util-0.19.12 \
		lattices-0.5.0 \
		lazy_static-1.4.0 \
		lazycell-1.3.0 \
		lexical-core-0.8.5 \
		lexical-parse-float-0.8.5 \
		lexical-parse-integer-0.8.6 \
		lexical-util-0.8.5 \
		lexical-write-float-0.8.5 \
		lexical-write-integer-0.8.5 \
		libc-0.2.153 \
		libfuzzer-sys-0.4.7 \
		libgit2-sys-0.16.2+1.7.2 \
		libloading-0.7.4 \
		libm-0.2.8 \
		libredox-0.0.1 \
		libsqlite3-sys-0.25.2 \
		libz-sys-1.1.12 \
		linked-hash-map-0.5.6 \
		linux-raw-sys-0.1.4 \
		linux-raw-sys-0.4.12 \
		lock_api-0.4.11 \
		log-0.4.20 \
		lrlex-0.12.0 \
		lrpar-0.12.0 \
		lrtable-0.12.0 \
		lru-0.12.1 \
		lz4-1.24.0 \
		lz4-sys-1.9.4 \
		lz4_flex-0.9.5 \
		lzma-sys-0.1.20 \
		mac_address-1.1.5 \
		mach2-0.4.2 \
		malloc_buf-0.0.6 \
		maplit-1.0.2 \
		match_cfg-0.1.0 \
		matchers-0.1.0 \
		matches-0.1.10 \
		matchit-0.7.3 \
		matrixmultiply-0.3.8 \
		md-5-0.10.6 \
		md5-0.7.0 \
		memchr-2.6.4 \
		memcomparable-0.2.0 \
		memmap2-0.5.10 \
		memmap2-0.9.3 \
		memoffset-0.6.5 \
		memoffset-0.7.1 \
		memoffset-0.9.0 \
		mime-0.3.17 \
		mime_guess-2.0.4 \
		minimal-lexical-0.2.1 \
		miniz_oxide-0.7.1 \
		mio-0.8.11 \
		mockall-0.11.4 \
		mockall_derive-0.11.4 \
		moka-0.12.1 \
		mt19937-2.0.1 \
		multimap-0.8.3 \
		mur3-0.1.0 \
		mysql-common-derive-0.30.2 \
		mysql-common-derive-0.31.0 \
		mysql_async-0.33.0 \
		mysql_common-0.31.0 \
		mysql_common-0.32.0 \
		nalgebra-0.29.0 \
		nalgebra-macros-0.1.0 \
		ndk-context-0.1.1 \
		new_debug_unreachable-1.0.4 \
		nibble_vec-0.1.0 \
		nix-0.23.2 \
		nix-0.25.1 \
		nix-0.26.4 \
		nom-7.1.3 \
		normalize-line-endings-0.3.0 \
		notify-6.1.1 \
		ntapi-0.4.1 \
		nu-ansi-term-0.46.0 \
		num-0.4.1 \
		num-bigint-0.4.4 \
		num-bigint-dig-0.8.4 \
		num-complex-0.4.4 \
		num-derive-0.4.1 \
		num-format-0.4.4 \
		num-integer-0.1.45 \
		num-iter-0.1.43 \
		num-rational-0.4.1 \
		num-traits-0.2.17 \
		num_cpus-1.16.0 \
		num_enum-0.5.11 \
		num_enum_derive-0.5.11 \
		number_prefix-0.4.0 \
		objc-0.2.7 \
		object-0.32.2 \
		object-pool-0.5.4 \
		object_store-0.7.1 \
		once_cell-1.19.0 \
		oorandom-11.1.3 \
		opendal-0.45.1 \
		openmetrics-parser-0.4.4 \
		opensrv-mysql-0.7.0 \
		openssl-probe-0.1.5 \
		opentelemetry-0.21.0 \
		opentelemetry-otlp-0.14.0 \
		opentelemetry-proto-0.4.0 \
		opentelemetry-semantic-conventions-0.13.0 \
		opentelemetry_sdk-0.21.1 \
		optional-0.5.0 \
		orc-rust-0.2.43 \
		ordered-float-2.10.1 \
		ordered-float-3.9.2 \
		ordered-float-4.2.0 \
		ordered-multimap-0.4.3 \
		ordered-multimap-0.7.1 \
		os_info-3.7.0 \
		os_str_bytes-6.6.1 \
		overload-0.1.1 \
		packedvec-1.2.4 \
		pad-0.1.6 \
		page_size-0.4.2 \
		parking_lot-0.11.2 \
		parking_lot-0.12.1 \
		parking_lot_core-0.8.6 \
		parking_lot_core-0.9.9 \
		parquet-47.0.0 \
		parse-zoneinfo-0.3.0 \
		paste-1.0.14 \
		path-slash-0.2.1 \
		pathdiff-0.2.1 \
		pbkdf2-0.12.2 \
		peeking_take_while-0.1.2 \
		pem-3.0.3 \
		pem-rfc7468-0.3.1 \
		pem-rfc7468-0.7.0 \
		percent-encoding-2.3.1 \
		permutation-0.4.1 \
		pest-2.7.5 \
		pest_derive-2.7.5 \
		pest_generator-2.7.5 \
		pest_meta-2.7.5 \
		petgraph-0.6.4 \
		pgwire-0.20.0 \
		phf-0.11.2 \
		phf_codegen-0.11.2 \
		phf_generator-0.11.2 \
		phf_shared-0.10.0 \
		phf_shared-0.11.2 \
		pin-project-1.1.3 \
		pin-project-internal-1.1.3 \
		pin-project-lite-0.2.13 \
		pin-utils-0.1.0 \
		pkcs1-0.3.3 \
		pkcs1-0.7.5 \
		pkcs5-0.7.1 \
		pkcs8-0.8.0 \
		pkcs8-0.10.2 \
		pkg-config-0.3.28 \
		plotters-0.3.5 \
		plotters-backend-0.3.5 \
		plotters-svg-0.3.5 \
		pmutil-0.5.3 \
		portable-atomic-1.6.0 \
		postgres-protocol-0.6.6 \
		postgres-types-0.2.6 \
		powerfmt-0.2.0 \
		pprof-0.13.0 \
		ppv-lite86-0.2.17 \
		precomputed-hash-0.1.1 \
		predicates-2.1.5 \
		predicates-core-1.0.6 \
		predicates-tree-1.0.9 \
		prettydiff-0.6.4 \
		prettyplease-0.1.25 \
		prettyplease-0.2.15 \
		proc-macro-crate-1.3.1 \
		proc-macro-crate-2.0.0 \
		proc-macro-crate-3.1.0 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.71 \
		procfs-0.14.2 \
		prometheus-0.13.3 \
		prometheus-static-metric-0.5.1 \
		promql-parser-0.1.4 \
		prost-0.11.9 \
		prost-0.12.3 \
		prost-build-0.11.9 \
		prost-build-0.12.3 \
		prost-derive-0.11.9 \
		prost-derive-0.12.3 \
		prost-types-0.11.9 \
		prost-types-0.12.3 \
		protobuf-2.28.0 \
		protobuf-build-0.15.1 \
		protobuf-codegen-2.28.0 \
		protobuf-src-1.1.0+21.5 \
		ptr_meta-0.1.4 \
		ptr_meta_derive-0.1.4 \
		pulldown-cmark-0.9.3 \
		puruspe-0.1.5 \
		pusherator-0.0.3 \
		pyo3-0.19.2 \
		pyo3-build-config-0.19.2 \
		pyo3-ffi-0.19.2 \
		pyo3-macros-0.19.2 \
		pyo3-macros-backend-0.19.2 \
		quanta-0.11.1 \
		quick-xml-0.26.0 \
		quick-xml-0.31.0 \
		quote-1.0.33 \
		radium-0.7.0 \
		radix_trie-0.2.1 \
		raft-engine-0.4.1 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		rand_distr-0.4.3 \
		raw-cpuid-10.7.0 \
		raw-window-handle-0.5.2 \
		rawpointer-0.2.1 \
		rayon-1.8.0 \
		rayon-core-1.12.0 \
		redox_syscall-0.2.16 \
		redox_syscall-0.4.1 \
		redox_users-0.4.4 \
		ref-cast-1.0.21 \
		ref-cast-impl-1.0.21 \
		regex-1.10.2 \
		regex-automata-0.1.10 \
		regex-automata-0.4.3 \
		regex-syntax-0.6.29 \
		regex-syntax-0.7.5 \
		regex-syntax-0.8.2 \
		regress-0.7.1 \
		rend-0.4.1 \
		reqsign-0.14.9 \
		reqwest-0.11.23 \
		result-like-0.4.6 \
		result-like-derive-0.4.6 \
		rexpect-0.5.0 \
		rgb-0.8.37 \
		ring-0.16.20 \
		ring-0.17.7 \
		rkyv-0.7.43 \
		rkyv_derive-0.7.43 \
		ron-0.7.1 \
		rsa-0.6.1 \
		rsa-0.9.6 \
		rskafka-0.5.0 \
		rstest-0.17.0 \
		rstest_macros-0.17.0 \
		rstest_reuse-0.5.0 \
		rust-embed-6.8.1 \
		rust-embed-impl-6.8.1 \
		rust-embed-utils-7.8.1 \
		rust-ini-0.18.0 \
		rust-ini-0.20.0 \
		rust-sitter-0.3.4 \
		rust-sitter-common-0.3.4 \
		rust-sitter-macro-0.3.4 \
		rust-sitter-tool-0.3.4 \
		rust_decimal-1.33.1 \
		rustc-demangle-0.1.23 \
		rustc-hash-1.1.0 \
		rustc_version-0.4.0 \
		rustix-0.36.17 \
		rustix-0.38.28 \
		rustls-0.20.9 \
		rustls-0.21.10 \
		rustls-0.22.1 \
		rustls-native-certs-0.6.3 \
		rustls-pemfile-1.0.4 \
		rustls-pemfile-2.0.0 \
		rustls-pki-types-1.1.0 \
		rustls-webpki-0.101.7 \
		rustls-webpki-0.102.0 \
		rustversion-1.0.14 \
		rustyline-10.1.1 \
		rustyline-11.0.0 \
		ryu-1.0.16 \
		safe-lock-0.1.3 \
		safe-proc-macro2-1.0.67 \
		safe-quote-1.0.15 \
		safe-regex-0.2.5 \
		safe-regex-compiler-0.2.5 \
		safe-regex-macro-0.2.5 \
		safe_arch-0.7.1 \
		salsa20-0.10.2 \
		same-file-1.0.6 \
		saturating-0.1.0 \
		schannel-0.1.22 \
		schemars-0.8.16 \
		schemars_derive-0.8.16 \
		scopeguard-1.2.0 \
		scrypt-0.11.0 \
		sct-0.7.1 \
		seahash-4.1.0 \
		sealed-0.5.0 \
		secrecy-0.8.0 \
		security-framework-2.9.2 \
		security-framework-sys-2.9.1 \
		semver-1.0.20 \
		seq-macro-0.3.5 \
		serde-1.0.193 \
		serde_derive-1.0.193 \
		serde_derive_internals-0.26.0 \
		serde_json-1.0.108 \
		serde_path_to_error-0.1.14 \
		serde_repr-0.1.17 \
		serde_spanned-0.6.5 \
		serde_tokenstream-0.2.0 \
		serde_urlencoded-0.7.1 \
		serde_with-3.4.0 \
		serde_with_macros-3.4.0 \
		serde_yaml-0.9.29 \
		sha-1-0.10.1 \
		sha1-0.10.6 \
		sha2-0.10.8 \
		sha3-0.10.8 \
		sharded-slab-0.1.7 \
		shlex-1.3.0 \
		signal-hook-registry-1.4.1 \
		signature-2.2.0 \
		simba-0.6.0 \
		simdutf8-0.1.4 \
		simple_asn1-0.6.2 \
		siphasher-0.3.11 \
		skeptic-0.13.7 \
		slab-0.4.9 \
		slotmap-1.0.7 \
		smallbitvec-2.5.1 \
		smallvec-1.11.2 \
		snafu-0.7.5 \
		snafu-derive-0.7.5 \
		snap-1.1.1 \
		socket2-0.4.10 \
		socket2-0.5.5 \
		sparsevec-0.1.4 \
		spin-0.5.2 \
		spin-0.9.8 \
		spki-0.5.4 \
		spki-0.7.3 \
		sqlformat-0.2.3 \
		sqlness-0.5.0 \
		sqlparser-0.38.0 \
		sqlparser_derive-0.1.1 \
		sqlx-0.6.3 \
		sqlx-core-0.6.3 \
		sqlx-macros-0.6.3 \
		sqlx-rt-0.6.3 \
		sre-engine-0.4.3 \
		stable_deref_trait-1.2.0 \
		static_assertions-1.1.0 \
		statrs-0.16.0 \
		stats-cli-3.0.1 \
		str-buf-1.0.6 \
		str_stack-0.1.0 \
		streaming-stats-0.2.3 \
		strfmt-0.2.4 \
		string_cache-0.8.7 \
		stringprep-0.1.4 \
		strsim-0.8.0 \
		strsim-0.10.0 \
		strum-0.24.1 \
		strum-0.25.0 \
		strum_macros-0.24.3 \
		strum_macros-0.25.3 \
		subprocess-0.2.9 \
		substrait-0.17.1 \
		subtle-2.5.0 \
		symbolic-common-12.8.0 \
		symbolic-demangle-12.8.0 \
		syn-1.0.109 \
		syn-2.0.43 \
		syn-ext-0.4.0 \
		syn-inline-mod-0.5.0 \
		syn_derive-0.1.8 \
		sync_wrapper-0.1.2 \
		sysinfo-0.30.5 \
		system-configuration-0.5.1 \
		system-configuration-sys-0.5.0 \
		tagptr-0.2.0 \
		tap-1.0.1 \
		target-lexicon-0.12.12 \
		temp-env-0.3.6 \
		tempfile-3.8.1 \
		term-0.7.0 \
		termcolor-1.4.0 \
		termios-0.3.3 \
		termtree-0.4.1 \
		textwrap-0.11.0 \
		textwrap-0.15.2 \
		textwrap-0.16.0 \
		thiserror-1.0.51 \
		thiserror-impl-1.0.51 \
		thread-id-4.2.1 \
		thread_local-1.1.7 \
		thrift-0.17.0 \
		tikv-jemalloc-ctl-0.5.4 \
		tikv-jemalloc-sys-0.5.4+5.3.0-patched \
		tikv-jemallocator-0.5.4 \
		time-0.3.31 \
		time-core-0.1.2 \
		time-macros-0.2.16 \
		timsort-0.1.3 \
		tiny-keccak-2.0.2 \
		tiny_http-0.12.0 \
		tinytemplate-1.2.1 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.1 \
		tokio-1.35.1 \
		tokio-io-timeout-1.2.0 \
		tokio-macros-2.2.0 \
		tokio-metrics-0.3.1 \
		tokio-metrics-collector-0.2.1 \
		tokio-postgres-0.7.10 \
		tokio-postgres-rustls-0.11.1 \
		tokio-rustls-0.23.4 \
		tokio-rustls-0.24.1 \
		tokio-rustls-0.25.0 \
		tokio-stream-0.1.14 \
		tokio-test-0.4.3 \
		tokio-util-0.7.10 \
		toml-0.5.11 \
		toml-0.8.8 \
		toml_datetime-0.6.5 \
		toml_edit-0.19.15 \
		toml_edit-0.20.7 \
		toml_edit-0.21.0 \
		tonic-0.9.2 \
		tonic-0.10.2 \
		tonic-build-0.9.2 \
		tonic-build-0.10.2 \
		tonic-reflection-0.10.2 \
		tower-0.4.13 \
		tower-http-0.4.4 \
		tower-layer-0.3.2 \
		tower-service-0.3.2 \
		tracing-0.1.40 \
		tracing-appender-0.2.3 \
		tracing-attributes-0.1.27 \
		tracing-core-0.1.32 \
		tracing-log-0.1.4 \
		tracing-log-0.2.0 \
		tracing-opentelemetry-0.22.0 \
		tracing-subscriber-0.3.18 \
		tree-sitter-0.20.10 \
		tree-sitter-c2rust-0.20.10 \
		tree-sitter-cli-0.20.8 \
		tree-sitter-config-0.19.0 \
		tree-sitter-highlight-0.20.1 \
		tree-sitter-loader-0.20.0 \
		tree-sitter-tags-0.20.2 \
		triomphe-0.1.11 \
		try-lock-0.2.5 \
		try_from-0.3.2 \
		twox-hash-1.6.3 \
		typenum-1.17.0 \
		typetag-0.2.14 \
		typetag-impl-0.2.14 \
		typify-0.0.14 \
		typify-impl-0.0.14 \
		typify-macro-0.0.14 \
		ucd-0.1.1 \
		ucd-trie-0.1.6 \
		uname-0.1.1 \
		unic-char-property-0.9.0 \
		unic-char-range-0.9.0 \
		unic-common-0.9.0 \
		unic-emoji-char-0.9.0 \
		unic-normal-0.9.0 \
		unic-ucd-age-0.9.0 \
		unic-ucd-bidi-0.9.0 \
		unic-ucd-category-0.9.0 \
		unic-ucd-hangul-0.9.0 \
		unic-ucd-ident-0.9.0 \
		unic-ucd-normal-0.9.0 \
		unic-ucd-version-0.9.0 \
		unicase-2.7.0 \
		unicode-bidi-0.3.14 \
		unicode-casing-0.1.0 \
		unicode-ident-1.0.12 \
		unicode-normalization-0.1.22 \
		unicode-segmentation-1.10.1 \
		unicode-width-0.1.11 \
		unicode-xid-0.2.4 \
		unicode_categories-0.1.1 \
		unindent-0.1.11 \
		unsafe-libyaml-0.2.10 \
		untrusted-0.7.1 \
		untrusted-0.9.0 \
		url-2.5.0 \
		urlencoding-2.1.3 \
		utf8-width-0.1.7 \
		utf8parse-0.2.1 \
		uuid-1.6.1 \
		uuid-macro-internal-1.6.1 \
		valuable-0.1.0 \
		variadics-0.0.2 \
		vcpkg-0.2.15 \
		vec_map-0.8.2 \
		vergen-7.5.1 \
		version_check-0.9.4 \
		vob-3.0.3 \
		volatile-0.3.0 \
		walkdir-2.4.0 \
		want-0.3.1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasite-0.1.0 \
		wasm-bindgen-0.2.89 \
		wasm-bindgen-backend-0.2.89 \
		wasm-bindgen-futures-0.4.39 \
		wasm-bindgen-macro-0.2.89 \
		wasm-bindgen-macro-support-0.2.89 \
		wasm-bindgen-shared-0.2.89 \
		wasm-streams-0.3.0 \
		web-sys-0.3.66 \
		web-time-0.2.4 \
		webbrowser-0.8.12 \
		webpki-0.22.4 \
		webpki-roots-0.22.6 \
		webpki-roots-0.25.3 \
		which-4.4.2 \
		whoami-1.5.1 \
		wide-0.7.13 \
		widestring-0.5.1 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.6 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-0.39.0 \
		windows-0.52.0 \
		windows-core-0.51.1 \
		windows-core-0.52.0 \
		windows-sys-0.45.0 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-targets-0.42.2 \
		windows-targets-0.48.5 \
		windows-targets-0.52.0 \
		windows_aarch64_gnullvm-0.42.2 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.0 \
		windows_aarch64_msvc-0.39.0 \
		windows_aarch64_msvc-0.42.2 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.0 \
		windows_i686_gnu-0.39.0 \
		windows_i686_gnu-0.42.2 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.0 \
		windows_i686_msvc-0.39.0 \
		windows_i686_msvc-0.42.2 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.0 \
		windows_x86_64_gnu-0.39.0 \
		windows_x86_64_gnu-0.42.2 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.0 \
		windows_x86_64_gnullvm-0.42.2 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.0 \
		windows_x86_64_msvc-0.39.0 \
		windows_x86_64_msvc-0.42.2 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.0 \
		winnow-0.5.30 \
		winreg-0.10.1 \
		winreg-0.50.0 \
		wyz-0.5.1 \
		x509-certificate-0.23.1 \
		xml-rs-0.8.19 \
		xz2-0.1.7 \
		yaml-rust-0.4.5 \
		zerocopy-0.7.32 \
		zerocopy-derive-0.7.32 \
		zeroize-1.7.0 \
		zeroize_derive-1.4.2 \
		zigzag-0.1.0 \
		zstd-0.11.2+zstd.1.5.2 \
		zstd-0.12.4 \
		zstd-0.13.0 \
		zstd-safe-5.0.2+zstd.1.5.2 \
		zstd-safe-6.0.6 \
		zstd-safe-7.0.0 \
		zstd-sys-2.0.9+zstd.1.5.5 \
		meter-core,meter-macros@git+https://github.com/GreptimeTeam/greptime-meter.git?rev=80b72716dcde47ec4161478416a5c6c21343364d\#80b72716dcde47ec4161478416a5c6c21343364d \
		sqlparser,sqlparser_derive@git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=6a93567ae38d42be5c8d08b13c8ff4dde26502ef\#6a93567ae38d42be5c8d08b13c8ff4dde26502ef \
		datafusion,datafusion-common,datafusion-execution,datafusion-expr,datafusion-optimizer,datafusion-physical-expr,datafusion-physical-plan,datafusion-sql,datafusion-substrait@git+https://github.com/apache/arrow-datafusion.git?rev=26e43acac3a96cec8dd4c8365f22dfb1a84306e9\#26e43acac3a96cec8dd4c8365f22dfb1a84306e9 \
		influxdb_line_protocol@git+https://github.com/evenyag/influxdb_iox?branch=feat/line-protocol\#10ef0d0b02705ac7518717390939fa3a9bcfcacc \
		rustpython-doc@git+https://github.com/RustPython/__doc__?branch=main\#8b62ce5d796d68a091969c9fa5406276cb483f79 \
		rustpython-ast,rustpython-codegen,rustpython-common,rustpython-compiler,rustpython-compiler-core,rustpython-derive,rustpython-derive-impl,rustpython-parser,rustpython-pylib,rustpython-stdlib,rustpython-vm@git+https://github.com/discord9/RustPython?rev=9ed5137412\#9ed51374125b5f1a9e5cee5dd7e27023b8591f1e \
		unicode_names2@git+https://github.com/youknowone/unicode_names2.git?rev=4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde\#4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde \
		opentelemetry,opentelemetry-proto,opentelemetry_sdk@git+https://github.com/waynexia/opentelemetry-rust.git?rev=33841b38dda79b15f2024952be5f32533325ca02\#33841b38dda79b15f2024952be5f32533325ca02 \
		greptime-proto@git+https://github.com/GreptimeTeam/greptime-proto.git?rev=06f6297ff3cab578a1589741b504342fbad70453\#06f6297ff3cab578a1589741b504342fbad70453

USER=		nobody
GROUP=		nobody

SUB_LIST+=	USER=${USER} GROUP=${GROUP}
PLIST_SUB+=	USER=${USER} GROUP=${GROUP}

PROGS=		greptime \
		nyc-taxi \
		sqlness-runner

do-install:
	# binaries (workaround for error: found a virtual manifest at `xx` instead of a package manifest)
.for p in ${PROGS}
	${INSTALL_PROGRAM} \
		${WRKDIR}/target/release/${p} \
		${STAGEDIR}${PREFIX}/bin
.endfor
	# config files
	${MKDIR} ${STAGEDIR}${ETCDIR}
.for name in datanode frontend metasrv standalone
	${INSTALL_DATA} ${WRKSRC}/config/${name}.example.toml ${STAGEDIR}${ETCDIR}/${name}.toml.sample
.endfor
	${REINPLACE_CMD} -i '' -e 's|data_home = "/tmp/greptimedb/"|data_home = "/var/db/greptimedb/"|' ${STAGEDIR}${ETCDIR}/*.toml.sample
	# RC script
	${INSTALL_DATA} ${WRKDIR}/greptimedb ${STAGEDIR}/${PREFIX}/etc/rc.d
	# create dirs
	${MKDIR} \
		${STAGEDIR}/var/db/greptimedb \
		${STAGEDIR}/var/log/greptimedb

.include <bsd.port.mk>
