From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Custom wireguard shepherd service Date: Thu, 12 Mar 2020 13:39:20 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43299) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCN7f-00072c-3t for help-guix@gnu.org; Thu, 12 Mar 2020 08:39:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCN7c-00027G-OZ for help-guix@gnu.org; Thu, 12 Mar 2020 08:39:35 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:38891) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCN7c-0001z4-Hc for help-guix@gnu.org; Thu, 12 Mar 2020 08:39:32 -0400 Received: by mail-wr1-x436.google.com with SMTP id x11so2479038wrv.5 for ; Thu, 12 Mar 2020 05:39:32 -0700 (PDT) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Gregory Katz Cc: help-guix Hello, Gregory Katz ezt =C3=ADrta (id=C5=91pont: 2020. m= =C3=A1rc. 12., Cs, 13:30): > > Thank you very much g_bor. I believe you've given me the information I n= eed to make this work. I think I may be able to get away with regexp subst= itution for this very simple change. If you know of an example in the sour= ce tree of regexp substitution of the top of your head please let me know, = otherwise, I'm sure I'll be able to find an example on my own. You can see an easy example in acl. In line 65. > > > Sent with ProtonMail Secure Email. > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original = Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 > On Thursday, March 12, 2020 3:09 AM, G=C3=A1bor Boskovits wrote: > > Hello Gregory, > > Gregory Katz via ezt =C3=ADrta (id=C5=91pont: 2020. m= =C3=A1rc. 12., Cs=C3=BC 4:48): >> >> Hi all, >> >> I'm trying to put together a wireguard shepherd service that operates si= milar to the current nftables service, i.e., the service works by running a= utility program (in this case a shell script called wg-quick) with a confi= guration file. Unfortunately, wg-quick, which is included in the wireguard= -tools package, does not work with files interred by guix (the file names a= re too long). To make it work, I have to patch wg-quick. >> >> Can anyone point me to where I can read up on how to apply a patch durin= g the wireguard-tools build process? > > > You can run a search against the keyword search-patches in a package modu= le to see how patches are included in a package definition. If the patch on= ly does simple regexp substitution, you can also consider using a phase wit= h substitute*. There are a lot of packages using that. If you need to have = a patch, then you should add it to the gnu/packages/patches directory, and = also to the local.mk file patches variable, so that the build picks it up. = You can search the git log for adding or removing a patch, so that you see = how it is done. >> >> >> Thanks very much for the help, >> >> Greg >> >> Sent with [ProtonMail](https://protonmail.com) Secure Email. > > Best regards, > g_bor > > --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21