From debbugs-submit-bounces@debbugs.gnu.org Fri May 27 15:27:44 2022 Received: (at 55682) by debbugs.gnu.org; 27 May 2022 19:27:44 +0000 Received: from localhost ([127.0.0.1]:35820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nufce-00064t-66 for submit@debbugs.gnu.org; Fri, 27 May 2022 15:27:44 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:59172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nufcc-00064g-PJ for 55682@debbugs.gnu.org; Fri, 27 May 2022 15:27:43 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:40]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 5B0301AC53 for <55682@debbugs.gnu.org>; Fri, 27 May 2022 12:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1653679657; bh=hIsVgF7yYt48iDUFyX8Ld/Pz2aMFVT6KZ10/RhSQUt0=; h=From:To:Subject:In-Reply-To:References:Date:From; b=cSBzb00V2ZmbGbdXxXA/xK69g1+EVykOUOWyu3qu53VGdBOO2BiLwp4ycvYK30pYw IGIhjh99IBgW64xRECmOSS8uaS1KMDxLeDfEJ8hd9delOfRrZjaBJtv2poeKXqTPO0 hSCKada7eBltAu8WRUIE9r6DhwV34H2kolIinphte+DkwHVQI34Hqth0f0ftOsA8vb GgA+Amiizq/AwvIzDP5qAoPJiwQR6klLVw7Rt1cHy9X4lXfws2sz2ohwZnh5tmwYMK JplfYGhE4a4ZGRg6JxoZ8YfqOxUejz9+53ohXFx6cSTC1LiFLFwzhWOaFMi/MbMt5H e7Z2p4fBE6nkw== From: Vagrant Cascadian To: 55682@debbugs.gnu.org Subject: Re: RFC packaging for lcsync In-Reply-To: <87pmjy6akb.fsf@yucca> References: <87v8tq6bby.fsf@yucca> <87pmjy6akb.fsf@yucca> Date: Fri, 27 May 2022 12:27:33 -0700 Message-ID: <87mtf26aje.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55682 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: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-gnu-Add-lcsync.patch Content-Transfer-Encoding: quoted-printable From=20c23ef5bf9248921af15e337d328b2fffb7edc996 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 26 May 2022 14:37:32 -0700 Subject: [PATCH 2/2] gnu: Add lcsync. FIXME tests run, but all fail. test failures do not trigger build failures. FIXME figure out how to properly: setcap cap_net_raw=3Deip bin/lcsync * gnu/packages/networking.scm (lcsync): New variable. =2D-- gnu/packages/networking.scm | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index ae780d5a05..605173faa9 100644 =2D-- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -207,6 +207,48 @@ on byte-critical systems. It supports HTTP, HTTPS, FT= P and FTPS protocols.") (license license:gpl2+))) =20 +(define-public lcsync + (package + (name "lcsync") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/librestack/lcsync") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0s038b4xg9nlzhrganzjyfvc6n6cgd6kilnpik4axp62j2n5q11q")))) + (build-system gnu-build-system) + (arguments + `(#:parallel-tests? #f + #:make-flags + (let ((target ,(%current-target-system))) + (list ,(string-append "CC=3D" + (cc-for-target)) + ;; avoid running setcap in the install process + "SETCAP_PROGRAM=3Dtrue" + (string-append "prefix=3D" + (assoc-ref %outputs "out")))) + #:phases + (modify-phases %standard-phases + (delete 'configure) ;no configure script + (add-before 'build 'add-library-paths + (lambda* (#:key inputs #:allow-other-keys) + (let* ((librecast (assoc-ref inputs "librecast"))) + (substitute* (list "./src/Makefile" "./test/Makefile") + (("-llibrecast") (string-append "-L" librecast + "/lib -llibrecast")))))))= )) + (inputs (list librecast libsodium)) + (home-page "https://librecast.net/lcsync.html") + (synopsis "librecast file and data syncing tool") + (description + "lcsync is a tool to sync files over IPv6 multicast or the +local filesystem. It splits the file into blocks, hashes them, and compar= es +them in order to efficiently transfer a minimal amount of data.") + (license (list license:gpl2 license:gpl3)))) + ;; This package does not have a release yet. ;; But this is required to provide a feature in PipeWire. (define-public libcamera =2D-=20 2.30.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYpEmJgAKCRDcUY/If5cW qpDaAP0cgpulj3v6k3qkTbiO2Hj87Q1VYm4ol+gEBAuCIJipxAD/UKr7g/N8IJA8 PYpdBo/MKp+d63y1QVok1L2ixDaTvAI= =JqWr -----END PGP SIGNATURE----- --==-=-=--