(define-module (endgame packages realmd) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages kerberos) #:use-module (gnu packages openldap) #:use-module (gnu packages glib) #:use-module (gnu packages docbook) #:use-module (gnu packages autotools) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages polkit) #:use-module (gnu packages xml) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module ((guix licenses) #:prefix license:)) (define-public realmd (package (name "realmd") (version "0.17.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/freedesktop/realmd") (commit version))) (file-name (git-file-name name version)) (patches '("endgame/packages/patches/realmd-remove-distro-detection.patch")) (sha256 (base32 "1c6q2a86kk2f1akzc36nh52hfwsmmc0mbp6ayyjxj4zsyk9zx5bf")))) (build-system gnu-build-system) (arguments `(#:configure-flags (list "--with-systemd-unit-dir=no" "--with-systemd-journal=no" "--disable-doc") #:phases (modify-phases %standard-phases (add-after 'unpack 'xml-validation (lambda* (#:key inputs #:allow-other-keys) (let ((local (string-append (assoc-ref inputs "docbook-xml") "/xml/dtd/docbook"))) ; substitute in order to validate locally due to network restriction (substitute* "doc/internals/realmd-internals.xml" (("http://.*/xml/4.3") local)) (substitute* "doc/manual/realm.xml" (("http://.*/xml/4.2") local)) (substitute* "doc/manual/realmd.conf.xml" (("http://.*/xml/4.2") local)) (substitute* "doc/manual/realmd-docs.xml" (("http://.*/xml/4.3") local)) (substitute* "doc/manual/realmd-guide-active-directory.xml" (("http://.*/xml/4.3") local)) (substitute* "doc/manual/realmd-guide-ipa.xml" (("http://.*/xml/4.3") local)) (substitute* "./doc/manual/realmd-guide-kerberos.xml" (("http://.*/xml/4.3") local))#t)))))) (native-inputs `(("pkg-config" ,pkg-config) ("autoconf" ,autoconf) ("intltool" ,intltool) ("libxslt" ,libxslt) ("xmlto" ,xmlto) ("python" ,python) ("docbook-xml" ,docbook-xml) ("automake" ,automake))) (inputs `(("glib" ,glib "bin") ("dbus" ,dbus) ("mit-krb5" ,mit-krb5) ("openldap" ,openldap) ("polkit" ,polkit))) (synopsis "DBus service for configuring kerberos and other online identities") (description "Dbus system service that manages discovery and enrollment in realms/domains like Active Directory or IPA.") (home-page "https://www.freedesktop.org/software/realmd/") (license license:lgpl2.1)))