git: 40ce1bc9da23 - main - net-mgmt/nfs-exporter: upgrade to 0.4.1

From: Alan Somers <asomers_at_FreeBSD.org>
Date: Wed, 22 Feb 2023 20:28:03 UTC
The branch main has been updated by asomers:

URL: https://cgit.FreeBSD.org/ports/commit/?id=40ce1bc9da23ac6a7a5aa75be4e923c48f27a504

commit 40ce1bc9da23ac6a7a5aa75be4e923c48f27a504
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2023-02-21 19:17:21 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2023-02-22 20:25:22 +0000

    net-mgmt/nfs-exporter: upgrade to 0.4.1
    
    Now with Capsicum.
    
    PR:             269744
    Approved by:    fernape (ports)
    Sponsored by:   Axcient
---
 net-mgmt/nfs-exporter/Makefile | 37 ++++++++++++++++++---------
 net-mgmt/nfs-exporter/distinfo | 58 +++++++++++++++++++++++++++++-------------
 2 files changed, 66 insertions(+), 29 deletions(-)

diff --git a/net-mgmt/nfs-exporter/Makefile b/net-mgmt/nfs-exporter/Makefile
index 4af8ec1a3c67..5cc18325a207 100644
--- a/net-mgmt/nfs-exporter/Makefile
+++ b/net-mgmt/nfs-exporter/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	nfs-exporter
-DISTVERSION=	0.3.2
-PORTREVISION=	3
+DISTVERSION=	0.4.1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	CRATESIO
 MASTER_SITE_SUBDIR=	freebsd-${PORTNAME}/${DISTVERSION}
@@ -27,7 +26,7 @@ USE_RC_SUBR=	nfs_exporter
 
 .include <bsd.port.options.mk>
 
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400073
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1302000
 SUB_LIST=	USER=nobody
 .else
 SUB_LIST=	USER=root
@@ -37,14 +36,20 @@ CARGO_CRATES=	aho-corasick-0.7.18 \
 		ascii-1.0.0 \
 		atty-0.2.14 \
 		autocfg-1.1.0 \
+		bincode-1.3.3 \
 		bindgen-0.60.1 \
+		bindgen-0.63.0 \
 		bitflags-1.3.2 \
+		capsicum-0.2.0 \
+		casper-sys-0.1.0 \
 		cexpr-0.6.0 \
 		cfg-if-1.0.0 \
 		chunked_transfer-1.4.0 \
 		clang-sys-1.3.1 \
 		clap-3.2.23 \
 		clap_lex-0.2.4 \
+		const-cstr-0.3.0 \
+		ctor-0.1.26 \
 		either-1.6.1 \
 		env_logger-0.9.0 \
 		fnv-1.0.7 \
@@ -59,8 +64,10 @@ CARGO_CRATES=	aho-corasick-0.7.18 \
 		itoa-1.0.1 \
 		lazy_static-1.4.0 \
 		lazycell-1.3.0 \
-		libc-0.2.120 \
+		libc-0.2.139 \
 		libloading-0.7.3 \
+		libnv-0.4.1 \
+		libnv-sys-0.2.0 \
 		lock_api-0.4.6 \
 		log-0.4.14 \
 		matches-0.1.9 \
@@ -73,19 +80,22 @@ CARGO_CRATES=	aho-corasick-0.7.18 \
 		parking_lot_core-0.8.5 \
 		peeking_take_while-0.1.2 \
 		percent-encoding-2.1.0 \
-		proc-macro2-1.0.36 \
+		proc-macro2-1.0.49 \
 		prometheus-0.13.0 \
 		prometheus_exporter-0.8.4 \
-		quote-1.0.15 \
+		quick-error-2.0.1 \
+		quote-1.0.23 \
 		redox_syscall-0.2.11 \
-		regex-1.5.5 \
-		regex-syntax-0.6.25 \
+		regex-1.7.1 \
+		regex-syntax-0.6.28 \
 		rustc-hash-1.1.0 \
 		scopeguard-1.1.0 \
+		serde-1.0.152 \
+		serde_derive-1.0.152 \
 		shlex-1.1.0 \
 		smallvec-1.8.0 \
 		strsim-0.10.0 \
