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.
 
 
 
 
 
 

80 lines
3.3 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012, 2013 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.3")
  30. (source (origin
  31. (method url-fetch)
  32. (uri (string-append "http://web.mit.edu/kerberos/www/dist/krb5/"
  33. (string-copy version 0 (string-rindex version #\.))
  34. "/krb5-" version "-signed.tar"))
  35. (sha256 (base32
  36. "1daiaxgkxcryqs37w28v4x1vajqmay4l144d1zd9c2d7jjxr9gcs"))))
  37. (build-system gnu-build-system)
  38. (inputs `(("bison" ,bison)
  39. ("perl" ,perl)))
  40. (arguments
  41. '(#:phases
  42. (alist-replace
  43. 'unpack
  44. (lambda* (#:key source #:allow-other-keys)
  45. (let ((inner
  46. (substring source
  47. (string-index-right source #\k)
  48. (string-index-right source #\-))))
  49. (and (zero? (system* "tar" "xvf" source))
  50. (zero? (system* "tar" "xvf" (string-append inner ".tar.gz")))
  51. (chdir inner)
  52. (chdir "src"))))
  53. (alist-replace
  54. 'check
  55. (lambda* (#:key inputs #:allow-other-keys #:rest args)
  56. (let ((perl (assoc-ref inputs "perl"))
  57. (check (assoc-ref %standard-phases 'check)))
  58. (substitute* "plugins/kdb/db2/libdb2/test/run.test"
  59. (("/bin/cat") (string-append perl "/bin/perl")))
  60. (substitute* "plugins/kdb/db2/libdb2/test/run.test"
  61. (("D/bin/sh") (string-append "D" (which "bash"))))
  62. (substitute* "plugins/kdb/db2/libdb2/test/run.test"
  63. (("bindir=/bin/.") (string-append "bindir=" perl "/bin")))
  64. ;; use existing files and directories in test
  65. (substitute* "tests/resolve/Makefile"
  66. (("-p telnet") "-p 23"))
  67. ;; avoid service names since /etc/services is unavailable
  68. (apply check args)))
  69. %standard-phases))))
  70. (synopsis "MIT Kerberos 5")
  71. (description
  72. "Massachusetts Institute of Technology implementation of Kerberos.
  73. Kerberos is a network authentication protocol designed to provide strong
  74. authentication for client/server applications by using secret-key cryptography.")
  75. (license (bsd-style "file://NOTICE"
  76. "See NOTICE in the distribution."))
  77. (home-page "http://web.mit.edu/kerberos/")))