From: Guillaume Le Vaillant <glv@posteo.net>
To: phodina <phodina@protonmail.com>
Cc: Sarah Morgensen <iskarian@mgsn.dev>, help-guix@gnu.org
Subject: Re: Apply patch to read-only file
Date: Wed, 29 Sep 2021 08:42:57 +0000 [thread overview]
Message-ID: <8735pn4v6e.fsf@kitej> (raw)
In-Reply-To: <OaZ72KTNmbzluBm9JxK_W4eZW5d1wvSM93B2Ss0EBt2UwBg-T6n9B3D4dxILG_SIqkkTl1RTwz8SOorNiQVIRZVyzjMRkKZ5enzXD3AaSls=@protonmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 203 bytes --]
Hi,
I tried with simplified versions of your package definition and patch,
and it builds fine for me. The patch gets applied successfully.
However I haven't tried using the program to see if it works.
[-- Attachment #1.2: realmd.scm --]
[-- Type: application/octet-stream, Size: 1890 bytes --]
(define-module (gnu packages realmd)
#:use-module (guix packages)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages glib)
#:use-module (gnu packages image)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages openldap)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages polkit)
#:use-module (gnu packages python)
#: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))
(sha256
(base32
"1c6q2a86kk2f1akzc36nh52hfwsmmc0mbp6ayyjxj4zsyk9zx5bf"))
(patches (search-patches "realmd-guixsd-support.patch"))))
(build-system gnu-build-system)
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
("glib-bin" ,glib "bin")
("intltool" ,intltool)
("pkg-config" ,pkg-config)
("python" ,python)))
(inputs
`(("glib" ,glib)
("mit-krb5" ,mit-krb5)
("openldap" ,openldap)
("polkit" ,polkit)))
(arguments
`(#:configure-flags '("--with-systemd-unit-dir=no"
"--with-systemd-journal=no"
"--disable-doc")))
(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)))
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: realmd-guixsd-support.patch --]
[-- Type: text/x-patch, Size: 1589 bytes --]
commit ffa79f48ce454b00c0590432010dbe58cdfd3ed2
Author: Guillaume Le Vaillant <glv@posteo.net>
Date: Wed Sep 29 10:17:50 2021 +0200
Add GuixSD support
diff --git a/configure.ac b/configure.ac
index ee067d9..27dea11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,8 @@ if test -z $DISTRO; then
AC_CHECK_FILE(/etc/redhat-release, [DISTRO="redhat"])
AC_CHECK_FILE(/etc/debian_version, [DISTRO="debian"])
AC_CHECK_FILE(/etc/SuSE-release, [DISTRO="suse"])
+ AC_CHECK_FILE(/gnu/store, [DISTRO="guixsd"])
# Not customized for these yet
dnl AC_CHECK_FILE(/etc/gentoo-release, [DISTRO="gentoo"])
diff --git a/service/realmd-guixsd.conf b/service/realmd-guixsd.conf
new file mode 100644
index 0000000..ac4b436
--- /dev/null
+++ b/service/realmd-guixsd.conf
@@ -0,0 +1,42 @@
+# Default values for realmd
+[service]
+debug = no
+automatic-install = yes
+
+[paths]
+net = /usr/bin/net
+winbindd = /usr/sbin/winbindd
+smb.conf = /etc/smb.conf
+sssd.conf = /etc/sssd/sssd.conf
+adcli = /usr/sbin/adcli
+ipa-client-install = /usr/sbin/ipa-client-install
+pam_winbind.conf = /etc/security/pam_winbind.conf
+krb5.conf = /etc/krb5.conf
+
+[active-directory]
+default-client = sssd
+os-name =
+os-version =
+
+[providers]
+sssd = yes
+samba = yes
+example = no
+
+[samba-packages]
+
+[winbind-packages]
+
+[sssd-packages]
+
+[adcli-packages]
+
+[commands]
+
+[users]
+default-shell = /bin/bash
+default-home = /home/%U@%D
+
+[example.com]
+example-administrator = Administrator
+example-password = bureaucracy
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
next prev parent reply other threads:[~2021-09-29 8:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-16 7:49 Apply patch to read-only file phodina via
2021-09-25 12:08 ` Guillaume Le Vaillant
2021-09-27 22:57 ` phodina
2021-09-29 8:42 ` Guillaume Le Vaillant [this message]
2021-10-02 19:49 ` phodina
-- strict thread matches above, loose matches on Subject: below --
2021-09-28 4:47 Sarah Morgensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735pn4v6e.fsf@kitej \
--to=glv@posteo.net \
--cc=help-guix@gnu.org \
--cc=iskarian@mgsn.dev \
--cc=phodina@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).