-		syn-1.0.89 \
+		syn-1.0.107 \
 		termcolor-1.1.3 \
 		textwrap-0.16.0 \
 		thiserror-1.0.30 \
@@ -96,18 +106,21 @@ CARGO_CRATES=	aho-corasick-0.7.18 \
 		tinyvec-1.5.1 \
 		tinyvec_macros-0.1.0 \
 		unicode-bidi-0.3.7 \
+		unicode-ident-1.0.6 \
 		unicode-normalization-0.1.19 \
-		unicode-xid-0.2.2 \
 		url-2.2.2 \
+		version_check-0.9.4 \
 		which-4.2.4 \
 		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
 
-PLIST_FILES=	bin/nfs-exporter
+PLIST_FILES=	bin/${PORTNAME} \
+		man/man8/${PORTNAME}.8.gz
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nfs-exporter
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.8 ${STAGEDIR}${MAN1PREFIX}/man/man8
 
 .include <bsd.port.mk>
diff --git a/net-mgmt/nfs-exporter/distinfo b/net-mgmt/nfs-exporter/distinfo
index ee6e09ffff5a..96d949e7e14f 100644
--- a/net-mgmt/nfs-exporter/distinfo
+++ b/net-mgmt/nfs-exporter/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1670549841
-SHA256 (rust/crates/freebsd-nfs-exporter-0.3.2.crate) = 049f8be2ed3302acbe71fe512db24cbeff512a1c4867b312252fe0cf80f5fe85
-SIZE (rust/crates/freebsd-nfs-exporter-0.3.2.crate) = 16504
+TIMESTAMP = 1677004067
+SHA256 (rust/crates/freebsd-nfs-exporter-0.4.1.crate) = 6bd76fae6857b79148c7bb6b7c81ef2c052df23d518e0889dae285fc6ac9767c
+SIZE (rust/crates/freebsd-nfs-exporter-0.4.1.crate) = 19204
 SHA256 (rust/crates/aho-corasick-0.7.18.crate) = 1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f
 SIZE (rust/crates/aho-corasick-0.7.18.crate) = 112923
 SHA256 (rust/crates/ascii-1.0.0.crate) = bbf56136a5198c7b01a49e3afcbef6cf84597273d298f54432926024107b0109
@@ -9,10 +9,18 @@ SHA256 (rust/crates/atty-0.2.14.crate) = d9b39be18770d11421cdb1b9947a45dd3f37e93
 SIZE (rust/crates/atty-0.2.14.crate) = 5470
 SHA256 (rust/crates/autocfg-1.1.0.crate) = d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa
 SIZE (rust/crates/autocfg-1.1.0.crate) = 13272
+SHA256 (rust/crates/bincode-1.3.3.crate) = b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad
+SIZE (rust/crates/bincode-1.3.3.crate) = 28958
 SHA256 (rust/crates/bindgen-0.60.1.crate) = 062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6
 SIZE (rust/crates/bindgen-0.60.1.crate) = 207507
+SHA256 (rust/crates/bindgen-0.63.0.crate) = 36d860121800b2a9a94f9b5604b332d5cffb234ce17609ea479d723dbc9d3885
+SIZE (rust/crates/bindgen-0.63.0.crate) = 201856
 SHA256 (rust/crates/bitflags-1.3.2.crate) = bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a
 SIZE (rust/crates/bitflags-1.3.2.crate) = 23021
+SHA256 (rust/crates/capsicum-0.2.0.crate) = 5c14628fc0be4956e4036625c64885c96cee9ba582d1b1a9a60e7e1f28ad1b68
+SIZE (rust/crates/capsicum-0.2.0.crate) = 18866
+SHA256 (rust/crates/casper-sys-0.1.0.crate) = 9a301fa9fcd17d497244e16d189e4543267617d954e82000b5bb23e6380ccc3d
+SIZE (rust/crates/casper-sys-0.1.0.crate) = 8074
 SHA256 (rust/crates/cexpr-0.6.0.crate) = 6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766
 SIZE (rust/crates/cexpr-0.6.0.crate) = 17966
 SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
@@ -25,6 +33,10 @@ SHA256 (rust/crates/clap-3.2.23.crate) = 71655c45cb9845d3270c9d6df84ebe72b4dad3c
 SIZE (rust/crates/clap-3.2.23.crate) = 219435
 SHA256 (rust/crates/clap_lex-0.2.4.crate) = 2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5
 SIZE (rust/crates/clap_lex-0.2.4.crate) = 9652
