git: 7ebd4ff07485 - main - net/aws-ec2-imdsv2-get: Add new port

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Sat, 11 Mar 2023 22:49:13 UTC
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7ebd4ff07485094bbdf04e7ade6a2ff426e6a704

commit 7ebd4ff07485094bbdf04e7ade6a2ff426e6a704
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2023-03-11 22:42:53 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2023-03-11 22:48:53 +0000

    net/aws-ec2-imdsv2-get: Add new port
    
    Tool for reading data from the EC2 Instance Metadata Service (IMDS),
    supporting both the original (v1) protocol and the newer (v2) protocol.
    Authored by Jarrett Tierney.
    
    Sponsored by:   https://www.patreon.com/cperciva
---
 net/Makefile                     |  1 +
 net/aws-ec2-imdsv2-get/Makefile  | 24 ++++++++++++++++++++++++
 net/aws-ec2-imdsv2-get/distinfo  |  3 +++
 net/aws-ec2-imdsv2-get/pkg-descr |  2 ++
 4 files changed, 30 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index f31d9f07b85d..3ff3a620ae6c 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -45,6 +45,7 @@
     SUBDIR += avahi-libdns
     SUBDIR += avahi-qt5
     SUBDIR += avahi-sharp
+    SUBDIR += aws-ec2-imdsv2-get
     SUBDIR += axa
     SUBDIR += babeld
     SUBDIR += balance
diff --git a/net/aws-ec2-imdsv2-get/Makefile b/net/aws-ec2-imdsv2-get/Makefile
new file mode 100644
index 000000000000..1e7f286c2a95
--- /dev/null
+++ b/net/aws-ec2-imdsv2-get/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	aws-ec2-imdsv2-get
+DISTVERSION=	1.0.3
+CATEGORIES=	net
+
+MAINTAINER=	cperciva@FreeBSD.org
+COMMENT=	Reads data from EC2 IMDS with v2 protocol
+WWW=		https://github.com/aws/aws-ec2-imdsv2-get
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cargo
+USE_GITHUB=	yes
+GH_ACCOUNT=	aws
+
+PORTDOCS=	NOTICE README.md
+
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/net/aws-ec2-imdsv2-get/distinfo b/net/aws-ec2-imdsv2-get/distinfo
new file mode 100644
index 000000000000..99870cdec874
--- /dev/null
+++ b/net/aws-ec2-imdsv2-get/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1678403227
+SHA256 (aws-aws-ec2-imdsv2-get-1.0.3_GH0.tar.gz) = 38eafc507d181a633b2d68eca5072f875c28ec5b2168e5d42859102611e90058
+SIZE (aws-aws-ec2-imdsv2-get-1.0.3_GH0.tar.gz) = 7427
diff --git a/net/aws-ec2-imdsv2-get/pkg-descr b/net/aws-ec2-imdsv2-get/pkg-descr
new file mode 100644
index 000000000000..3ff379ba0579
--- /dev/null
+++ b/net/aws-ec2-imdsv2-get/pkg-descr
@@ -0,0 +1,2 @@
+Tool for reading data from the EC2 Instance Metadata Service (IMDS),
+supporting both the original (v1) protocol and the newer (v2) protocol.