From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eK36DC1gsWXhGgEAe85BDQ:P1 (envelope-from ) for ; Wed, 24 Jan 2024 20:08:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eK36DC1gsWXhGgEAe85BDQ (envelope-from ) for ; Wed, 24 Jan 2024 20:08:29 +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="glmvWk/k"; 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=1706123309; a=rsa-sha256; cv=none; b=ANtu78XM/OuBerVvj3Hedol5WSzv9ra1SbpNi+ppFQWRUV/aXnsZFwbFpApnKPsQVWLqAO T+qWZm4w3KI+T84xw78qMudVzpANFN5dP3HkLd7ZR7nUZvpSN+BMO3REs+94QeDutzYQ0W z1a040VdvW8J7qz2M6NDvBBHefZKRdUYC3CzEM+3UKw/rvewmKvaLZGomL8dUuk3afjY/A LEGRLnGo84WchsywXDy0af4aZnlEquiowhby3xiW3tOsaTZxQ6vs+U98gjgstJI6bWCo0c deWs4kAxhADIzW7nLjxSwYL8b33MeOt4VJzv4MYe8hgqDo2cvCUoXYZVMxexNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=soeren-tempel.net header.s=opensmtpd header.b="glmvWk/k"; 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=1706123309; 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=k0DpZKX1DYomhY7F/ZQVzBUzu2yNFhib2IPCrOZoIIE=; b=pQtLWiDPbqRJcF46zN9IP8vdnKPEEyUlKAEqjflO+uLaKjnapsgHg7UxLhzMItTUMDE4Jb y/ee/i7yCftTpxbGuFO21+UR9mdw6oShbA/vJgauhjUovWHZURHke3nNhzbixRlB9LBZyW 8s4So5jbUvCH2vd364EhY/II9KNIp/g/THt3n/gT3yUmq+sEydIjnRu8ZcIvsxZImKzCzB YIA4PBV1DI+PJ72AqRFv62a3jSaLsWvVyUmuDxkz5Jg55XNcSrEVpqqyn7KeQuN9Nfg0qJ YtyGrKMEeG2/81rt/Y9AsUv3IoOuY8Iw3Wa55Us+ozK1D/zXACeAjBwmTwYgqA== 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 EE8DBB222 for ; Wed, 24 Jan 2024 20:08:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSibO-0005XS-Ml; Wed, 24 Jan 2024 14:07:58 -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 1rSibN-0005XC-4x for guix-patches@gnu.org; Wed, 24 Jan 2024 14:07:57 -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 1rSibM-0002Sz-Oz for guix-patches@gnu.org; Wed, 24 Jan 2024 14:07:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSibR-0000ks-JW for guix-patches@gnu.org; Wed, 24 Jan 2024 14:08:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68675] [PATCH v2] 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: Wed, 24 Jan 2024 19:08:01 +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.17061232432842 (code B ref 68675); Wed, 24 Jan 2024 19:08:01 +0000 Received: (at 68675) by debbugs.gnu.org; 24 Jan 2024 19:07:23 +0000 Received: from localhost ([127.0.0.1]:46578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSiao-0000jm-Gy for submit@debbugs.gnu.org; Wed, 24 Jan 2024 14:07:22 -0500 Received: from magnesium.8pit.net ([45.76.88.171]:12756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSial-0000jc-1m; Wed, 24 Jan 2024 14:07:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=opensmtpd; bh=LufFgN74cH J38lt5iLKazRIUm9JIsx94xPzGa3pdaA8=; h=date:subject:to:from; d=soeren-tempel.net; b=glmvWk/kcLlsYFfdcH58bnv0aogs33h6Wm2LzfKs9r23FIU 8t067OoUqbESSt9A+Ku6TlKrI5f6TdtgAr7h31xHR/Og+17+RvMQZV2186318Z4eogCdB8 VReek3jOYrmuzY+XrYqieTQXw++wF0gKfUYuFrErSZQnxCXKZmFHZo= Received: from localhost (dynamic-2a02-3102-49da-001b-a26a-e6c8-9697-b50f.310.pool.telefonica.de [2a02:3102:49da:1b:a26a:e6c8:9697:b50f]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 99597a9e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Wed, 24 Jan 2024 20:07:11 +0100 (CET) From: soeren@soeren-tempel.net Date: Wed, 24 Jan 2024 20:05:11 +0100 Message-ID: <2156325d2caa8d4298c9828d84fa5fff40592da4.1706123111.git.soeren@soeren-tempel.net> X-Mailer: git-send-email 2.43.0 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-Scanner: mx10.migadu.com X-Spam-Score: -4.57 X-Migadu-Queue-Id: EE8DBB222 X-Migadu-Spam-Score: -4.57 X-TUID: DpFAthTu6Sw4 From: Sören Tempel * gnu/packages/admin.scm (dhcpcd): new procedure. Signed-off-by: Sören Tempel --- Change since v1: * wrap dhcpcd-run-hooks to make sed and coreutils available * fix various lint and style warnings for the dhcpcd package gnu/packages/admin.scm | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index fcf05992d8..4b106f87a8 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -1608,6 +1608,63 @@ (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") + "CC=gcc") + #: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" + (string-append #$bash-minimal "/bin/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 (assoc-ref inputs "sed")) + (coreutils (assoc-ref inputs "coreutils"))) + (wrap-program (string-append libexec + "/dhcpcd-run-hooks") + `("PATH" ":" suffix + (,(string-append coreutils "/bin") + ,(string-append sed "/bin")))))))))) + (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