app-crypt/monkeysphere: Add non-default port fix to known_hosts
authorkristianf <devnull@localhost>
Mon, 7 Oct 2013 17:26:39 +0000 (19:26 +0200)
committerkristianf <devnull@localhost>
Mon, 7 Oct 2013 17:26:39 +0000 (19:26 +0200)
app-crypt/monkeysphere/Manifest
app-crypt/monkeysphere/files/02_non_default_port.patch [new file with mode: 0644]
app-crypt/monkeysphere/monkeysphere-0.36.ebuild

index ba5dc99..b6cae4b 100644 (file)
@@ -1,3 +1,4 @@
 AUX 01_default_shell.patch 612 SHA256 7727f561af4bc46d1c780c448f8d29005d83c20792b6a26e884ef2403253ec91 SHA512 dc80ff4f8f94cc7ae07e16d2e4f2327d939a8c610831bb71364be41e5dfb9fe629e256c17e7c9ef6cb833a5f08524183114b38fdae589481940aefd0a7dbb31b WHIRLPOOL f64cf2afa1d6995a7f937900740cecc435a8efc3a3e9b3324fab711441366b12af9d9ec51fa7c7f02e60c9b3ba284650b5be591dfd6d4cffb1c356825fb1eabb
+AUX 02_non_default_port.patch 418 SHA256 7d20a74a0ec3d49b93d1d881d22d5d13316b4c16c709cfab23782cd0ed03b41c SHA512 2a173500e0b659a79a7274e042e49a282f708cda0f6a78ce8fa126013e35c4f6f117e606b90ce31da5158e58ab52a236038a913cc98c5ae1fc8e04a5dcbf816e WHIRLPOOL 825bfa045f03444bdd301cac503a6932d0f75c52bfa72fa8f07e79a1ba359600c8f15e7a930d349bb8c2afa4aedc5f3a6e4f22436fccbf4f60a22060a66c8c4c
 DIST monkeysphere_0.36.orig.tar.gz 98876 SHA256 6ae4edeff2cc29b6913346e15b61500ea7cc06d761a9f42e67de83b7d2607be7 SHA512 eb6776bd9996db8a5d6a1d16b5b06e6733069cbb3cb35f4e3965508575e084c6f08576f31c71429432daf93910d145804ecf155c3d7550a0f4550a056cb4f0c8 WHIRLPOOL c163d0be77d3c6d838f752c8f53d967b17aeafd798e4fca694a31bf55628fb57d18b6a4664ca9552bd3daf3b89b6f86452d430529985ca0a31c3c4aa48470bc0
-EBUILD monkeysphere-0.36.ebuild 1077 SHA256 b595563a6356525e920b174cf4bdbf8b6b3a7a5c29b4a8ab3c9c3572993a1350 SHA512 86e6ddc1097696a14b82ed000053dcf9d4e5ed1178154cd790dc78681131531fe2d62fe54d87514ad72009ba0ccbd29be62c9fb8c0c27bddc5acaf02eab866d8 WHIRLPOOL b32eede409a57a3edcf7f13806e80c6657c00c897b7d544b148c55b8dadc0f847493031a321a562c5b4268d75d44a5eed0f47cde761334fbd9845fb2032c8dfa
+EBUILD monkeysphere-0.36.ebuild 1125 SHA256 cb49f422777b629b42622bd2ff1630bfd2ca9d25a3232fc8b8191da06ac8fe44 SHA512 38fdefbe8b378159e3fe819d4edcfc8e178afc6caa7cb7ff0b4db9651b27b55a26137b468c88e30e0be89dcc6b698831ca73cd5b1ffcb5c3c237d3604fd91b8b WHIRLPOOL 249bd97a9691414ba5b221888f69a575144533b8c554edf41c8bd50625b9cce31dfe250c80dd3f4cf83674c54467da62566bdf959aafd32a75df60470f6a122a
diff --git a/app-crypt/monkeysphere/files/02_non_default_port.patch b/app-crypt/monkeysphere/files/02_non_default_port.patch
new file mode 100644 (file)
index 0000000..f145502
--- /dev/null
@@ -0,0 +1,14 @@
+diff -r 5f7ee764ec1f src/share/common
+--- a/src/share/common Mon Oct 07 19:22:36 2013 +0200
++++ b/src/share/common Mon Oct 07 19:22:58 2013 +0200
+@@ -863,6 +863,10 @@
+                   ;;
+               ('known_hosts')
+                   host=${userID#ssh://}
++                  if [[ "${host}" == *:* ]]; then
++                      IFS=':' read -a ARR <<< "${host}"
++                      host="[${ARR[0]}]:${ARR[1]}"
++                  fi
+                   remove_line "$keyFile" "$host" "$sshKey"
+                   ;;
+           esac
index 96a9430..6675b0e 100644 (file)
@@ -36,6 +36,7 @@ pkg_setup()
 src_prepare()
 {
        epatch "${FILESDIR}/01_default_shell.patch"
+       epatch "${FILESDIR}/02_non_default_port.patch"
        sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile || die
 }