FreeBSD Bugzilla – Attachment 228387 Details for
Bug 258879
[NEW PORT] sysutils/amazon-ssm-plugin: Amazon AWS SSM Session Manager Plugin for AWSCLi
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sysutils/amazon-ssm-plugin port
amazon-ssm-plugin.shar (text/plain), 5.95 KB, created by
Norikatsu Shigemura
on 2021-10-03 02:03:23 UTC
(
hide
)
Description:
sysutils/amazon-ssm-plugin port
Filename:
MIME Type:
Creator:
Norikatsu Shigemura
Created:
2021-10-03 02:03:23 UTC
Size:
5.95 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># amazon-ssm-plugin/distinfo ># amazon-ssm-plugin/files/patch-seelog__unix.xml ># amazon-ssm-plugin/files/patch-src_log_log__unix.go ># amazon-ssm-plugin/files/patch-src_version_version.go ># amazon-ssm-plugin/Makefile ># amazon-ssm-plugin/pkg-descr ># >echo x - amazon-ssm-plugin/distinfo >sed 's/^X//' >amazon-ssm-plugin/distinfo << 'a7a4d49dde9cb8e3facf841b4d6c903a' >XTIMESTAMP = 1633074631 >XSHA256 (aws-session-manager-plugin-1.2.245.0_GH0.tar.gz) = 98ecb258b9e17dda98c75160e649866cbd2b644170634d7a3a9f78fe0e34e3d1 >XSIZE (aws-session-manager-plugin-1.2.245.0_GH0.tar.gz) = 21641956 >a7a4d49dde9cb8e3facf841b4d6c903a >echo x - amazon-ssm-plugin/files/patch-seelog__unix.xml >sed 's/^X//' >amazon-ssm-plugin/files/patch-seelog__unix.xml << '056d919c4558596e0b2debeab7a7ccea' >X--- seelog_unix.xml.orig 2021-08-17 20:31:44 UTC >X+++ seelog_unix.xml >X@@ -6,9 +6,9 @@ >X <exception filepattern="test*" minlevel="error"/> >X </exceptions> >X <outputs formatid="fmtinfo"> >X- <rollingfile type="size" filename="/usr/local/sessionmanagerplugin/logs/session-manager-plugin.log" maxsize="30000000" maxrolls="5"/> >X+ <rollingfile type="size" filename="%%LOGDIR%%/session-manager-plugin.log" maxsize="30000000" maxrolls="5"/> >X <filter levels="error,critical" formatid="fmterror"> >X- <rollingfile type="size" filename="/usr/local/sessionmanagerplugin/logs/errors.log" maxsize="10000000" maxrolls="5"/> >X+ <rollingfile type="size" filename="%%LOGDIR%%/session-manager-plugin-errors.log" maxsize="10000000" maxrolls="5"/> >X </filter> >X </outputs> >X <formats> >056d919c4558596e0b2debeab7a7ccea >echo x - amazon-ssm-plugin/files/patch-src_log_log__unix.go >sed 's/^X//' >amazon-ssm-plugin/files/patch-src_log_log__unix.go << '41e66be410c370f794d62d0a539c6ea8' >X--- src/log/log_unix.go.orig 2021-08-17 20:31:44 UTC >X+++ src/log/log_unix.go >X@@ -23,8 +23,8 @@ import ( >X ) >X >X const ( >X- LogsDirectory = "logs" >X- DefaultInstallLocationPrefix = "/usr/local" >X+ DefaultLogsDirectory = "%%LOGDIR%%" >X+ DefaultInstallLocationPrefix = "%%ETCDIR%%" >X ) >X >X func getApplicationName(clientName string) string { >X@@ -45,7 +45,7 @@ func getLogConfigBytes(clientName string) (logConfigBy >X >X applicationName := getApplicationName(clientName) >X DefaultSeelogConfigFilePath = filepath.Join(DefaultInstallLocationPrefix, applicationName, SeelogConfigFileName) >X- DefaultLogDir = filepath.Join(DefaultInstallLocationPrefix, applicationName, LogsDirectory) >X+ DefaultLogDir = filepath.Join(DefaultLogsDirectory, applicationName) >X ApplicationLogFile = fmt.Sprintf("%s%s", clientName, LogFileExtension) >X ErrorLogFile = fmt.Sprintf("%s%s", ErrorLogFileSuffix, LogFileExtension) >X if logConfigBytes, err = ioutil.ReadFile(DefaultSeelogConfigFilePath); err != nil { >41e66be410c370f794d62d0a539c6ea8 >echo x - amazon-ssm-plugin/files/patch-src_version_version.go >sed 's/^X//' >amazon-ssm-plugin/files/patch-src_version_version.go << '92e8258bc71375b220918e93f091495c' >X--- src/version/version.go.orig 2021-08-17 20:31:44 UTC >X+++ src/version/version.go >X@@ -9,4 +9,4 @@ >X package version >X >X // Version is the version of the CLI >X-const Version = "1.2.0.0" >X+const Version = "%%PORTVERSION%%" >92e8258bc71375b220918e93f091495c >echo x - amazon-ssm-plugin/Makefile >sed 's/^X//' >amazon-ssm-plugin/Makefile << 'b29fc3068df0c03229658e1b75269b80' >XPORTNAME= amazon-ssm-plugin >XPORTVERSION= 1.2.245.0 >XCATEGORIES= sysutils >X >XMAINTAINER= nork@ninth-nine.com >XCOMMENT= Amazon AWS Manages shell experience using SSM APIs >X >XLICENSE= APACHE20 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XRUN_DEPENDS= aws:devel/awscli >X >XUSES= go >XUSE_GITHUB= yes >XGH_ACCOUNT= aws >XGH_PROJECT= session-manager-plugin >XGH_SUBDIR= src/SSMCLI >X >XGO_BUILDFLAGS= -ldflags "-s -w" >XGO_TARGET= src/sessionmanagerplugin-main/main.go:${PREFIX}/bin/session-manager-plugin \ >X src/ssmcli-main/main.go:${PREFIX}/bin/ssmcli >X >XPORTDOCS= NOTICE README.md RELEASENOTES.md THIRD-PARTY VERSION >XPLIST_FILES= bin/ssmcli \ >X bin/session-manager-plugin \ >X ${ETCDIR}/SSMCLI/seelog.xml.template \ >X ${ETCDIR}/sessionmanagerplugin/seelog.xml.template >X >XLOGDIR= ${DESTDIR}/var/log/${PORTNAME} >X >XOPTIONS_DEFINE= DOCS >X >Xpost-extract: >X ${MKDIR} ${GO_WRKSRC}/src ${GO_WRKSRC}/vendor >X ${MKDIR} ${WRKSRC}/vendor/src/github.com/aws/SSMCLI >X ${LN} -s ${WRKSRC}/src/*-main ${GO_WRKSRC}/src/ >X ${LN} -s ${WRKSRC}/vendor/src/* ${GO_WRKSRC}/vendor/ >X ${LN} -s ${WRKSRC}/src ${GO_WRKSRC}/vendor/github.com/aws/SSMCLI/ >X >Xpost-patch: >X ${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g; s|%%LOGDIR%%|${LOGDIR}|g' ${WRKSRC}/seelog_unix.xml >X ${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g; s|%%LOGDIR%%|${LOGDIR}|g' ${WRKSRC}/src/log/log_unix.go >X ${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/src/version/version.go >X >Xpost-install: >X ${MKDIR} ${STAGEDIR}${ETCDIR}/SSMCLI ${STAGEDIR}${ETCDIR}/sessionmanagerplugin >X ${INSTALL_DATA} ${WRKSRC}/seelog_unix.xml ${STAGEDIR}${ETCDIR}/SSMCLI/seelog.xml.template >X ${INSTALL_DATA} ${WRKSRC}/seelog_unix.xml ${STAGEDIR}${ETCDIR}/sessionmanagerplugin/seelog.xml.template >X >Xpost-install-DOCS-on: >X @${MKDIR} ${STAGEDIR}${DOCSDIR} >X cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} >X >X.include <bsd.port.mk> >b29fc3068df0c03229658e1b75269b80 >echo x - amazon-ssm-plugin/pkg-descr >sed 's/^X//' >amazon-ssm-plugin/pkg-descr << '31a668ffdf068b1fd671cbd6e3b5f2a0' >XThis package provides Amazon SSM SessionManager and CLI for managing >Xshell experience using SSM APIs. >X >XHOW TO USE: >X aws ssm start-session --target "your instance-id" >X >XWWW: https://github.com/aws/session-manager-plugin/ >XWWW: https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html >31a668ffdf068b1fd671cbd6e3b5f2a0 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258879
:
228387
|
229134
|
234301