Hi Guillaume,
On Wednesday, September 29th, 2021 at 10:42 AM, Guillaume Le Vaillant
<g...@posteo.net> wrote:
> Hi,
>
> I tried with simplified versions of your package definition and patch,
>
> and it builds fine for me. The patch gets applied successfully.
>
Thanks for the help and the package definition. I also managed to figure out
what went wrong - I created the patch on master and attempted to patch 0.17.0.
The only other issue I had was with the xmlto, where I attempted to use local
validation using docbook-xml based on example provided in
gnu/packages/gnome.scm. See the attached file.
However, I gave up and also used the --disable-docs flag.
> However I haven't tried using the program to see if it works.
Well, that's another issue.
- It needs correct config file
- There has to be a service running. So I'll look into that now.
Thanks and have a nice day
Petr
(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)))