guix-glicid/glicid/packages/openldap.scm

179 lines
5.4 KiB
Scheme
Raw Normal View History

2021-10-27 16:57:53 +02:00
(define-module (glicid packages openldap)
#:use-module (guix build-system gnu)
2021-11-04 12:23:51 +01:00
#:use-module (guix download)
2021-12-16 15:43:06 +01:00
#:use-module ((guix licenses) #:prefix license:)
2021-10-27 16:57:53 +02:00
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages autotools)
#:use-module (gnu packages compression)
2021-12-16 18:25:45 +01:00
#:use-module (gnu packages cyrus-sasl)
2021-11-04 12:23:51 +01:00
#:use-module (gnu packages databases)
2021-12-16 18:30:02 +01:00
#:use-module (gnu packages dbm)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages groff)
2021-12-16 15:49:57 +01:00
#:use-module (gnu packages kerberos)
2021-10-27 16:57:53 +02:00
#:use-module (gnu packages libevent)
2021-12-16 15:47:21 +01:00
#:use-module (gnu packages linux)
#:use-module ((gnu packages openldap) #:prefix gnu:)
2021-10-27 16:57:53 +02:00
#:use-module (gnu packages password-utils)
2021-12-16 18:14:59 +01:00
#:use-module (gnu packages perl)
2021-12-16 15:49:57 +01:00
#:use-module (gnu packages python)
2021-10-27 16:57:53 +02:00
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages tls)
)
2021-12-16 12:36:30 +01:00
(define-public openldap
(package
(name "openldap")
2022-04-20 15:39:22 +02:00
(version "2.6.1")
(source (origin
(method url-fetch)
(uri (list
(string-append "https://www.openldap.org/software/download/OpenLDAP/" "openldap-release/openldap-" version ".tgz")
))
2022-04-20 15:39:22 +02:00
(sha256 ( base32 "1wz6f3g3bbqgbbxs20zlappmmhapqbl791c0waibhz9djsk6wmwx" ))
)
2021-10-27 16:57:53 +02:00
)
(build-system gnu-build-system)
2022-04-20 15:39:22 +02:00
(inputs (list argon2 cyrus-sasl libevent libgcrypt libltdl lz4 openssl perl snappy unixodbc wiredtiger zlib))
(native-inputs (list bdb groff libtool pkg-config))
(arguments '(
; this is needed because the make check does not work inside guix
#:tests? #f
#:configure-flags '(
2021-11-04 22:02:40 +01:00
"--enable-debug"
"--enable-dynamic"
"--enable-syslog"
"--enable-ipv6"
"--enable-local"
"--enable-slapd"
"--enable-dynacl"
"--enable-aci"
"--enable-cleartext"
"--enable-crypt"
"--enable-spasswd"
"--enable-modules"
"--enable-rlookups"
"--enable-slapi"
"--enable-backends=mod"
"--enable-overlays=mod"
"--enable-argon2"
"--enable-balancer"
"--disable-static"
"--enable-shared"
"--with-tls=openssl"
)
#:make-flags '("STRIP=")
#:phases (modify-phases %standard-phases
(add-before 'build 'make-depend
(lambda* (#:key input #:allow-other-keys)
(invoke "make" "depend")
)
)
)
))
2021-12-16 18:18:15 +01:00
(synopsis "Implementation of the Lightweight Directory Access Protocol")
(description "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.")
2021-12-16 18:23:10 +01:00
(license license:openldap2.8)
2021-12-16 18:18:15 +01:00
(home-page "https://www.openldap.org/")
)
2021-10-27 16:57:53 +02:00
)
2021-12-16 12:25:57 +01:00
2021-12-16 12:36:30 +01:00
(define-public openldap-2.5.7
2021-12-16 12:25:57 +01:00
(package
2021-12-16 12:36:30 +01:00
(inherit openldap)
2021-12-16 12:25:57 +01:00
(name "openldap")
2021-12-16 12:36:30 +01:00
(version "2.5.7")
2021-12-16 12:25:57 +01:00
(source (origin
(method url-fetch)
(uri (list
(string-append "https://www.openldap.org/software/download/OpenLDAP/" "openldap-release/openldap-" version ".tgz")
))
2021-12-16 12:36:30 +01:00
(sha256 ( base32 "1ayr76sa5hjwldqzis5v71sbp88hd3hysc00gw1raqn33c05g5za" ))
2021-12-16 12:25:57 +01:00
)
)
)
)
(define-public openldap-2.5.9
(package
2021-12-16 12:36:30 +01:00
(inherit openldap)
2021-12-16 12:25:57 +01:00
(name "openldap")
(version "2.5.9")
(source (origin
(method url-fetch)
(uri (list
(string-append "https://www.openldap.org/software/download/OpenLDAP/" "openldap-release/openldap-" version ".tgz")
))
(sha256 ( base32 "17pvwrj27jybbmjqpv0p7kd2qa4i6jnp134lz7cxa0sqrbs153n0" ))
)
)
)
)
2021-12-16 15:10:02 +01:00
2022-04-20 15:39:22 +02:00
(define-public openldap-2.6.0
(package
(inherit openldap)
(name "openldap")
(version "2.6.0")
(source (origin
(method url-fetch)
(uri (list
(string-append "https://www.openldap.org/software/download/OpenLDAP/" "openldap-release/openldap-" version ".tgz")
))
(sha256 ( base32 "0kqswk8pxgnlibh0kz6py3a2x3yh9pfk6pyr2nx9lgjpmh75h75p" ))
)
)
)
)
2021-12-16 15:10:02 +01:00
(define-public nss-pam-ldapd
(package
2021-12-16 15:30:59 +01:00
(name "nss-pam-ldapd")
(version "0.9.12")
(source (origin
(method url-fetch)
(uri (string-append "https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-" version ".tar.gz"))
(sha256 (base32 "050fzcmxmf6y15dlcffc4gxr3wkk7fliqqwhlwqzbjwk8vkn3mn6"))
))
(build-system gnu-build-system)
(arguments
`(
#:configure-flags
(list (string-append
"--with-pam-seclib-dir=" (assoc-ref %outputs "out") "/lib/security/")
"--with-ldap-conf-file=/etc/nslcd.conf"
)
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'override-nslcd.conf-install-path
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "Makefile.in"
(
("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)")
(string-append (assoc-ref outputs "out") "/etc/nslcd.conf.example")
)
)
)
)
)
)
)
(inputs `(
2021-12-16 15:49:57 +01:00
("linux-pam", linux-pam)
("mit-krb5", mit-krb5)
2021-12-16 18:14:59 +01:00
("openldap", openldap)
2021-12-16 15:49:57 +01:00
("python", python)
2021-12-16 15:30:59 +01:00
))
(home-page "https://arthurdejong.org/nss-pam-ldapd")
(synopsis "NSS and PAM modules for LDAP")
(description "nss-pam-ldapd provides a @dfn{Name Service Switch} (NSS)
module that allows your LDAP server to provide user account, group, host name,
alias, netgroup, and basically any other information that you would normally
get from @file{/etc} flat files or NIS. It also provides a @dfn{Pluggable
Authentication Module} (PAM) to do identity and authentication management with
an LDAP server.")
2021-12-16 15:43:06 +01:00
(license license:lgpl2.1+)
2021-12-16 15:10:02 +01:00
)
)