summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/netbeans/files/6.9/netbeans-keychain.patch')
-rw-r--r--dev-util/netbeans/files/6.9/netbeans-keychain.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-util/netbeans/files/6.9/netbeans-keychain.patch b/dev-util/netbeans/files/6.9/netbeans-keychain.patch
new file mode 100644
index 0000000..86c3850
--- /dev/null
+++ b/dev-util/netbeans/files/6.9/netbeans-keychain.patch
@@ -0,0 +1,23 @@
+--- ide/launcher/unix/netbeans.orig 2010-07-17 20:08:48.778263924 +0200
++++ ide/launcher/unix/netbeans 2010-07-17 20:11:28.547222625 +0200
+@@ -169,6 +169,20 @@
+ then
+ sh=/bin/bash
+ fi
++ keychain=`which keychain`
++ if [ -n "$keychain" ]; then
++ $keychain -q
++ . $HOME/.keychain/$HOSTNAME-sh
++ if [ -e $userdir/keychain-keys.txt ]; then
++ for key in `cat $userdir/keychain-keys.txt`; do
++ SSH_ASKPASS=`which x11-ssh-askpass`
++ export SSH_ASKPASS
++ if [ -n "$key" ]; then
++ keychain $key
++ fi
++ done
++ fi
++ fi
+ if [ "${founduserdir}" = "yes" ]; then
+ exec $sh "$nbexec" "$@"
+ else