keychain-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Summary: An OpenSSH key manager
  2. Name: keychain
  3. Version: 2.0.3
  4. Release: 0vl1
  5. License: GPL
  6. Group: Applications/Internet
  7. Source0: http://gentoo.oregonstate.edu/distfiles/%{name}-%{version}.tar.bz2
  8. URL: http://www.gentoo.org/projects/keychain
  9. Prefix: /usr
  10. BuildArch: noarch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Requires: bash, openssh-clients
  13. Summary(ja): OpenSSHの鍵管理ツール
  14. %description
  15. Keychain is an OpenSSH key manager, typically run from ~/.bash_profile. When
  16. run, it will make sure ssh-agent is running; if not, it will start ssh-agent.
  17. It will redirect ssh-agent's output to ~/.ssh-agent, so that cron jobs that
  18. need to use ssh-agent keys can simply source this file and make the necessary
  19. passwordless ssh connections. In addition, when keychain runs, it will
  20. check with ssh-agent and make sure that the ssh RSA/DSA keys that you
  21. specified on the keychain command line have actually been added to
  22. ssh-agent. If not, you are prompted for the appropriate passphrases so that
  23. they can be added by keychain.
  24. %description -l ja
  25. keychainはOpenSSHの鍵を管理するためのツールで,~/.bash_profileなどから起動
  26. されます. keychainはまずssh-agentが動作しているかどうかをチェックし,動作
  27. していないようであればssh-agentを起動します.そしてssh-agentの出力を
  28. ~/.ssh-agent-<hostname>というファイルに書き込みます.このファイルはcronな
  29. どから実行されるシェルスクリプトにとって特に有用で,単にsourceするだけで
  30. ssh-agentにアクセスすることができるようになります.その結果,パスフレーズ
  31. の入力をどうするかという問題になやまされなくて済むのです.
  32. 一般的には~/.bash_profileや~/.zprofileに次のような記述をしおくとよいでしょ
  33. う.
  34. keychain ~/.ssh/id_rsa ~/.ssh/id_dsa ~/.ssh/identity
  35. . ~/.keychain/`hostname`-sh
  36. * 1.8-0vl3 以前とは書式が変わっています! *
  37. %prep
  38. %setup -q
  39. %build
  40. %install
  41. rm -rf ${RPM_BUILD_ROOT}
  42. mkdir -p ${RPM_BUILD_ROOT}{%{_bindir},%{_mandir}/man1}
  43. install -m555 keychain ${RPM_BUILD_ROOT}%{_bindir}
  44. install -m555 keychain.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
  45. %clean
  46. rm -rf ${RPM_BUILD_ROOT}
  47. %files
  48. %defattr(-, root, root)
  49. %{_bindir}/keychain
  50. %{_mandir}/man1/keychain.1*
  51. %doc ChangeLog README COPYING
  52. %changelog
  53. * Tue Sep 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.3-0vl2
  54. - fix typo in Group:
  55. - use License: instead of Copyright:
  56. * Fri Feb 6 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.3-0vl1
  57. - new upstream release
  58. - add COPYING in %%doc
  59. - update SOURCE0 URL
  60. - update user's manual in %%description
  61. * Sun Feb 03 2002 akira yamada <akira@vinelinux.org> 1.8-0vl3
  62. - requires bash
  63. * Mon Dec 03 2001 Yoichi Imai <yoichi@silver-forest.com>
  64. - 1.8-0vl1
  65. - source update
  66. * Sun Dec 02 2001 Yoichi Imai <yoichi@silver-forest.com>
  67. - 1.7-0vl1
  68. - initial release.