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