summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-09-15 09:28:24 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-09-15 09:28:24 +0200
commit991c44109f92aef099b3ec50501c7cd08978c793 (patch)
tree7ae28627a36c98cee3f3fa70b55234831ab939c1 /gnu
parent9eac3150690bfd9389d433f6053fc07d6d57e45b (diff)
gnu: Add yubico-pam.
* gnu/packages/authentication.scm (yubico-pam): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/authentication.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/authentication.scm b/gnu/packages/authentication.scm
index 68a64598280..fba157344d6 100644
--- a/gnu/packages/authentication.scm
+++ b/gnu/packages/authentication.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> 2;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
3;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
3;;; 4;;;
4;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
5;;; 6;;;
@@ -18,10 +19,14 @@
18 19
19(define-module (gnu packages authentication) 20(define-module (gnu packages authentication)
20 #:use-module (gnu packages) 21 #:use-module (gnu packages)
22 #:use-module (gnu packages autotools)
23 #:use-module (gnu packages documentation)
21 #:use-module (gnu packages linux) 24 #:use-module (gnu packages linux)
22 #:use-module (gnu packages pkg-config) 25 #:use-module (gnu packages pkg-config)
26 #:use-module (gnu packages security-token)
23 #:use-module (guix build-system gnu) 27 #:use-module (guix build-system gnu)
24 #:use-module (guix download) 28 #:use-module (guix download)
29 #:use-module (guix git-download)
25 #:use-module ((guix licenses) #:prefix license:) 30 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (guix packages)) 31 #:use-module (guix packages))
27 32
@@ -77,3 +82,39 @@ Supported technologies include the event-based @dfn{HOTP} algorithm (RFC4226)
77and the time-based @dfn{TOTP} algorithm (RFC6238).") 82and the time-based @dfn{TOTP} algorithm (RFC6238).")
78 (license (list license:lgpl2.1+ ; the libraries (liboath/ & libpskc/) 83 (license (list license:lgpl2.1+ ; the libraries (liboath/ & libpskc/)
79 license:gpl3+)))) ; the tools (everything else) 84 license:gpl3+)))) ; the tools (everything else)
85
86(define-public yubico-pam
87 (let ((commit "b5bd00db81e0e0e0ecced65c684080bb56ddc35b")
88 (revision "0"))
89 (package
90 (name "yubico-pam")
91 (version (git-version "2.26" revision commit))
92 (source (origin
93 (method git-fetch)
94 (uri (git-reference
95 (url "https://github.com/Yubico/yubico-pam.git")
96 (commit commit)))
97 (file-name (git-file-name name version))
98 (sha256
99 (base32
100 "10dq8dqi3jldllj6p8r9hldx9sank9n82c44w8akxrs1vli6nj3m"))))
101 (build-system gnu-build-system)
102 (arguments
103 ;; The pam_test fails because ykclient fails to build a Curl handle.
104 '(#:make-flags '("TESTS=util_test")))
105 (inputs
106 `(("linux-pam" ,linux-pam)
107 ("libyubikey" ,libyubikey)
108 ("ykclient" ,ykclient)
109 ("yubikey-personalization" ,yubikey-personalization)))
110 (native-inputs
111 `(("autoconf" ,autoconf)
112 ("automake" ,automake)
113 ("libtool" ,libtool)
114 ("asciidoc" ,asciidoc)
115 ("pkg-config" ,pkg-config)))
116 (home-page "https://developers.yubico.com/yubico-pam")
117 (synopsis "Yubico pluggable authentication module")
118 (description "The Yubico PAM module provides an easy way to integrate the
119YubiKey into your existing user authentication infrastructure.")
120 (license license:bsd-2))))