From unknown Sun Jun 22 17:17:29 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#75494] [PATCH] gnu: Add dhcpcd. Resent-From: soeren@soeren-tempel.net Original-Sender: "Debbugs-submit" Resent-CC: sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 11 Jan 2025 12:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75494@debbugs.gnu.org Cc: Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Sharlatan Hellseher Received: via spool by submit@debbugs.gnu.org id=B.173660029810372 (code B ref -1); Sat, 11 Jan 2025 12:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jan 2025 12:58:18 +0000 Received: from localhost ([127.0.0.1]:41726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWb4E-0002hD-27 for submit@debbugs.gnu.org; Sat, 11 Jan 2025 07:58:18 -0500 Received: from lists.gnu.org ([2001:470:142::17]:58522) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWb4B-0002gm-82 for submit@debbugs.gnu.org; Sat, 11 Jan 2025 07:58:16 -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 1tWb43-00058O-M2 for guix-patches@gnu.org; Sat, 11 Jan 2025 07:58:07 -0500 Received: from magnesium.8pit.net ([2001:19f0:6c01:4ae:5400:ff:fe66:af9d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWb3x-0002UX-Bf; Sat, 11 Jan 2025 07:58:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=opensmtpd; bh=8JWzU9ax LQhvC/5cqOipoNMvnDLROT3M+8pAED4Nkq0=; h=date:subject:to:from; d=soeren-tempel.net; b=dIV4M8bH+CkzfISzfmjA3eg9OJEWgfqRqjzzCZ2f5Kb+KfZ CZPcwhdzS1YIUBK4M5zL5pPMFwBBMC03DROXHmnrAbeHq4WkK24+97al7w5LxCeiYy2ku9 40gRVvB9rS79p+rPMxAdeUQd9kqTGLAO/2+0iMh/HZxW+zrwsskaoI= Received: from localhost ( [2a02:560:4d3d:df00:56d:bd22:51d4:e547]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 89593f77 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Sat, 11 Jan 2025 13:57:53 +0100 (CET) From: soeren@soeren-tempel.net Date: Sat, 11 Jan 2025 13:55:14 +0100 Message-ID: X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:19f0:6c01:4ae:5400:ff:fe66:af9d; envelope-from=soeren@soeren-tempel.net; helo=magnesium.8pit.net 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) From: Sören Tempel * gnu/packages/admin.scm (dhcpcd): new procedure. Signed-off-by: Sören Tempel --- This adds an alternative to isc-dhcpd which has reached its end-of-life in 2022 (i.e. three years ago!) and hasn't been maintained and patched upstream since [1]. This patch has been extracted from #68675 [2] in the hopes that it will be easier to get the package merged first and then propose either a standalone services [3] or a service integrated into dhcp-client-service-type [4] separatly afterwards. [1]: https://issues.guix.gnu.org/68619 [2]: https://issues.guix.gnu.org/68675 [3]: https://github.com/nmeum/guix-channel/blob/b1b80697a9d35ca015ce56ccf3031f91f2bf554f/src/nmeum/services/networking.scm#L130-L132 [4]: https://issues.guix.gnu.org/68675#10 gnu/packages/admin.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 7fd05341993..2e9640a9e1e 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -1712,6 +1712,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: bd24a13c572f1c4cf0e104adc7ca81fe71fee632 From unknown Sun Jun 22 17:17:29 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: soeren@soeren-tempel.net Subject: bug#75494: closed (Re: [bug#75494] [PATCH] gnu: Add dhcpcd.) Message-ID: References: <87tt9kzzeu.fsf@iscas.ac.cn> X-Gnu-PR-Message: they-closed 75494 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 75494@debbugs.gnu.org Date: Mon, 27 Jan 2025 03:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1737949982-18572-1" This is a multi-part message in MIME format... ------------=_1737949982-18572-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75494: [PATCH] gnu: Add dhcpcd. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75494@debbugs.gnu.org. --=20 75494: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75494 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1737949982-18572-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75494-done) by debbugs.gnu.org; 27 Jan 2025 03:52:51 +0000 Received: from localhost ([127.0.0.1]:58690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tcGB8-0004p6-Jg for submit@debbugs.gnu.org; Sun, 26 Jan 2025 22:52:51 -0500 Received: from smtp21.cstnet.cn ([159.226.251.21]:39356 helo=cstnet.cn) by debbugs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1tcGB3-0004oi-G9 for 75494-done@debbugs.gnu.org; Sun, 26 Jan 2025 22:52:48 -0500 Received: from m (unknown [107.174.64.25]) by APP-01 (Coremail) with SMTP id qwCowACnrVX7ApdnaXqdCQ--.4048S2; Mon, 27 Jan 2025 11:52:31 +0800 (CST) From: Zheng Junjie To: soeren@soeren-tempel.net Subject: Re: [bug#75494] [PATCH] gnu: Add dhcpcd. In-Reply-To: (soeren@soeren-tempel.net's message of "Sat, 11 Jan 2025 13:55:14 +0100") References: User-Agent: mu4e 1.12.7; emacs 30.0.92 Date: Mon, 27 Jan 2025 11:52:25 +0800 Message-ID: <87tt9kzzeu.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: qwCowACnrVX7ApdnaXqdCQ--.4048S2 X-Coremail-Antispam: 1UD129KBjvJXoWxGw4DCr47KrWxur1UJw4Utwb_yoWrZr4Upr WF9r1Fyr1fGr1xKwsxWF1IgrWrWrs5GryYkasFqw1qyrsIkFW8XrWxKay3AF17Aw1xGa9x Zay0qrW5WFy5urJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvKb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVW8Jr0_Cr1UM2vj62AExVA0xI801c8C04v26x02cVCv0xWle2I2 62IYc4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbV WUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF 67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42 IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF 0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxh VjvjDU0xZFpf9x07j_IDcUUUUU= X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75494-done Cc: Sharlatan Hellseher , 75494-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable soeren@soeren-tempel.net writes: > From: S=C3=B6ren Tempel > > * gnu/packages/admin.scm (dhcpcd): new procedure. > > Signed-off-by: S=C3=B6ren Tempel see https://guix.gnu.org/manual/devel/en/html_node/Commit-Access.html#Commi= t-Policy | When pushing a commit on behalf of somebody else, please add a |=E2=80=98Signed-off-by=E2=80=99 line at the end of the commit log message= =E2=80=94e.g., with |=E2=80=98git am --signoff=E2=80=99. This improves tracking of who did wha= t. So you don't need to add this line > --- > This adds an alternative to isc-dhcpd which has reached its end-of-life > in 2022 (i.e. three years ago!) and hasn't been maintained and patched > upstream since [1]. This patch has been extracted from #68675 [2] in the > hopes that it will be easier to get the package merged first and then > propose either a standalone services [3] or a service integrated into > dhcp-client-service-type [4] separatly afterwards. > > [1]: https://issues.guix.gnu.org/68619 > [2]: https://issues.guix.gnu.org/68675 > [3]: https://github.com/nmeum/guix-channel/blob/b1b80697a9d35ca015ce56ccf= 3031f91f2bf554f/src/nmeum/services/networking.scm#L130-L132 > [4]: https://issues.guix.gnu.org/68675#10 > > gnu/packages/admin.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 56 insertions(+) > > diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm > index 7fd05341993..2e9640a9e1e 100644 > --- a/gnu/packages/admin.scm > +++ b/gnu/packages/admin.scm > @@ -1712,6 +1712,62 @@ (define-public isc-dhcp > (license license:mpl2.0) > (properties '((cpe-name . "dhcp")))))) >=20=20 > +(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)))) adjust to (origin (uri ...) (file-name ...) (sha256 ...)) It's a general habit > + (inputs (list bash-minimal)) please test the cross-compilation next time. I add coreutils-minimal for rm, add sed for sed, and move eudev from native-inputs to inputs, because this is a compile-time library dependency. > + (native-inputs (list eudev)) > + (build-system gnu-build-system) > + (arguments > + (list > + #:test-target "test" > + #:configure-flags #~(list "--enable-ipv6" > + "--enable-privsep" > + "--privsepuser=3Ddhcpcd" > + (string-append "--dbdir=3D" "/var/db/dhc= pcd") > + (string-append "--rundir=3D" "/var/run/d= hcpcd") > + (string-append "CC=3D" #$(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 permi= ssions. > + (substitute* "src/Makefile" > + (("\\$\\{INSTALL\\} -m \\$\\{DBMODE\\} -d \\$\\= {DESTDIR\\}\\$\\{DBDIR\\}") I added a \ to avoid being too long > + "")))) > + (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= ") adjust to (string-append #$output "/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 configuratio= n.") > + (license license:bsd-2))) > + > (define-public radvd > (package > (name "radvd") > > base-commit: bd24a13c572f1c4cf0e104adc7ca81fe71fee632 pushed, closing. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmeXAvkACgkQO1qpk+Gi 3/CXpA/+K/nn8RGxNgFAGBi5V6Pp5723nO8qTPGIlWRiE4AurdeW2SxolUWDHuBw FIumeoiH6iiODRWUqV77oWDLY6VFLoAJ1OTpEaPMOpBV2tvJNcYJ0bF3uQvTAS5N 3PljVVCqGl3JjeC8VRoRuJpZp7Ya5cMvfZDe3BEML685sb11rU39VAG7lR2WqVoP ZuQBOxGwxYnFclRZDxgRuf1PFTne70xXJYPGarRlbHeE7O5/ysR+fqsBcvK4FOzG mquR9W9EHYj3z1rsQpDCQ8Pr8Fr7FrGZdyXgEHZcIr0dk5R4Xfxs7575eVVuCFbU N8owzK3BnHIYG/1AM2Z7crPYmQHfzOLN1lnhkaaP9/rjchGcg4E/xR/ZPKVycqLJ xkpaxYRN0daQLTinZ6ECPX5dJ3cJaLcHuwWaZbKnsalaGQRVxKqsiCQZHE/wAqJi os3bQlXHzTZwkZdHo2vhomBpIvR3tGVZ5L6AQAkmd1VxkxQl/CggJzJRs36uxlIn JowuY9O9sg62CklulyBAqdxV2ZJZbOkH7bGCn9EOQis0AG4dgSUpSe6DAgA0CfGD 8PkP3aG4N0cb27rK/Q/kEK2tazy3XlEKMkGsYBoW/qPC9ePHEl3IVtRNje3rGyok 7xLJOCOjYf50JJI3rwHE7lJS3OHr7mEwc/nqj4GzN3EUeP2oV1A= =cMTo -----END PGP SIGNATURE----- --=-=-=-- ------------=_1737949982-18572-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Jan 2025 12:58:18 +0000 Received: from localhost ([127.0.0.1]:41726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWb4E-0002hD-27 for submit@debbugs.gnu.org; Sat, 11 Jan 2025 07:58:18 -0500 Received: from lists.gnu.org ([2001:470:142::17]:58522) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWb4B-0002gm-82 for submit@debbugs.gnu.org; Sat, 11 Jan 2025 07:58:16 -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 1tWb43-00058O-M2 for guix-patches@gnu.org; Sat, 11 Jan 2025 07:58:07 -0500 Received: from magnesium.8pit.net ([2001:19f0:6c01:4ae:5400:ff:fe66:af9d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWb3x-0002UX-Bf; Sat, 11 Jan 2025 07:58:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=opensmtpd; bh=8JWzU9ax LQhvC/5cqOipoNMvnDLROT3M+8pAED4Nkq0=; h=date:subject:to:from; d=soeren-tempel.net; b=dIV4M8bH+CkzfISzfmjA3eg9OJEWgfqRqjzzCZ2f5Kb+KfZ CZPcwhdzS1YIUBK4M5zL5pPMFwBBMC03DROXHmnrAbeHq4WkK24+97al7w5LxCeiYy2ku9 40gRVvB9rS79p+rPMxAdeUQd9kqTGLAO/2+0iMh/HZxW+zrwsskaoI= Received: from localhost ( [2a02:560:4d3d:df00:56d:bd22:51d4:e547]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 89593f77 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Sat, 11 Jan 2025 13:57:53 +0100 (CET) From: soeren@soeren-tempel.net To: guix-patches@gnu.org Subject: [PATCH] gnu: Add dhcpcd. Date: Sat, 11 Jan 2025 13:55:14 +0100 Message-ID: X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: sharlatanus@gmail.com X-Debbugs-Cc: Sharlatan Hellseher Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:19f0:6c01:4ae:5400:ff:fe66:af9d; envelope-from=soeren@soeren-tempel.net; helo=magnesium.8pit.net 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) From: Sören Tempel * gnu/packages/admin.scm (dhcpcd): new procedure. Signed-off-by: Sören Tempel --- This adds an alternative to isc-dhcpd which has reached its end-of-life in 2022 (i.e. three years ago!) and hasn't been maintained and patched upstream since [1]. This patch has been extracted from #68675 [2] in the hopes that it will be easier to get the package merged first and then propose either a standalone services [3] or a service integrated into dhcp-client-service-type [4] separatly afterwards. [1]: https://issues.guix.gnu.org/68619 [2]: https://issues.guix.gnu.org/68675 [3]: https://github.com/nmeum/guix-channel/blob/b1b80697a9d35ca015ce56ccf3031f91f2bf554f/src/nmeum/services/networking.scm#L130-L132 [4]: https://issues.guix.gnu.org/68675#10 gnu/packages/admin.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 7fd05341993..2e9640a9e1e 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -1712,6 +1712,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: bd24a13c572f1c4cf0e104adc7ca81fe71fee632 ------------=_1737949982-18572-1--