Commit | Line | Data |
---|---|---|
dbe874dc RW |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net> | |
1bc11c5d | 3 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
b94098af | 4 | ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> |
dbe874dc RW |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | (define-module (gnu packages sssd) | |
22 | #:use-module ((guix licenses) #:prefix license:) | |
23 | #:use-module (guix packages) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix utils) | |
26 | #:use-module (guix build-system gnu) | |
7fe4e556 RW |
27 | #:use-module (gnu packages) |
28 | #:use-module (gnu packages) | |
29 | #:use-module (gnu packages adns) | |
30 | #:use-module (gnu packages augeas) | |
31 | #:use-module (gnu packages check) | |
32 | #:use-module (gnu packages curl) | |
33 | #:use-module (gnu packages cyrus-sasl) | |
34 | #:use-module (gnu packages databases) | |
35 | #:use-module (gnu packages dns) | |
36 | #:use-module (gnu packages docbook) | |
37 | #:use-module (gnu packages documentation) | |
38 | #:use-module (gnu packages glib) | |
aff0cce9 | 39 | #:use-module (gnu packages kerberos) |
7fe4e556 RW |
40 | #:use-module (gnu packages libunistring) |
41 | #:use-module (gnu packages linux) | |
aff0cce9 | 42 | #:use-module (gnu packages nss) |
7fe4e556 RW |
43 | #:use-module (gnu packages openldap) |
44 | #:use-module (gnu packages tls) | |
45 | #:use-module (gnu packages pcre) | |
46 | #:use-module (gnu packages popt) | |
47 | #:use-module (gnu packages pkg-config) | |
48 | #:use-module (gnu packages samba) | |
49 | #:use-module (gnu packages selinux) | |
50 | #:use-module (gnu packages web) | |
51 | #:use-module (gnu packages xml)) | |
dbe874dc RW |
52 | |
53 | (define-public ding-libs | |
54 | (package | |
55 | (name "ding-libs") | |
3d96f232 | 56 | (version "0.6.1") |
dbe874dc RW |
57 | (source (origin |
58 | (method url-fetch) | |
59 | (uri (string-append "https://releases.pagure.org/SSSD/ding-libs/" | |
60 | "ding-libs-" version ".tar.gz")) | |
61 | (sha256 | |
62 | (base32 | |
3d96f232 | 63 | "1h97mx2jdv4caiz4r7y8rxfsq78fx0k4jjnfp7x2s7xqvqks66d3")))) |
dbe874dc RW |
64 | (build-system gnu-build-system) |
65 | (home-page "https://pagure.io/SSSD/ding-libs/") | |
66 | (synopsis "Libraries for SSSD") | |
67 | (description | |
68 | "DING-LIBS (DING Is Not Glib) are a set of small, useful libraries that | |
69 | the @dfn{System Security Services Daemon} (SSSD) uses and makes available to | |
70 | other projects. They include: libdhash, an implementation of a dynamic hash | |
71 | table which will dynamically resize to achieve optimal storage and access time | |
72 | properties; ini_config, a library for parsing and managing @code{INI} files; | |
73 | path_utils, a library to manage UNIX paths and subsets of paths; collection, a | |
74 | generic, hierarchical grouping mechanism for complex data sets; ref_array, a | |
75 | dynamically-growing, reference-counted array; libbasicobjects, a set of | |
76 | fundamental object types for C.") | |
77 | (license license:lgpl3+))) | |
7fe4e556 RW |
78 | |
79 | ;; Note: This package installs modules for ldb and nss. For the former we | |
80 | ;; need to set LDB_MODULES_PATH. For the latter LD_PRELOAD or LD_LIBRARY_PATH | |
81 | ;; is needed. | |
82 | (define-public sssd | |
83 | (package | |
84 | (name "sssd") | |
b94098af | 85 | (version "1.16.5") |
7fe4e556 RW |
86 | (source (origin |
87 | (method url-fetch) | |
b94098af | 88 | (uri (string-append "https://releases.pagure.org/SSSD/sssd/" |
7fe4e556 RW |
89 | "sssd-" version ".tar.gz")) |
90 | (sha256 | |
91 | (base32 | |
b94098af | 92 | "1h6hwibaf3xa2w6qpzjiiywmfj6zkgbz4r2isf3gd0xm6vq7n6if")))) |
7fe4e556 RW |
93 | (build-system gnu-build-system) |
94 | (arguments | |
95 | `(#:make-flags | |
96 | (list (string-append "DOCBOOK_XSLT=" | |
97 | (assoc-ref %build-inputs "docbook-xsl") | |
98 | "/xml/xsl/docbook-xsl-" | |
99 | ,(package-version docbook-xsl) | |
100 | "/manpages/docbook.xsl") | |
101 | ;; Remove "--postvalid" option, because that requires access to | |
102 | ;; online DTDs. | |
103 | "XMLLINT_FLAGS = --catalogs --nonet --noent --xinclude --noout") | |
104 | #:configure-flags | |
105 | (list "--disable-cifs-idmap-plugin" | |
106 | "--without-nfsv4-idmapd-plugin" | |
107 | "--without-python2-bindings" | |
108 | "--without-python3-bindings" | |
109 | (string-append "--with-plugin-path=" | |
110 | (assoc-ref %outputs "out") | |
111 | "/lib/sssd") | |
112 | (string-append "--with-krb5-plugin-path=" | |
113 | (assoc-ref %outputs "out") | |
114 | "/lib/krb5/plugins/libkrb5") | |
115 | (string-append "--with-cifs-plugin-path=" | |
116 | (assoc-ref %outputs "out") | |
117 | "/lib/cifs-utils") | |
118 | (string-append "--with-init-dir=" | |
119 | (assoc-ref %outputs "out") | |
120 | "/etc/init.d") | |
121 | (string-append "--with-ldb-lib-dir=" | |
122 | (assoc-ref %outputs "out") | |
123 | "/lib/ldb/modules/ldb") | |
124 | (string-append "--with-xml-catalog-path=" | |
125 | (assoc-ref %build-inputs "docbook-xml") | |
126 | "/xml/dtd/docbook/catalog.xml")) | |
127 | #:phases | |
128 | (modify-phases %standard-phases | |
129 | (add-after 'unpack 'disable-failing-test | |
130 | (lambda _ | |
131 | (substitute* "src/tests/responder_socket_access-tests.c" | |
132 | (("tcase_add_test\\(tc_utils, resp_str_to_array_test\\);") "")) | |
133 | #t))))) | |
134 | (inputs | |
135 | `(("augeas" ,augeas) | |
a0683006 | 136 | ("bind" ,isc-bind "utils") |
7fe4e556 RW |
137 | ("c-ares" ,c-ares) |
138 | ("curl" ,curl) | |
139 | ("cyrus-sasl" ,cyrus-sasl) | |
140 | ("dbus" ,dbus) | |
141 | ("ding-libs" ,ding-libs) | |
142 | ("glib" ,glib) | |
143 | ("gnutls" ,gnutls) | |
144 | ("http-parser" ,http-parser) | |
145 | ("jansson" ,jansson) | |
146 | ("ldb" ,ldb) | |
147 | ("libselinux" ,libselinux) | |
148 | ("libsemanage" ,libsemanage) | |
149 | ("libunistring" ,libunistring) | |
150 | ("linux-pam" ,linux-pam) | |
151 | ("mit-krb5" ,mit-krb5) | |
152 | ("nss" ,nss) | |
153 | ("openldap" ,openldap) | |
154 | ("openssl" ,openssl) | |
155 | ("pcre" ,pcre) | |
156 | ("popt" ,popt) | |
157 | ("samba" ,samba) | |
158 | ("talloc" ,talloc) | |
159 | ("tdb" ,tdb) | |
160 | ("tevent" ,tevent))) | |
161 | (native-inputs | |
162 | `(("check" ,check) | |
163 | ("docbook-xsl" ,docbook-xsl) | |
164 | ("docbook-xml" ,docbook-xml) | |
2b783601 | 165 | ("libxml2" ,libxml2) ; for xmllint |
7fe4e556 | 166 | ("libxslt" ,libxslt) |
4f9dd97e TGR |
167 | ("pkg-config" ,pkg-config) |
168 | ("util-linux" ,util-linux))) ; for uuid.h, reqired for KCM | |
7fe4e556 RW |
169 | (home-page "https://pagure.io/SSSD/sssd/") |
170 | (synopsis "System security services daemon") | |
171 | (description "SSSD is a system daemon. Its primary function is to provide | |
172 | access to identity and authentication remote resource through a common | |
173 | framework that can provide caching and offline support to the system. It | |
65808ba4 TGR |
174 | provides PAM and NSS modules, and in the future will support D-BUS based |
175 | interfaces for extended user information. It also provides a better database | |
176 | to store local users as well as extended user data.") | |
7fe4e556 | 177 | (license license:gpl3+))) |