keychain.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. ## keychain.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: keychain
  27. Summary: SSH Agent Key Management
  28. URL: http://www.gentoo.org/proj/en/keychain.xml
  29. Vendor: Daniel Robbins
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Network
  34. License: GPL
  35. Version: 2.3.5
  36. Release: 20040729
  37. # list of sources
  38. Source0: http://dev.gentoo.org/~agriffis/keychain/keychain-%{version}.tar.bz2
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Keychain is an OpenSSH key manager, typically run from
  48. ~/.bash_profile. When run, it will make sure ssh-agent is running;
  49. if not, it will start ssh-agent. It will redirect ssh-agent's output
  50. to ~/.ssh-agent-[hostname], so that cron jobs that need to use
  51. ssh-agent keys can simply source this file and make the necessary
  52. passwordless ssh connections. In addition, when keychain runs, it
  53. will check with ssh-agent and make sure that the ssh RSA/DSA keys
  54. that you specified on the keychain command line have actually been
  55. added to ssh-agent. If not, you are prompted for the appropriate
  56. passphrases so that they can be added by keychain.
  57. %track
  58. prog keychain = {
  59. version = %{version}
  60. url = http://dev.gentoo.org/~agriffis/keychain/
  61. regex = keychain-(__VER__)\.tar\.bz2
  62. }
  63. %prep
  64. %setup -q
  65. %build
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. %{l_shtool} mkdir -f -p -m 755 \
  69. $RPM_BUILD_ROOT%{l_prefix}/bin \
  70. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  71. %{l_shtool} install -c -m 755 \
  72. keychain $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -m 644 \
  74. keychain.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  76. %files -f files
  77. %clean
  78. rm -rf $RPM_BUILD_ROOT