From patchwork Sat Jul 30 23:43:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 41061 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6CE9B27BBEA; Sun, 31 Jul 2022 00:45:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 15F5027BBE9 for ; Sun, 31 Jul 2022 00:45:24 +0100 (BST) Received: from localhost ([::1]:50074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHw95-0007xv-5v for patchwork@mira.cbaines.net; Sat, 30 Jul 2022 19:45:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHw8k-0007wa-IX for guix-patches@gnu.org; Sat, 30 Jul 2022 19:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHw8k-000402-8x for guix-patches@gnu.org; Sat, 30 Jul 2022 19:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHw8k-00007R-5P for guix-patches@gnu.org; Sat, 30 Jul 2022 19:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55682] [PATCH V2 3/3] gnu: Add lcsync. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Jul 2022 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 55682@debbugs.gnu.org Received: via spool by 55682-submit@debbugs.gnu.org id=B55682.1659224645362 (code B ref 55682); Sat, 30 Jul 2022 23:45:02 +0000 Received: (at 55682) by debbugs.gnu.org; 30 Jul 2022 23:44:05 +0000 Received: from localhost ([127.0.0.1]:35938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHw7p-00005m-3p for submit@debbugs.gnu.org; Sat, 30 Jul 2022 19:44:05 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:53418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHw7m-000050-FZ for 55682@debbugs.gnu.org; Sat, 30 Jul 2022 19:44:03 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 1780E1AC6C for <55682@debbugs.gnu.org>; Sat, 30 Jul 2022 16:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1659224637; bh=JvV0aodhRvTWV+1ZidI4/uHwIiYR84yDmMV5us5soV4=; h=From:To:Subject:In-Reply-To:References:Date:From; b=cFuMG8JEF91yx3pSwTKw/jZ6e8hq+IiXBesN4X9qVT4PjgLgPoYU6gGTBPLgsgnLY uZSNUjePa/MQto4cqHy+W4XQtWUdLFDE1Sugfby9JXDLuyYagi/OHxUUI/G51CW6dU D2yxV8RGqzL2O/njldq/6zzaMpdKAe0dmk475cjA/PNeCKa2QXC8w1VC0bbU+OrWom LHli+e2qeJEgKbKR+pP2Fr9TH5CMvLGlPAvNkuHKEyYuHsONwbUIdQWfHP/yfpE+jT jPVO0+wqDUex75pgHmI0jcZh3VDH5PykqKaQNpqi2j4GZxruONXX9nV8nXCfsbKqRf RRcRMQ7oGx8Rg== From: Vagrant Cascadian In-Reply-To: <87r122yxp9.fsf@contorta> References: <87v8tq6bby.fsf@yucca> <87wnbuyxu5.fsf@contorta> <87tu6yyxr2.fsf@contorta> <87r122yxp9.fsf@contorta> Date: Sat, 30 Jul 2022 16:43:52 -0700 Message-ID: <87o7x6yxmv.fsf@contorta> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 14cfc0c8ac18be80eb441df3d063c4dd1175f36b Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 26 May 2022 14:37:32 -0700 Subject: [PATCH 3/3] gnu: Add lcsync. FIXME figure out how to properly: setcap cap_net_raw=eip bin/lcsync * gnu/packages/networking.scm (lcsync): New variable. --- gnu/packages/networking.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 41aa346036..0d2ecfcad1 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -275,6 +275,49 @@ (define-public lcrq the RFC.") (license (list license:gpl2 license:gpl3)))) +(define-public lcsync + (package + (name "lcsync") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/librecast/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=" + (cc-for-target)) + ;; avoid running setcap in the install process + "SETCAP_PROGRAM=true" + (string-append "prefix=" + (assoc-ref %outputs "out")))) + #:phases (modify-phases %standard-phases + (delete 'configure) ;no configure script + (replace 'check + (lambda _ + (invoke "make" "test" "CC=gcc"))) + (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 compares +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 -- 2.35.1