Subject: [PATCH] gnu: Add udpcast
From: [email-masked] (Artyom V. Poptsov)
To: [email-masked]
Date: Thu, 09 Dec 2021 00:29:18 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello Guixers,

this patch adds udpcast. [1]

Unfortunately the official site seems to be not very reliable.  So I
decided to use a mirror site to download the archive. [2]

Thanks,

- Artyom

1: https://www.udpcast.linux.lu/
2: http://sources.buildroot.net/udpcast/

From 15a0b78195c39efb337d161fac327d1e77f939db Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <[email-masked]>
Date: Tue, 7 Dec 2021 23:55:13 +0300
Subject: [PATCH] gnu: Add udpcast

* gnu/packages/admin.scm (udpcast): New variable.
---
 gnu/packages/admin.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index e640149a51..43f124df9b 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -44,6 +44,7 @@
 ;;; Copyright © 2021 Brice Waegeneire <[email-masked]>
 ;;; Copyright © 2021 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2021 Maxime Devos <[email-masked]>
+;;; Copyright © 2021 Artyom V. Poptsov <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -116,6 +117,7 @@
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages m4)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages man)
   #:use-module (gnu packages mcrypt)
@@ -4815,3 +4817,42 @@ FIFO and UNIX interprocess communication.")
 exit code reports successful or failed execution to
 @url{https://healthchecks.io,https://healthchecks.io} or your private instance.")
     (license license:bsd-0)))
+
+(define-public udpcast
+  (package
+    (name "udpcast")
+    (version "20200328")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (format #f
+                    ;; XXX: Original server is at https://www.udpcast.linux.lu
+                    ;;      Unfortunately it's not very reliable:
+                    ;;        "https://www.udpcast.linux.lu/download/udpcast-~a.tar.gz"
+                    ;;      Here's an alternative URL for downloading the package:
+                    ;;        "https://fossies.org/linux/privat/udpcast-~a.tar.gz"
+                    ;;        "http://sources.buildroot.net/udpcast/udpcast-~a.tar.gz"
+                    "http://sources.buildroot.net/udpcast/udpcast-~a.tar.gz"
+                    version))
+       (sha256
+        (base32 "06pj86nbi9hx7abbb0z2c5ynhfq0rv89b7nmy0kq3xz2lsxfw6cw"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf"   ,autoconf)
+       ("automake"   ,automake)
+       ("m4"         ,m4)
+       ("perl"       ,perl)))
+    (arguments
+     `(#:tests? #f))                      ; no test suite
+    (synopsis
+     "Multicast file transfer tool")
+    (description
+     "UDPcast is a file transfer tool that can send data simultaneously to
+many destinations on a LAN.  This can for instance be used to install entire
+classrooms of PC's at once.  The advantage of UDPcast over using other
+methods (nfs, ftp, whatever) is that UDPcast uses UDP's multicast abilities:
+it won't take longer to install 15 machines than it would to install just 2.")
+    (home-page "https://www.udpcast.linux.lu")
+    (license license:gpl2+)))
+
+
-- 
2.25.1

-- 
Artyom "avp" Poptsov <[email-masked]>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F