PORTNAME=	dufs
DISTVERSIONPREFIX=	v
DISTVERSION=	0.31.0
PORTREVISION=	2
CATEGORIES=	www

MAINTAINER=	ashish@FreeBSD.org
COMMENT=	HTTP File Server
WWW=		https://github.com/sigoden/dufs

LICENSE=	MIT APACHE20
LICENSE_COMB=	dual
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	sigoden
CARGO_CRATES=	adler-1.0.2 \
		aho-corasick-0.7.19 \
		alphanumeric-sort-1.4.4 \
		android_system_properties-0.1.5 \
		assert_cmd-2.0.6 \
		assert_fs-1.0.9 \
		async-compression-0.3.15 \
		async-stream-0.3.3 \
		async-stream-impl-0.3.3 \
		async-trait-0.1.58 \
		async_io_utilities-0.1.4 \
		async_zip-0.0.8 \
		atty-0.2.14 \
		autocfg-1.1.0 \
		base64-0.13.1 \
		bitflags-1.3.2 \
		block-buffer-0.9.0 \
		block-buffer-0.10.3 \
		bstr-0.2.17 \
		bstr-1.0.1 \
		bumpalo-3.11.1 \
		bytes-1.2.1 \
		cc-1.0.76 \
		cfg-if-1.0.0 \
		chrono-0.4.22 \
		clap-4.0.22 \
		clap_complete-4.0.5 \
		clap_lex-0.3.0 \
		codespan-reporting-0.11.1 \
		core-foundation-0.9.3 \
		core-foundation-sys-0.8.3 \
		cpufeatures-0.2.5 \
		crc32fast-1.3.2 \
		crossbeam-utils-0.8.12 \
		crypto-common-0.1.6 \
		cxx-1.0.81 \
		cxx-build-1.0.81 \
		cxxbridge-flags-1.0.81 \
		cxxbridge-macro-1.0.81 \
		difflib-0.4.0 \
		digest-0.9.0 \
		digest-0.10.5 \
		digest_auth-0.3.0 \
		diqwest-1.1.0 \
		doc-comment-0.3.3 \
		either-1.8.0 \
		encoding_rs-0.8.31 \
		errno-0.2.8 \
		errno-dragonfly-0.1.2 \
		fastrand-1.8.0 \
		flate2-1.0.24 \
		float-cmp-0.9.0 \
		fnv-1.0.7 \
		foreign-types-0.3.2 \
		foreign-types-shared-0.1.1 \
		form_urlencoded-1.1.0 \
		futures-0.3.25 \
		futures-channel-0.3.25 \
		futures-core-0.3.25 \
		futures-executor-0.3.25 \
		futures-io-0.3.25 \
		futures-macro-0.3.25 \
		futures-sink-0.3.25 \
		futures-task-0.3.25 \
		futures-timer-3.0.2 \
		futures-util-0.3.25 \
		generic-array-0.14.6 \
		getrandom-0.2.8 \
		globset-0.4.9 \
		globwalk-0.8.1 \
		h2-0.3.15 \
		hashbrown-0.12.3 \
		headers-0.3.8 \
		headers-core-0.2.0 \
		hermit-abi-0.1.19 \
		hex-0.4.3 \
		http-0.2.8 \
		http-body-0.4.5 \
		httparse-1.8.0 \
		httpdate-1.0.2 \
		hyper-0.14.23 \
		hyper-rustls-0.23.0 \
		hyper-tls-0.5.0 \
		iana-time-zone-0.1.53 \
		iana-time-zone-haiku-0.1.1 \
		idna-0.3.0 \
		if-addrs-0.7.0 \
		ignore-0.4.18 \
		indexmap-1.9.1 \
		instant-0.1.12 \
		io-lifetimes-0.7.5 \
		ipnet-2.5.1 \
		itertools-0.10.5 \
		itoa-1.0.4 \
		js-sys-0.3.60 \
		lazy_static-1.4.0 \
		libc-0.2.137 \
		link-cplusplus-1.0.7 \
		linux-raw-sys-0.0.46 \
		log-0.4.17 \
		md-5-0.9.1 \
		md5-0.7.0 \
		memchr-2.5.0 \
		mime-0.3.16 \
		mime_guess-2.0.4 \
		miniz_oxide-0.5.4 \
		mio-0.8.5 \
		native-tls-0.2.11 \
		normalize-line-endings-0.3.0 \
		num-integer-0.1.45 \
		num-traits-0.2.15 \
		num_cpus-1.14.0 \
		once_cell-1.16.0 \
		opaque-debug-0.3.0 \
		openssl-0.10.42 \
		openssl-macros-0.1.0 \
		openssl-probe-0.1.5 \
		openssl-sys-0.9.77 \
		os_str_bytes-6.3.1 \
		percent-encoding-2.2.0 \
		pin-project-lite-0.2.9 \
		pin-utils-0.1.0 \
		pkg-config-0.3.26 \
		port_check-0.1.5 \
		ppv-lite86-0.2.17 \
		predicates-2.1.2 \
		predicates-core-1.0.4 \
		predicates-tree-1.0.6 \
		proc-macro2-1.0.47 \
		quote-1.0.21 \
		rand-0.8.5 \
		rand_chacha-0.3.1 \
		rand_core-0.6.4 \
		redox_syscall-0.2.16 \
		regex-1.7.0 \
		regex-automata-0.1.10 \
		regex-syntax-0.6.28 \
		remove_dir_all-0.5.3 \
		reqwest-0.11.12 \
		ring-0.16.20 \
		rstest-0.15.0 \
		rstest_macros-0.14.0 \
		rustc_version-0.4.0 \
		rustix-0.35.13 \
		rustls-0.20.7 \
		rustls-pemfile-1.0.1 \
		ryu-1.0.11 \
		same-file-1.0.6 \
		schannel-0.1.20 \
		scratch-1.0.2 \
		sct-0.7.0 \
		security-framework-2.7.0 \
		security-framework-sys-2.6.1 \
		semver-1.0.14 \
		serde-1.0.147 \
		serde_derive-1.0.147 \
		serde_json-1.0.87 \
		serde_urlencoded-0.7.1 \
		sha1-0.10.5 \
		sha2-0.9.9 \
		signal-hook-registry-1.4.0 \
		slab-0.4.7 \
		socket2-0.4.7 \
		spin-0.5.2 \
		strsim-0.10.0 \
		syn-1.0.103 \
		tempfile-3.3.0 \
		termcolor-1.1.3 \
		terminal_size-0.2.2 \
		termtree-0.4.0 \
		thiserror-1.0.37 \
		thiserror-impl-1.0.37 \
		thread_local-1.1.4 \
		time-0.1.44 \
		tinyvec-1.6.0 \
		tinyvec_macros-0.1.0 \
		tokio-1.21.2 \
		tokio-macros-1.8.0 \
		tokio-native-tls-0.3.0 \
		tokio-rustls-0.23.4 \
		tokio-util-0.7.4 \
		tower-service-0.3.2 \
		tracing-0.1.37 \
		tracing-core-0.1.30 \
		try-lock-0.2.3 \
		typenum-1.15.0 \
		unicase-2.6.0 \
		unicode-bidi-0.3.8 \
		unicode-ident-1.0.5 \
		unicode-normalization-0.1.22 \
		unicode-width-0.1.10 \
		untrusted-0.7.1 \
		url-2.3.1 \
		urlencoding-2.1.2 \
		uuid-1.2.1 \
		vcpkg-0.2.15 \
		version_check-0.9.4 \
		wait-timeout-0.2.0 \
		walkdir-2.3.2 \
		want-0.3.0 \
		wasi-0.10.0+wasi-snapshot-preview1 \
		wasi-0.11.0+wasi-snapshot-preview1 \
		wasm-bindgen-0.2.83 \
		wasm-bindgen-backend-0.2.83 \
		wasm-bindgen-futures-0.4.33 \
		wasm-bindgen-macro-0.2.83 \
		wasm-bindgen-macro-support-0.2.83 \
		wasm-bindgen-shared-0.2.83 \
		web-sys-0.3.60 \
		webpki-0.22.0 \
		webpki-roots-0.22.5 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.5 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-sys-0.36.1 \
		windows-sys-0.42.0 \
		windows_aarch64_gnullvm-0.42.0 \
		windows_aarch64_msvc-0.36.1 \
		windows_aarch64_msvc-0.42.0 \
		windows_i686_gnu-0.36.1 \
		windows_i686_gnu-0.42.0 \
		windows_i686_msvc-0.36.1 \
		windows_i686_msvc-0.42.0 \
		windows_x86_64_gnu-0.36.1 \
		windows_x86_64_gnu-0.42.0 \
		windows_x86_64_gnullvm-0.42.0 \
		windows_x86_64_msvc-0.36.1 \
		windows_x86_64_msvc-0.42.0 \
		winreg-0.10.1 \
		xml-rs-0.8.4
PLIST_FILES=	bin/${PORTNAME}	\
		${DOCSDIR_REL}/README.md

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
