distro: Add Linux-PAM.

* distro/packages/linux.scm: New file.
* Makefile.am (MODULES): Add it.
This commit is contained in:
Ludovic Courtès 2012-11-27 21:56:37 +01:00
parent b40b259f12
commit fd76c904c7
2 changed files with 59 additions and 0 deletions

View file

@ -65,6 +65,7 @@ MODULES = \
distro/packages/libffi.scm \
distro/packages/libsigsegv.scm \
distro/packages/libunistring.scm \
distro/packages/linux.scm \
distro/packages/lout.scm \
distro/packages/m4.scm \
distro/packages/make-bootstrap.scm \

58
distro/packages/linux.scm Normal file
View file

@ -0,0 +1,58 @@
;;; Guix --- Nix package management from Guile. -*- coding: utf-8 -*-
;;; Copyright (C) 2012 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of Guix.
;;;
;;; Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (distro packages linux)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (distro packages flex)
#:use-module (guix build-system gnu))
(define-public linux-pam
(package
(name "linux-pam")
(version "1.1.6")
(source
(origin
(method url-fetch)
(uri (list (string-append "http://www.linux-pam.org/library/Linux-PAM-"
version ".tar.bz2")
(string-append "mirror://kernel.org/linux/libs/pam/library/Linux-PAM-"
version ".tar.bz2")))
(sha256
(base32
"1hlz2kqvbjisvwyicdincq7nz897b9rrafyzccwzqiqg53b8gf5s"))))
(build-system gnu-build-system)
(inputs
`(("flex" ,flex)
;; TODO: optional dependencies
;; ("libxcrypt" ,libxcrypt)
;; ("cracklib" ,cracklib)
))
(arguments
;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
;; isn't available.
'(#:tests? #f))
(home-page "http://www.linux-pam.org/")
(synopsis "Pluggable authentication modules for Linux")
(description
"A *Free* project to implement OSF's RFC 86.0.
Pluggable authentication modules are small shared object files that can
be used through the PAM API to perform tasks, like authenticating a user
at login. Local and dynamic reconfiguration are its key features")
(license "BSD")))