[arch-commits] Commit in keychain/repos/extra-any (3 files)
Eric Bélanger
eric at archlinux.org
Thu Mar 19 19:37:24 UTC 2015
Date: Thursday, March 19, 2015 @ 20:37:23
Author: eric
Revision: 234172
archrelease: copy trunk to extra-any
Added:
keychain/repos/extra-any/PKGBUILD
(from rev 234171, keychain/trunk/PKGBUILD)
keychain/repos/extra-any/keychain-openssh68.patch
(from rev 234171, keychain/trunk/keychain-openssh68.patch)
Deleted:
keychain/repos/extra-any/PKGBUILD
--------------------------+
PKGBUILD | 55 +++++++++++++++++++++++++--------------------
keychain-openssh68.patch | 49 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+), 24 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-03-19 19:36:02 UTC (rev 234171)
+++ PKGBUILD 2015-03-19 19:37:23 UTC (rev 234172)
@@ -1,24 +0,0 @@
-# $Id$
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgname=keychain
-pkgver=2.7.1
-pkgrel=3
-pkgdesc="A front-end to ssh-agent, allowing one long-running ssh-agent process per system, rather than per login"
-arch=('any')
-url="http://www.funtoo.org/Keychain"
-license=('GPL2')
-depends=('sh')
-source=(http://www.funtoo.org/archive/keychain/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('e7ad7da374ba81e57792bb2695eb6c352f769de7')
-
-build() {
- cd ${pkgname}-${pkgver}
- make
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- install -Dm755 keychain "${pkgdir}/usr/bin/keychain"
- install -Dm644 keychain.1 "${pkgdir}/usr/share/man/man1/keychain.1"
-}
Copied: keychain/repos/extra-any/PKGBUILD (from rev 234171, keychain/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-03-19 19:37:23 UTC (rev 234172)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=keychain
+pkgver=2.7.1
+pkgrel=4
+pkgdesc="A front-end to ssh-agent, allowing one long-running ssh-agent process per system, rather than per login"
+arch=('any')
+url="http://www.funtoo.org/Keychain"
+license=('GPL2')
+depends=('sh')
+source=(http://www.funtoo.org/archive/keychain/${pkgname}-${pkgver}.tar.bz2
+ keychain-openssh68.patch)
+sha1sums=('e7ad7da374ba81e57792bb2695eb6c352f769de7'
+ '339005a006e70f2bb52d19f1f61dc0e6fb1f59bc')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 -i "${srcdir}/keychain-openssh68.patch"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm755 keychain "${pkgdir}/usr/bin/keychain"
+ install -Dm644 keychain.1 "${pkgdir}/usr/share/man/man1/keychain.1"
+}
Copied: keychain/repos/extra-any/keychain-openssh68.patch (from rev 234171, keychain/trunk/keychain-openssh68.patch)
===================================================================
--- keychain-openssh68.patch (rev 0)
+++ keychain-openssh68.patch 2015-03-19 19:37:23 UTC (rev 234172)
@@ -0,0 +1,49 @@
+From d76c2e9aa1c05ceac1c2d06a29783ee95e876a37 Mon Sep 17 00:00:00 2001
+From: Daniel Robbins <drobbins at funtoo.org>
+Date: Wed, 18 Mar 2015 11:20:58 -0600
+Subject: [PATCH] FL-2195: From Todd Eigenschink <todd at xymmetrix.com>:
+
+OpenSSH 6.8, which was just released, includes the following change:
+
+http://www.openssh.com/txt/release-6.8
+
+ Fingerprints now have the hash algorithm prepended. An example of
+ the new format: SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE
+ Please note that visual host keys will also be different.
+
+(Previous versions always dumped in MD5 with no prefix.)
+
+The pattern match that keychain uses doesn't work with the new
+fingerprint format. The patch below takes care of it.
+
+I used shopt extglob so I could use @( ) for the alternative. I'm not
+a bash pattern whiz; there may be a better way to do that.
+---
+ keychain.sh | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/keychain.sh b/keychain.sh
+index 1834c85..c9a25d5 100755
+--- a/keychain.sh
++++ b/keychain.sh
+@@ -55,6 +55,8 @@ systemdopt=false
+ unset ssh_confirm
+ unset GREP_OPTIONS
+
++shopt -s extglob
++
+ BLUE="[34;01m"
+ CYAN="[36;01m"
+ CYANN="[36m"
+@@ -671,6 +673,11 @@
+ # 1024 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 /home/barney/.ssh/id_dsa (DSA)
+ echo "$ef_line" | cut -f2 -d' '
+ ;;
++ *\ @(SHA256|MD5):[0-9a-zA-Z\+\/=]*)
++ # The new OpenSSH 6.8+ format,
++ # 1024 SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE /home/barney/.ssh/id_dsa (DSA)
++ echo "$ef_line" | cut -f2 -d' '
++ ;;
+ *)
+ # Fall back to filename. Note that commercial ssh is handled
+ # explicitly in ssh_l and ssh_f, so hopefully this rule will
More information about the arch-commits
mailing list