From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uFmFO+U2i2F6+wAAgWs5BA (envelope-from ) for ; Wed, 10 Nov 2021 04:05:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +DYrN+U2i2EQDAAAbx9fmQ (envelope-from ) for ; Wed, 10 Nov 2021 03:05:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F1302A3ED for ; Wed, 10 Nov 2021 04:05:08 +0100 (CET) Received: from localhost ([::1]:40684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkdv9-0002cW-Pk for larch@yhetil.org; Tue, 09 Nov 2021 22:05:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkdv4-0002bx-AM for guix-patches@gnu.org; Tue, 09 Nov 2021 22:05:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkdv4-0004tL-1U for guix-patches@gnu.org; Tue, 09 Nov 2021 22:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkdv3-0005Od-Ss for guix-patches@gnu.org; Tue, 09 Nov 2021 22:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51739] [PATCH 1/3] gnu: Add realmd. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Nov 2021 03:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51739 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51739@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.163651348920720 (code B ref -1); Wed, 10 Nov 2021 03:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Nov 2021 03:04:49 +0000 Received: from localhost ([127.0.0.1]:36497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkdun-0005O3-Ka for submit@debbugs.gnu.org; Tue, 09 Nov 2021 22:04:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:42342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkdui-0005Nu-Ji for submit@debbugs.gnu.org; Tue, 09 Nov 2021 22:04:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkdui-0002bA-FW for guix-patches@gnu.org; Tue, 09 Nov 2021 22:04:40 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:32247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkduc-0004q3-L1 for guix-patches@gnu.org; Tue, 09 Nov 2021 22:04:39 -0500 Date: Wed, 10 Nov 2021 03:04:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1636513464; bh=khNMxb3tUYLv8RVm9hwcs0Oyj+hym/iHc0K5geeQBbc=; h=Date:To:From:Reply-To:Subject:From; b=OnfaG0hddDL9X/XpR5wY5NqTI7H8gcAU64Vhff4kofOVeAoZXEH9W5wJCcaB/Hyaj dANvw2tsuKeN9QmRYPuGVzVhbjDRmEC/CB1myRwMNeWEpZHg/no8OzujlLBpcUHVGm 1RVdndKVWuWJLHm1I+BONu1ZcohJA4DIc2eDM3vA= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.134; envelope-from=phodina@protonmail.com; helo=mail-40134.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636513509; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=khNMxb3tUYLv8RVm9hwcs0Oyj+hym/iHc0K5geeQBbc=; b=coMH7oKf3L/ejopmb3G3qqtoIvecT1rkxA3/e7AYNQpuz40XCDHXj/99+LH0aB0RcJCs20 dyAnzYmmEdeFPodbPvc1oB7wYOREPExQyA5U+33N8eCe8b0/4YWGXOpJpOpaRQ6lLts+EA YhHP5MLxVxH+JgGBWv7V+b/k0RkPVqVvM7Z+EY9aEgOmRxa7yR72/vbXD73ZaL55hiZBMt 9vS4PqJMB7Fb61KKvFfyAbMSPP+O68/WFiI+DYrxWfIGAfWaiIHHlmZBgmIA8MwR+ck9hY BxdUQvKBo8IpMrc6Qa9PWryCv3UL050RbaFGVKI4BYH90eILoPed+fXXoJJ+kA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636513509; a=rsa-sha256; cv=none; b=aYtp7McO05GSfvljo/T202bGpbCMB9L4Vnd/tD1D//qh0/92OewiIB59shC0K1WLmQ20Fi ClPlyIYyfBV7d1E8bzkdpbk2qhjP+u49IxCAruKCY9ri2mzpGp+YIrXUUVivnjRxP0kT31 fwAT+hF479AXXGrCHKHEqaB3uNEVI46KTXZlSTeyRKb+play+PH2HjzS/HGSzhpYteY92F oUp2GSteHON9sPeORdFt9BFDRVuSZQC1UN9pn9jOitsMkejN1wte7ssErHMymXxKB3f7At jiZUD9KLSUgAvKA632tpphxxA0F/h7sVWXsfGOWHw8D1hAGHuy7dzU3feYr9Kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=OnfaG0hd; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=OnfaG0hd; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: F1302A3ED X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: cPQmG7WqStq1 * gnu/packages/admin.scm (realmd): New variable. * gnu/packages/patches/realmd-remove-distro-detection.patch: New file. * gnu/local.mk: Add patch. diff --git a/gnu/local.mk b/gnu/local.mk index 05258ac054..611fe40c28 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1736,6 +1736,7 @@ dist_patch_DATA =3D=09=09=09=09=09\ %D%/packages/patches/rtags-separate-rct.patch=09=09=09\ %D%/packages/patches/racket-minimal-backport-1629887.patch \ %D%/packages/patches/racket-minimal-sh-via-rktio.patch=09\ + %D%/packages/patches/realmd-remove-distro-detection.patch \ %D%/packages/patches/remake-impure-dirs.patch=09=09=09\ %D%/packages/patches/restic-0.9.6-fix-tests-for-go1.15.patch=09\ %D%/packages/patches/retroarch-LIBRETRO_DIRECTORY.patch=09\ diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index d24b068bd7..ef29fd5c98 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -128,6 +128,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages polkit) #:use-module (gnu packages popt) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) @@ -1533,6 +1534,45 @@ (define-public clusterssh over ssh connections.") (license license:gpl2+))) +(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-remove-distro-detection.pat= ch")))) + (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=3Dno" + "--with-systemd-journal=3Dno" + "--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))) + (define-public rename (package (name "rename") diff --git a/gnu/packages/patches/realmd-remove-distro-detection.patch b/gn= u/packages/patches/realmd-remove-distro-detection.patch new file mode 100644 index 0000000000..ad39e25fe1 --- /dev/null +++ b/gnu/packages/patches/realmd-remove-distro-detection.patch @@ -0,0 +1,77 @@ +From 6e69d6784caa1fdeba1ba4b7ed3dc58fcd631275 Mon Sep 17 00:00:00 2001 +From: Petr Hodina +Date: Sat, 2 Oct 2021 20:08:52 +0200 +Subject: [PATCH] Remove distro detection + + +diff --git a/configure.ac b/configure.ac +index ee067d9..12a1214 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -24,33 +24,6 @@ AC_CONFIG_SRCDIR([service/realm-daemon.c]) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + AM_MAINTAINER_MODE([enable]) + +-# -----------------------------------------------------------------------= ------ +-# Distro Detection +- +-AC_ARG_WITH([distro], +- [AS_HELP_STRING([--with-distro], +- [Configure for a specific distribution (eg: r= edhat)] +- )], +- [DISTRO=3D$withval], +- [DISTRO=3D]) +- +-if test -z $DISTRO; then +-=09AC_CHECK_FILE(/etc/redhat-release, [DISTRO=3D"redhat"]) +-=09AC_CHECK_FILE(/etc/debian_version, [DISTRO=3D"debian"]) +-=09AC_CHECK_FILE(/etc/SuSE-release, [DISTRO=3D"suse"]) +- +-=09# Not customized for these yet +-=09dnl AC_CHECK_FILE(/etc/gentoo-release, [DISTRO=3D"gentoo"]) +-=09dnl AC_CHECK_FILE(/etc/slackware-version, [DISTRO=3D"slackware"]) +- +-fi +- +-if test -z $DISTRO; then +-=09AC_MSG_ERROR([Couldn't detect the distro to configure for. Specify one= with --with-distro]) +-fi +- +-AC_SUBST(DISTRO) +- + # -----------------------------------------------------------------------= ------ + # Basic tools + +diff --git a/doc/internals/Makefile.am b/doc/internals/Makefile.am +index 2acbfd8..4eba507 100644 +--- a/doc/internals/Makefile.am ++++ b/doc/internals/Makefile.am +@@ -28,10 +28,8 @@ CLEANFILES +=3D \ + + internals/realmd-internals.html: $(INTERNAL_DOCBOOK) $(INTERNAL_INCLUDES)= $(INTERNAL_STATIC) + =09$(AM_V_GEN) mkdir -p internals && cp $(srcdir)/doc/internals/static/* = internals/ && \ +-=09$(XMLTO) html-nochunks -m $(srcdir)/$(INTERNAL_PARAMS) -o internals \ +-=09=09--searchpath $(abs_builddir):$(abs_srcdir) $(srcdir)/$(INTERNAL_DOC= BOOK) ++=09#$(XMLTO) html-nochunks -m $(srcdir)/$(INTERNAL_PARAMS) -o internals \ ++=09#=09--searchpath $(abs_builddir):$(abs_srcdir) $(srcdir)/$(INTERNAL_DO= CBOOK) + + render-images: +-=09for i in $(SVG_IMAGES:.svg=3D); do \ +-=09=09inkscape --export-png=3Dstatic/$$i.png $$i.svg; \ +-=09done ++=09true +diff --git a/service/Makefile.am b/service/Makefile.am +index c17bf3b..0988bf6 100644 +--- a/service/Makefile.am ++++ b/service/Makefile.am +@@ -137,7 +137,6 @@ install-service: + =09$(INSTALL_PROGRAM) -d $(DESTDIR)$(privatedir) + =09$(INSTALL_PROGRAM) -d $(DESTDIR)$(localstatedir)/lib/realmd + =09$(INSTALL_PROGRAM) -d $(DESTDIR)$(cachedir) +-=09$(INSTALL_DATA) $(srcdir)/service/realmd-$(DISTRO).conf $(DESTDIR)$(pr= ivatedir)/realmd-distro.conf + uninstall-service: + =09rm -f $(DESTDIR)$(privatedir)/realmd-distro.conf + +-- +2.32.0 + -- 2.33.1