From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +KzpG2ERx2ZGgwEA62LTzQ:P1 (envelope-from ) for ; Thu, 22 Aug 2024 10:22:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +KzpG2ERx2ZGgwEA62LTzQ (envelope-from ) for ; Thu, 22 Aug 2024 12:22:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=MOfNq1w5; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b="eYka35/r"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724322145; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KhD3g7b4li/WaBRRJKlYtKxu7F1CVbMoJVqZhuq4q4s=; b=OZahX7EJEuefkZ3XCC0Hfyx+YJoFPRzV6c2yeeyfMbiOp0J+lBSADOukYLnIFLXUSKzElP GL088upzjm0fyVeIT8FB8paewz72PESUTiigpUvnLYnKvWmbW6nxpR2HkvNQI5J3hWH8hv Ln0D9P91I0P6f3e/hsiNsXetGfQboT04iaidSCuqsJ+iZwkGuOwNxe3GXE/Kd/KTe7q63+ Zdb7+9QPDb7ODS6XhQRAxP6G86ePtQuDevrCef+culpGuP2DmzoxL0JHqAD90QAu664s2H FwBliPsprDfsFSlMrD+gq8iKoRgdyocPYjjiFzo22R+gO9rf8Uh2E5VcT3wdPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724322145; a=rsa-sha256; cv=none; b=vDVuDko12pqdUOO/i4czT0/H/aWhkL6OZGtR7r+L2d+ieokjKtCqjpmUTLgPXO8mDosAQ0 yZOXGKZQSVGmp3emf+hFnTI7bDIrvbMBMdwvwU4k/G2sLQ2fSb31yFpoQbG6/OqKIHTRtv 2JaLxUGZR73qIu6pPYTyFSa5nXZXAwwYgQSvXX8RruVpL9ajup084VGxdZCL9X0YiUoDDN 4Ii86suyHVzndg2JSbeDrI5tH1a0lTo5TP4rXYn3p8C/sZFwMeTTz2MfEr1N1HRj723s7M bPCP0qcZrUn2tKGORvnGHDuYboDBrjA9THOzvD5R8rblrtMyXfoRxj2ysjMlXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=MOfNq1w5; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b="eYka35/r"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 368D065774 for ; Thu, 22 Aug 2024 12:22:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sh4xP-0000C6-Ty; Thu, 22 Aug 2024 06:22:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sh4xN-0000Bp-FM for guix-patches@gnu.org; Thu, 22 Aug 2024 06:22:17 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sh4xN-00067d-55 for guix-patches@gnu.org; Thu, 22 Aug 2024 06:22:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=KhD3g7b4li/WaBRRJKlYtKxu7F1CVbMoJVqZhuq4q4s=; b=MOfNq1w5fOGMgEWfzjBkRoylUypJk6b1hzv+WW2sMgGBadsb3YA1Unq2EsL7CIDswozXfCJWJemPF0huneL729KhX1PtYq/uOoaJ1SMeKMxBo/2bBJOnR6/abJIPfJf15DBMe/ON4zaUgEhM6v2akjeOpzB4NkxqIRqfe591FBQz8NfnljitQvzzr+/ghNf+I5lpzcQE9niFjLnqp/2qmxtzm+4/9fssw2KEL+CzbkCcGjvSJ2xzrnz4p3mIEjDvQbrlk+G8H61IEV+5aArlOK8wlguzTlLDjmEBe1bkRc1Q435HdXSYiw8geoYoBpHcH1lrXgaOzQzEEzMrrbX2mQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sh4y6-0005C8-CN for guix-patches@gnu.org; Thu, 22 Aug 2024 06:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72560] [PATCH v2] gnu: ejabberd: Add inputs and wrap-program phase. References: <57bbbce27706872700c066ea9eb878477e810758.1723293901.git.igor@goryachev.org> In-Reply-To: <57bbbce27706872700c066ea9eb878477e810758.1723293901.git.igor@goryachev.org> Resent-From: Igor Goryachev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Aug 2024 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72560 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72560@debbugs.gnu.org Cc: Igor Goryachev , Andrew Tropin Received: via spool by 72560-submit@debbugs.gnu.org id=B72560.172432214119907 (code B ref 72560); Thu, 22 Aug 2024 10:23:02 +0000 Received: (at 72560) by debbugs.gnu.org; 22 Aug 2024 10:22:21 +0000 Received: from localhost ([127.0.0.1]:36799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sh4xR-0005B1-9Y for submit@debbugs.gnu.org; Thu, 22 Aug 2024 06:22:21 -0400 Received: from mail.goryachev.org ([213.199.41.95]:56838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sh4xP-0005Ar-1s for 72560@debbugs.gnu.org; Thu, 22 Aug 2024 06:22:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dkim; bh=XYuBCmzZF2ibbhh B+8d9P5z1rpuX9b2mHtYN0WhdQts=; h=date:subject:cc:to:from; d=goryachev.org; b=eYka35/rfu3AMJb0vNRkE/5GDYntDJs1COk+jc/gHGzbNt77PBv 5c2HGsIJj/OpHnYe5sMjfVvmvNGXGPfc6JMy3BhDxW9fjQdZ6xcOGNkmBkT2fKfGQ71uKG MkowjeryY2LOpH/ex5q9rzeT6+vbcEIcvQEyvYUIsM/4mOCLFE= Received: by mail.goryachev.org (OpenSMTPD) with ESMTPSA id 9d38bf5d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 22 Aug 2024 10:21:30 +0000 (UTC) Date: Thu, 22 Aug 2024 13:21:22 +0300 Message-ID: <1790f41b7fd1da9740c85442e5a0af8be38fa4a3.1724322082.git.igor@goryachev.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Reply-to: Igor Goryachev X-ACL-Warn: , Igor Goryachev via Guix-patches From: Igor Goryachev via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.48 X-Spam-Score: -3.48 X-Migadu-Queue-Id: 368D065774 X-Migadu-Scanner: mx11.migadu.com X-TUID: r9erWlztZEf+ * gnu/packages/messaging.scm (ejabberd): Add inputs and wrap-program phase. Change-Id: Id8177c54437dca9b98bbd6a237b9a713bc904c84 --- gnu/packages/messaging.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 8509b0c71a..8ea56c5eb8 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -3647,6 +3647,7 @@ (define-public ejabberd (sha256 (base32 "0d5i9skgfjzs2100k0g99sigc2w61480ysz3va6pmb4nx43100g3")))) (build-system rebar-build-system) + (inputs (list bash-minimal coreutils procps sed)) (native-inputs (list autoconf automake @@ -3759,7 +3760,18 @@ (define-public ejabberd (string-append erts "/bin"))) (chmod (string-append ejabberd "/bin/install_upgrade.escript") #o755) - (copy-recursively ejabberd #$output))))))) + (copy-recursively ejabberd #$output)))) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/ejabberdctl") + `("PATH" ":" suffix + ,(map (lambda (command) + (dirname + (search-input-file + inputs (string-append "bin/" command)))) + (list "date" "dirname" "grep" + "id" "pgrep" "sed")))))))))) (synopsis "Robust, Ubiquitous and Massively Scalable Messaging Platform") (description "This package provides Ejabberd -- Robust, Ubiquitous and Massively Scalable Messaging Platform. It supports XMPP, MQTT and SIP base-commit: 174ecf5b1077d29498d9de22e27b13047f314feb -- 2.45.2