+SHA256 (rust/crates/const-cstr-0.3.0.crate) = ed3d0b5ff30645a68f35ece8cea4556ca14ef8a1651455f789a099a0513532a6
+SIZE (rust/crates/const-cstr-0.3.0.crate) = 7497
+SHA256 (rust/crates/ctor-0.1.26.crate) = 6d2301688392eb071b0bf1a37be05c469d3cc4dbbd95df672fe28ab021e6a096
+SIZE (rust/crates/ctor-0.1.26.crate) = 10803
 SHA256 (rust/crates/either-1.6.1.crate) = e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457
 SIZE (rust/crates/either-1.6.1.crate) = 13641
 SHA256 (rust/crates/env_logger-0.9.0.crate) = 0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3
@@ -53,10 +65,14 @@ SHA256 (rust/crates/lazy_static-1.4.0.crate) = e2abad23fbc42b3700f2f279844dc832a
 SIZE (rust/crates/lazy_static-1.4.0.crate) = 10443
 SHA256 (rust/crates/lazycell-1.3.0.crate) = 830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55
 SIZE (rust/crates/lazycell-1.3.0.crate) = 12502
-SHA256 (rust/crates/libc-0.2.120.crate) = ad5c14e80759d0939d013e6ca49930e59fc53dd8e5009132f76240c179380c09
-SIZE (rust/crates/libc-0.2.120.crate) = 574677
+SHA256 (rust/crates/libc-0.2.139.crate) = 201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79
+SIZE (rust/crates/libc-0.2.139.crate) = 638983
 SHA256 (rust/crates/libloading-0.7.3.crate) = efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd
 SIZE (rust/crates/libloading-0.7.3.crate) = 27378
+SHA256 (rust/crates/libnv-0.4.1.crate) = e1fcc8441850539907ae5cd711738bbcfd5208e6f6e6557ddbae8b0bc9bae5b4
+SIZE (rust/crates/libnv-0.4.1.crate) = 43026
+SHA256 (rust/crates/libnv-sys-0.2.0.crate) = edf0bba9987cfa1946061385855118d1cd0dc907d18f0d1e4908909a83e7bb24
+SIZE (rust/crates/libnv-sys-0.2.0.crate) = 2507
 SHA256 (rust/crates/lock_api-0.4.6.crate) = 88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b
 SIZE (rust/crates/lock_api-0.4.6.crate) = 25215
 SHA256 (rust/crates/log-0.4.14.crate) = 51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710
@@ -81,32 +97,38 @@ SHA256 (rust/crates/peeking_take_while-0.1.2.crate) = 19b17cddbe7ec3f8bc800887ba
 SIZE (rust/crates/peeking_take_while-0.1.2.crate) = 6697
 SHA256 (rust/crates/percent-encoding-2.1.0.crate) = d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e
 SIZE (rust/crates/percent-encoding-2.1.0.crate) = 9748
-SHA256 (rust/crates/proc-macro2-1.0.36.crate) = c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029
-SIZE (rust/crates/proc-macro2-1.0.36.crate) = 41411
+SHA256 (rust/crates/proc-macro2-1.0.49.crate) = 57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5
+SIZE (rust/crates/proc-macro2-1.0.49.crate) = 41977
 SHA256 (rust/crates/prometheus-0.13.0.crate) = b7f64969ffd5dd8f39bd57a68ac53c163a095ed9d0fb707146da1b27025a3504
 SIZE (rust/crates/prometheus-0.13.0.crate) = 81774
 SHA256 (rust/crates/prometheus_exporter-0.8.4.crate) = 019a192344efa197e8edfb2b864a5369ba8a837578d1bee469f21d98a8ed1233
 SIZE (rust/crates/prometheus_exporter-0.8.4.crate) = 18055
-SHA256 (rust/crates/quote-1.0.15.crate) = 864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145
-SIZE (rust/crates/quote-1.0.15.crate) = 27281
+SHA256 (rust/crates/quick-error-2.0.1.crate) = a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3
+SIZE (rust/crates/quick-error-2.0.1.crate) = 14265
+SHA256 (rust/crates/quote-1.0.23.crate) = 8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b
+SIZE (rust/crates/quote-1.0.23.crate) = 28058
 SHA256 (rust/crates/redox_syscall-0.2.11.crate) = 8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c
 SIZE (rust/crates/redox_syscall-0.2.11.crate) = 24032
