From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6OgLHnhht2ZtbAAA62LTzQ:P1 (envelope-from ) for ; Sat, 10 Aug 2024 12:47:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6OgLHnhht2ZtbAAA62LTzQ (envelope-from ) for ; Sat, 10 Aug 2024 14:47:52 +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=meTLaIaK; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b=QYjJeXBn; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723294072; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mv5WOXA60bkD8oEs86eGOYKVGXy1jxfCTyHD21OT1JY=; b=SrCT+zpGnWQVHJHDSZysmfYUAYz6aiKetkpaOuoLGefhsW+dWbrEAJ63tYz6x1e4+gao7J R+Pz65GL6QLM2iQUeUaP/7VhfNFwnztvMwWIO/2zfpTS25bGGXIEW9FygmC6g+zYNQw8Iq GrCG09eQGmeyORQSu8F2CEdVHHj2Xbf0Onn3BLbreh1DSZtWnAGLp4ZNG9hJflyCpEeBGJ 2KIZmW2zzFR9l3wVW4EVFmZ5sWcYcCcZWZDAtA1F9ZX2kL/B+RzU1CzurybtVZOVMj4/Hi Qv9G9EOC5vLKHdVrmA7lUCbAQrvSjNqegZ4DU1I+YxPRQ1yNZo9757NgWVBaXw== 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=meTLaIaK; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b=QYjJeXBn; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723294072; a=rsa-sha256; cv=none; b=vCQ1+0X2dCRyyxFx5y4tiMWRP/cho8JvCcKWcISH78tJXZ0h3GxCm0jBCUEpDCkjOvIYhi lk4tn8dGwB6ruA0eSaoXJE/l3P9M3QReqNLn3P834Zc9GtveXhQ+PEZM1M2TkuVniI3Rwo Yt/h5BXC+Emumbpeq9bVxTm0cMwzFagI8i0mewp5jKoUOKZCIs4hDs7ND+6zjDjSb5uUnm gIxSLOH2PjQYmISDHgT916bIiPfYWlfME8xX598qxJ5yXm27Jzp434c4BDnjS6ASpd1YcH 6dDgwrsprFOa0kqzPOD+FdXvPs5m5Tg9zQ41Ec2aadRs/6sPTgxm0KVVXwMcWA== 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 5123A25609 for ; Sat, 10 Aug 2024 14:47:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sclVQ-0000ne-QF; Sat, 10 Aug 2024 08:47:36 -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 1sclVO-0000nS-D7 for guix-patches@gnu.org; Sat, 10 Aug 2024 08:47:34 -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 1sclVN-0007qd-1d for guix-patches@gnu.org; Sat, 10 Aug 2024 08:47:34 -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:Subject; bh=mv5WOXA60bkD8oEs86eGOYKVGXy1jxfCTyHD21OT1JY=; b=meTLaIaKit9+jujvH3x0ueZN/5PB0qKDAXS5IzvNREqEqcIoXuplPULKf3hNqdgroe3edw3NsDFraqdTssaZIqE0HnckqSAZKRbTYUC+9XVv1y5I6+P7XoGFB2EhhK6ayjGgDvk+P/0wO1V0Of/L7DJt8buX1m/Su142XGuzpYRwzWLSotJ7RnhXmFgXymKmxXSaUlXq+7bQrFrDWK0z0CpsM0xGLqNDpSJTSmNjFuL7Cip7RWDqd0rz7rTy+o3d4tO8d6qyLD5yoqakc0coL8g3Ga8F0IfoGHX9jHCCjYnO0ELkrsOQ9Iga94HI95VE0C1QIpfXLTDLNhk/NvYtqA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sclVq-0005Dz-1E for guix-patches@gnu.org; Sat, 10 Aug 2024 08:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72560] [PATCH] gnu: ejabberd: Add inputs and wrap-program phase. Resent-From: Igor Goryachev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Aug 2024 12:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72560 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72560@debbugs.gnu.org Cc: Igor Goryachev , Andrew Tropin X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172329403020016 (code B ref -1); Sat, 10 Aug 2024 12:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Aug 2024 12:47:10 +0000 Received: from localhost ([127.0.0.1]:39174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sclV0-0005Cm-Ed for submit@debbugs.gnu.org; Sat, 10 Aug 2024 08:47:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:41606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sclUw-0005Cb-3w for submit@debbugs.gnu.org; Sat, 10 Aug 2024 08:47:09 -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 1sclUR-0000gI-0o for guix-patches@gnu.org; Sat, 10 Aug 2024 08:46:36 -0400 Received: from mail.goryachev.org ([178.62.244.128]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sclUP-0007mi-CF for guix-patches@gnu.org; Sat, 10 Aug 2024 08:46:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=dkim; bh=+4hahk/NHnS3jzQ bttRzWHRLQ6HsZuV6Kbib09k0t0I=; h=date:subject:cc:to:from; d=goryachev.org; b=QYjJeXBnZgO5WGJDG0ljBtxgWenQ6+27sgwVUh8+9s/GrT6+Mct n5EUC9QhyJvQy3ClQxmiVKsxEyK6zQ/M9tMSpdqE1fJ89l/wyopdGMunmXcLzV5t+yfiqW CTznG96CjSOvd8yDpnbx7Qs1Uwajz2HbDylYzSQtoWu+nQcfTQ= Received: by mail.goryachev.org (OpenSMTPD) with ESMTPSA id 4f031198 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 10 Aug 2024 12:46:29 +0000 (UTC) Date: Sat, 10 Aug 2024 15:45:01 +0300 Message-ID: <57bbbce27706872700c066ea9eb878477e810758.1723293901.git.igor@goryachev.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.62.244.128; envelope-from=igor@goryachev.org; helo=mail.goryachev.org 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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: , 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.65 X-Migadu-Queue-Id: 5123A25609 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.65 X-TUID: MXBg9JhaL58P * 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 da04c34636..efcd0167f1 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -3645,6 +3645,7 @@ (define-public ejabberd (sha256 (base32 "0d5i9skgfjzs2100k0g99sigc2w61480ysz3va6pmb4nx43100g3")))) (build-system rebar-build-system) + (inputs (list coreutils procps sed)) (native-inputs (list autoconf automake @@ -3757,7 +3758,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: bc71034f789603349080c2f35570910c07d526ec -- 2.45.2