Mirror of GNU Guix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.6 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012 Andreas Enge <andreas@enge.fr>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages mit-krb5)
  19. #:use-module (gnu packages)
  20. #:use-module (gnu packages bison)
  21. #:use-module (gnu packages perl)
  22. #:use-module (guix licenses)
  23. #:use-module (guix packages)
  24. #:use-module (guix download)
  25. #:use-module (guix build-system gnu))
  26. (define-public mit-krb5
  27. (package
  28. (name "mit-krb5")
  29. (version "1.11")
  30. (source (origin
  31. (method url-fetch)
  32. (uri (string-append "http://web.mit.edu/kerberos/www/dist/krb5/"
  33. version
  34. "/krb5-" version
  35. "-signed.tar"))
  36. (sha256 (base32
  37. "0lc6lxb98qzg4x01lppq700vkr1ax9rld09znahrinwqnf9zndzy"))))
  38. (build-system gnu-build-system)
  39. (inputs `(("bison" ,bison)
  40. ("perl" ,perl)
  41. ))
  42. (arguments
  43. (lambda (system)
  44. `(#:tests? #f
  45. #:phases
  46. (alist-replace
  47. 'unpack
  48. (lambda* (#:key source #:allow-other-keys)
  49. (system* "echo" source)
  50. (let ((inner
  51. (substring source
  52. (string-index-right source #\k)
  53. (string-index-right source #\-))))
  54. (system* "echo" inner)
  55. (and (zero? (system* "tar" "xvf" source))
  56. (zero? (system* "tar" "xvf" (string-append inner ".tar.gz")))
  57. (chdir inner)
  58. (chdir "src"))))
  59. %standard-phases))))
  60. (synopsis "MIT Kerberos 5")
  61. (description
  62. "Massachusetts Institute of Technology implementation of Kerberos.
  63. Kerberos is a network authentication protocol designed to provide strong
  64. authentication for client/server applications by using secret-key cryptography.")
  65. (license (bsd-style "file://NOTICE"
  66. "See NOTICE in the distribution."))
  67. (home-page "http://web.mit.edu/kerberos/")))