-SHA256 (rust/crates/regex-1.5.5.crate) = 1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286
-SIZE (rust/crates/regex-1.5.5.crate) = 238119
-SHA256 (rust/crates/regex-syntax-0.6.25.crate) = f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b
-SIZE (rust/crates/regex-syntax-0.6.25.crate) = 293293
+SHA256 (rust/crates/regex-1.7.1.crate) = 48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733
+SIZE (rust/crates/regex-1.7.1.crate) = 239648
+SHA256 (rust/crates/regex-syntax-0.6.28.crate) = 456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848
+SIZE (rust/crates/regex-syntax-0.6.28.crate) = 299288
 SHA256 (rust/crates/rustc-hash-1.1.0.crate) = 08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2
 SIZE (rust/crates/rustc-hash-1.1.0.crate) = 9331
 SHA256 (rust/crates/scopeguard-1.1.0.crate) = d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd
 SIZE (rust/crates/scopeguard-1.1.0.crate) = 11470
+SHA256 (rust/crates/serde-1.0.152.crate) = bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb
+SIZE (rust/crates/serde-1.0.152.crate) = 77091
+SHA256 (rust/crates/serde_derive-1.0.152.crate) = af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e
+SIZE (rust/crates/serde_derive-1.0.152.crate) = 55586
 SHA256 (rust/crates/shlex-1.1.0.crate) = 43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3
 SIZE (rust/crates/shlex-1.1.0.crate) = 5199
 SHA256 (rust/crates/smallvec-1.8.0.crate) = f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83
 SIZE (rust/crates/smallvec-1.8.0.crate) = 27992
 SHA256 (rust/crates/strsim-0.10.0.crate) = 73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623
 SIZE (rust/crates/strsim-0.10.0.crate) = 11355
-SHA256 (rust/crates/syn-1.0.89.crate) = ea297be220d52398dcc07ce15a209fce436d361735ac1db700cab3b6cdfb9f54
-SIZE (rust/crates/syn-1.0.89.crate) = 235966
+SHA256 (rust/crates/syn-1.0.107.crate) = 1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5
+SIZE (rust/crates/syn-1.0.107.crate) = 237539
 SHA256 (rust/crates/termcolor-1.1.3.crate) = bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755
 SIZE (rust/crates/termcolor-1.1.3.crate) = 17242
 SHA256 (rust/crates/textwrap-0.16.0.crate) = 222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d
@@ -127,12 +149,14 @@ SHA256 (rust/crates/tinyvec_macros-0.1.0.crate) = cda74da7e1a664f795bb1f8a87ec40
 SIZE (rust/crates/tinyvec_macros-0.1.0.crate) = 1817
 SHA256 (rust/crates/unicode-bidi-0.3.7.crate) = 1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f
 SIZE (rust/crates/unicode-bidi-0.3.7.crate) = 33759
+SHA256 (rust/crates/unicode-ident-1.0.6.crate) = 84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc
+SIZE (rust/crates/unicode-ident-1.0.6.crate) = 42158
 SHA256 (rust/crates/unicode-normalization-0.1.19.crate) = d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9
 SIZE (rust/crates/unicode-normalization-0.1.19.crate) = 107353
-SHA256 (rust/crates/unicode-xid-0.2.2.crate) = 8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3
-SIZE (rust/crates/unicode-xid-0.2.2.crate) = 14955
 SHA256 (rust/crates/url-2.2.2.crate) = a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c
 SIZE (rust/crates/url-2.2.2.crate) = 68555
+SHA256 (rust/crates/version_check-0.9.4.crate) = 49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f
+SIZE (rust/crates/version_check-0.9.4.crate) = 14895
 SHA256 (rust/crates/which-4.2.4.crate) = 2a5a7e487e921cf220206864a94a89b6c6905bfc19f1057fa26a4cb360e5c1d2
 SIZE (rust/crates/which-4.2.4.crate) = 9259
 SHA256 (rust/crates/winapi-0.3.9.crate) = 5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419