Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2022 13:56:26 GMT
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f3e2dd3b4459 - main - sysutils/ansible-sshjail: Update, fix with ansible 5.x
Message-ID:  <202201261356.20QDuQAX069913@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by madpilot:

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

commit f3e2dd3b4459e477f6a05b2553aa684629a6ad41
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2022-01-26 13:54:41 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2022-01-26 13:56:21 +0000

    sysutils/ansible-sshjail: Update, fix with ansible 5.x
    
    - Update port to latest upstream commit
    - Import upstream Pull Request patch fixing at runtime with recent
      ansible 5.x [1]
    
    Obtained from:  https://github.com/austinhyde/ansible-sshjail/pull/38 [1]
---
 sysutils/ansible-sshjail/Makefile         |  4 +--
 sysutils/ansible-sshjail/distinfo         |  6 ++--
 sysutils/ansible-sshjail/files/patch-pr38 | 46 +++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+), 5 deletions(-)

diff --git a/sysutils/ansible-sshjail/Makefile b/sysutils/ansible-sshjail/Makefile
index e0bf03dfcaa3..94eac87dc146 100644
--- a/sysutils/ansible-sshjail/Makefile
+++ b/sysutils/ansible-sshjail/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	ansible-sshjail
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.1.0-35
-DISTVERSIONSUFFIX=	-g35c3bf6
+DISTVERSION=	1.1.0-37
+DISTVERSIONSUFFIX=	-ge712c53
 CATEGORIES=	sysutils
 
 MAINTAINER=	madpilot@FreeBSD.org
diff --git a/sysutils/ansible-sshjail/distinfo b/sysutils/ansible-sshjail/distinfo
index b4c06a1e174b..7cf72e6d2a04 100644
--- a/sysutils/ansible-sshjail/distinfo
+++ b/sysutils/ansible-sshjail/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1628281322
-SHA256 (austinhyde-ansible-sshjail-v1.1.0-35-g35c3bf6_GH0.tar.gz) = af7da24370e00d7cbc96b7b6873dd7f833b9ccc3b882927c7e12df60ee9fb714
-SIZE (austinhyde-ansible-sshjail-v1.1.0-35-g35c3bf6_GH0.tar.gz) = 10896
+TIMESTAMP = 1643203963
+SHA256 (austinhyde-ansible-sshjail-v1.1.0-37-ge712c53_GH0.tar.gz) = a7c8ef90a1b72aebd65818ab08c175ecf1a4a6d518fdcfff15ce3e61301a073e
+SIZE (austinhyde-ansible-sshjail-v1.1.0-37-ge712c53_GH0.tar.gz) = 10892
diff --git a/sysutils/ansible-sshjail/files/patch-pr38 b/sysutils/ansible-sshjail/files/patch-pr38
new file mode 100644
index 000000000000..62ea8f53f789
--- /dev/null
+++ b/sysutils/ansible-sshjail/files/patch-pr38
@@ -0,0 +1,46 @@
+From 3b6fec58dd3e6b070176e0aafcbfed3cb5a0bd18 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Lo=C3=AFc=20Blot?= <nerzhul@users.noreply.github.com>
+Date: Sat, 18 Dec 2021 11:16:53 +0100
+Subject: [PATCH] fix: ansible 2.12 and + compat + become fix
+
+---
+ sshjail.py | 19 ++++++++++++++++---
+ 1 file changed, 16 insertions(+), 3 deletions(-)
+
+diff --git a/sshjail.py b/sshjail.py
+index 7987d39..118f96f 100644
+--- sshjail.py
++++ sshjail.py
+@@ -289,6 +289,17 @@
+         vars:
+           - name: ansible_ssh_use_tty
+             version_added: '2.7'
++      pkcs11_provider:
++        version_added: '2.12'
++        default: ''
++        description:
++          - PKCS11 SmartCard provider such as opensc, example: /usr/local/lib/opensc-pkcs11.so
++          - Requires sshpass version 1.06+, sshpass must support the -P option.
++        env: [{name: ANSIBLE_PKCS11_PROVIDER}]
++        ini:
++          - {key: pkcs11_provider, section: ssh_connection}
++        vars:
++          - name: ansible_ssh_pkcs11_provider
+       timeout:
+         default: 10
+         description:
+@@ -442,9 +453,11 @@ def _normalize_path(self, path, prefix):
+         return os.path.join(prefix, normpath[1:])
+ 
+     def _copy_file(self, from_file, to_file, executable='/bin/sh'):
+-        plugin = self.become
+-        shell = get_shell_plugin(executable=executable)
+-        copycmd = plugin.build_become_command(' '.join(['cp', from_file, to_file]), shell)
++        copycmd = ' '.join(['cp', from_file, to_file])
++        if self._play_context.become:
++        	plugin = self.become
++        	shell = get_shell_plugin(executable=executable)
++        	copycmd = plugin.build_become_command(copycmd, shell)
+ 
+         display.vvv(u"REMOTE COPY {0} TO {1}".format(from_file, to_file), host=self.inventory_hostname)
+         code, stdout, stderr = self._jailhost_command(copycmd)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201261356.20QDuQAX069913>