From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iM5yDu5ly2WWHAAA62LTzQ:P1 (envelope-from ) for ; Tue, 13 Feb 2024 13:51:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iM5yDu5ly2WWHAAA62LTzQ (envelope-from ) for ; Tue, 13 Feb 2024 13:51:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=soeren-tempel.net header.s=opensmtpd header.b=lK8xhgS3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=soeren-tempel.net (policy=none); 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=1707828718; h=from:from:sender:sender: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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=O4fjbW0z53KnO6tsh/YOa8PN38pYf9JBIzDeS+4145g=; b=dD0GrqRA+cd4Yb3veBH0NTDy9hUTKXcKo219rT1eRT8iKkitTYDcP8WZS3FaEpyawoLvvL Fkp693vY6piEx8MhfOarI7ylRqbu3XyZf3EYn99uKfYJi+Kv8NbZCi9Ko/S4ABL2gLQ/Hz rQI0nH4m6yZ00Kd33N+v/mg6IGkzlp/ZiIYZfuTekbRcwvJwXuwmASIZLUjTCkocW0/muO 6FM3MfdRCl8ISdWeDLr5H8gPZtyd5LMrhlfpVimDHNp7yw+jc+Gvjd+DdJcVpUNjDSq2/S Nttks8l1l/i/+5TjLAwuP/JOyB4NRjZiFl/xXixeSQOaR3636hppZedMZ1ZLTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=soeren-tempel.net header.s=opensmtpd header.b=lK8xhgS3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=soeren-tempel.net (policy=none); 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-Seal: i=1; s=key1; d=yhetil.org; t=1707828718; a=rsa-sha256; cv=none; b=S+3lHtlXCFMHqRdM0YowTw3qKFMDyTHVwTTFrMLA6c/q4FKXZ5k+oQnAxZLbSqDUfyoAWX 5Qu45BXC+cj97YGHmf9IEZvAmFragEBK20eZ1JyaRvvwZsCzRVBnPC2DflXGv8U+u+VN+Q XkFCL1FXl/E6w4/UE29ZsPteP2FJdyhOuU+KAIvbid5e01+9OoX8t7J3n0jsCMa0KrjkrI A03MQntZHaVsub2e9npGHnhyrwDrMEuzBQPoYysWWcJmSaOTZXzw9lNpeZd9RVi2O5iYod T/1UB7mOwvmUotTfE9Kuv8GDIWdVcIvYuvToERi/CHP9LbI4bU9kYNB9zQ0GWg== 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 EABFD1975F for ; Tue, 13 Feb 2024 13:51:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZsGL-0005Aw-2n; Tue, 13 Feb 2024 07:51:49 -0500 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 1rZsGI-00059L-Sy for guix-patches@gnu.org; Tue, 13 Feb 2024 07:51:46 -0500 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 1rZsGH-0003cD-14 for guix-patches@gnu.org; Tue, 13 Feb 2024 07:51:46 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZsGY-000521-E4 for guix-patches@gnu.org; Tue, 13 Feb 2024 07:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68675] [PATCH v3 1/2] gnu: Add dhcpcd. References: In-Reply-To: Resent-From: soeren@soeren-tempel.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Feb 2024 12:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68675 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68675@debbugs.gnu.org Received: via spool by 68675-submit@debbugs.gnu.org id=B68675.170782867719257 (code B ref 68675); Tue, 13 Feb 2024 12:52:02 +0000 Received: (at 68675) by debbugs.gnu.org; 13 Feb 2024 12:51:17 +0000 Received: from localhost ([127.0.0.1]:42884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZsFo-00050W-Sh for submit@debbugs.gnu.org; Tue, 13 Feb 2024 07:51:17 -0500 Received: from magnesium.8pit.net ([45.76.88.171]:28727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZsFm-00050J-Mz; Tue, 13 Feb 2024 07:51:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=opensmtpd; bh=vCjyX2Vtq8 1UM0idzjJ918bbbP9Iqua5Ff/9KBI6KXQ=; h=date:subject:to:from; d=soeren-tempel.net; b=lK8xhgS3wTVj7Iq6yF6VCU05UQn+XOLwcffeYOYY9kPDdRT dZHZOpdTIh0wBrx3HplRUWcKt/jSlh6LgTlQEmqgwVjIub32QM+l2pUqNfAvHeLQruuhst Tu4mWmGFFGFDkhEqYnHaSO2P55K/3PLx8P9W/UBoJuEZnm68Bzioto= Received: from localhost (dynamic-2a02-3102-49da-001b-df49-33b7-2af2-ff52.310.pool.telefonica.de [2a02:3102:49da:1b:df49:33b7:2af2:ff52]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 4c07c2c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Tue, 13 Feb 2024 13:50:54 +0100 (CET) From: soeren@soeren-tempel.net Date: Tue, 13 Feb 2024 13:50:42 +0100 Message-ID: <5c6f714f4802ec17bc247e701bcee82d54733005.1707828643.git.soeren@soeren-tempel.net> X-Mailer: git-send-email 2.43.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: , 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: 5.02 X-Spam-Score: 5.02 X-Migadu-Queue-Id: EABFD1975F X-Migadu-Scanner: mx12.migadu.com X-TUID: aAlr4R0h9FsZ From: Sören Tempel * gnu/packages/admin.scm (dhcpcd): new procedure. Signed-off-by: Sören Tempel --- gnu/packages/admin.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index fcf05992d8..efd374fe5a 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -1608,6 +1608,62 @@ (define-public isc-dhcp (license license:mpl2.0) (properties '((cpe-name . "dhcp")))))) +(define-public dhcpcd + (package + (name "dhcpcd") + (version "10.0.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/NetworkConfiguration/dhcpcd") + (commit (string-append "v" version)))) + (sha256 + (base32 "07n7d5wsmy955i6l8rkcmxhgxjygj2cxgpw79id2hx9w41fbkl5l")) + (file-name (git-file-name name version)))) + (inputs (list bash-minimal)) + (native-inputs (list eudev)) + (build-system gnu-build-system) + (arguments + (list + #:test-target "test" + #:configure-flags #~(list "--enable-ipv6" + "--enable-privsep" + "--privsepuser=dhcpcd" + (string-append "--dbdir=" "/var/db/dhcpcd") + (string-append "--rundir=" "/var/run/dhcpcd") + (string-append "CC=" #$(cc-for-target))) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'do-not-create-dbdir + (lambda _ + ;; Make sure that the Makefile doesn't attempt to create + ;; /var/db/dhcpcd for which it doesn't have permissions. + (substitute* "src/Makefile" + (("\\$\\{INSTALL\\} -m \\$\\{DBMODE\\} -d \\$\\{DESTDIR\\}\\$\\{DBDIR\\}") + "")))) + (add-before 'build 'setenv + (lambda _ + (setenv "HOST_SH" (which "sh")))) + (add-after 'install 'wrap-hooks + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (libexec (string-append out "/libexec")) + (sed (search-input-file inputs "/bin/sed")) + (rm (search-input-file inputs "/bin/rm"))) + (wrap-program (string-append libexec + "/dhcpcd-run-hooks") + `("PATH" ":" suffix + (,(dirname sed) + ,(dirname rm)))))))))) + (home-page "https://roy.marples.name/projects/dhcpcd") + (synopsis "Feature-rich DHCP and DHCPv6 client") + (description + "Provides a DHCP and a DHCPv6 client. Additionally, +dhcpcd is also an IPv4LL (aka ZeroConf) client. In layperson's terms, +dhcpcd runs on your machine and silently configures your computer to work +on the attached networks without trouble and mostly without configuration.") + (license license:bsd-2))) + (define-public radvd (package (name "radvd") base-commit: 29c26a8d308286cf378ce9cfa3d73e3d1454263d