git: f70d4c1e03f3 - main - sysutils/amazon-ssm-plugin: Update to 1.2.707.0

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Sat, 08 Feb 2025 02:41:22 UTC
The branch main has been updated by nork:

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

commit f70d4c1e03f34889ee08b5f58988714ccbb35031
Author:     Norikatsu Shigemura <nork@FreeBSD.org>
AuthorDate: 2025-02-08 02:40:46 +0000
Commit:     Norikatsu Shigemura <nork@FreeBSD.org>
CommitDate: 2025-02-08 02:40:46 +0000

    sysutils/amazon-ssm-plugin: Update to 1.2.707.0
    
    The VERSION of compile-time has been updated. To ensure optimal
    performance and access to the latest features, the AWS strongly
    recommend using new version.
    
    Using sysutils/amazon-ssm-plugin before 1.2.707.0 may result in
    potential feature limitations or functionality issues. Keeping
    your plugin up to date ensures that you have access to the latest
    enhancements and capabilities of the Session Manager Plugin.
    
    ChangeLog:      https://github.com/aws/session-manager-plugin/compare/1.2.694.0...1.2.707.0
    Approved by:    hrs (mentor, blanket)
---
 sysutils/amazon-ssm-plugin/Makefile            | 7 +++++--
 sysutils/amazon-ssm-plugin/distinfo            | 6 +++---
 sysutils/amazon-ssm-plugin/files/patch-VERSION | 7 +++++++
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/sysutils/amazon-ssm-plugin/Makefile b/sysutils/amazon-ssm-plugin/Makefile
index a7d992732a5a..0c85c8307636 100644
--- a/sysutils/amazon-ssm-plugin/Makefile
+++ b/sysutils/amazon-ssm-plugin/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	amazon-ssm-plugin
-DISTVERSION=	1.2.694.0
+DISTVERSION=	1.2.707.0
 PORTREVISION=	0
 CATEGORIES=	sysutils
 
@@ -45,6 +45,8 @@ LOGDIR=		${DESTDIR}/var/log/${PORTNAME}
 
 OPTIONS_DEFINE=	DOCS
 
+RECOMMEND_VERSION=	1.3.0.0
+
 post-extract:
 	@${MKDIR} ${WRKDIR}/src
 	@${LN} -s ${WRKSRC} ${GO_WRKSRC}
@@ -56,7 +58,8 @@ post-extract:
 	${LN} -s  ${WRKSRC}                             ${WRKDIR}/src/vendor/github.com/${GH_ACCOUNT}/${GH_PROJECT}
 
 post-patch:
-	${REINPLACE_CMD} -e 's|%%VERSION%%|${DISTVERSION}|' ${WRKSRC}/src/version/version.go
+	${REINPLACE_CMD} -e 's|%%VERSION%%|${RECOMMEND_VERSION}|' ${WRKSRC}/VERSION
+	${REINPLACE_CMD} -e 's|%%VERSION%%|${RECOMMEND_VERSION}|' ${WRKSRC}/src/version/version.go
 	${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g; s|%%LOGDIR%%|${LOGDIR}|g' ${WRKSRC}/seelog_unix.xml
 	${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g; s|%%LOGDIR%%|${LOGDIR}|g' ${WRKSRC}/src/log/log_unix.go
 
diff --git a/sysutils/amazon-ssm-plugin/distinfo b/sysutils/amazon-ssm-plugin/distinfo
index 347d2bc0af83..cd514fe87ab7 100644
--- a/sysutils/amazon-ssm-plugin/distinfo
+++ b/sysutils/amazon-ssm-plugin/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1732179764
-SHA256 (aws-session-manager-plugin-1.2.694.0_GH0.tar.gz) = 55df529d380a74adc1fce536cbd32f6938be18d8536d683d20d657307ade9589
-SIZE (aws-session-manager-plugin-1.2.694.0_GH0.tar.gz) = 35491825
+TIMESTAMP = 1738947738
+SHA256 (aws-session-manager-plugin-1.2.707.0_GH0.tar.gz) = f7a1d1152f8b1322babdb9551e62b08efbcb334c46c2fc17a84615c176a0389b
+SIZE (aws-session-manager-plugin-1.2.707.0_GH0.tar.gz) = 35492492
 SHA256 (aws-aws-sdk-go-v1.54.10_GH0.tar.gz) = d682bdd896a59a6ad82fceae275a6c20bd1d9b193758dc1db06db97fab956dac
 SIZE (aws-aws-sdk-go-v1.54.10_GH0.tar.gz) = 33088833
 SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e
diff --git a/sysutils/amazon-ssm-plugin/files/patch-VERSION b/sysutils/amazon-ssm-plugin/files/patch-VERSION
new file mode 100644
index 000000000000..8039914acadf
--- /dev/null
+++ b/sysutils/amazon-ssm-plugin/files/patch-VERSION
@@ -0,0 +1,7 @@
+--- VERSION.orig	2025-02-05 21:41:55 UTC
++++ VERSION
+@@ -1 +1 @@
+-1.2.0.0
+\ No newline at end of file
++1.3.0.0
+\ No newline at end of file