diff mbox series

[bug#52379] gnu: Add udpcast

Message ID 871r2m7pld.fsf@gmail.com
State Accepted
Headers show
Series [bug#52379] gnu: Add udpcast | expand

Commit Message

Artyom V. Poptsov Dec. 8, 2021, 9:29 p.m. UTC
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/
diff mbox series

Patch

From 15a0b78195c39efb337d161fac327d1e77f939db Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
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 <brice@waegenei.re>
 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2021 Artyom V. Poptsov <poptsov.artyom@gmail.com>
 ;;;
 ;;; 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