unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58496] [PATCH 0/2] gnu: Add coturn
@ 2022-10-13 15:41 Thomas Albers Raviola via Guix-patches via
  2022-10-13 15:43 ` [bug#58496] [PATCH 1/2] gnu: Add libevent-with-openssl Thomas Albers via Guix-patches via
  2023-09-02  4:24 ` bug#58496: " Vagrant Cascadian
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Albers Raviola via Guix-patches via @ 2022-10-13 15:41 UTC (permalink / raw)
  To: 58496

Hello,

the following patch series adds coturn to guix. Some notes:

- for some reason libevent is being compiled without openssl, so I had
  to define a variant for coturn to use.

- gnu/packages/libevent.scm still used the old package-inputs syntax. I
  am not sure if this is intentional, so I kept the old syntax for the
  file even though it is deprecated.

- I'm not very good at describing packages, if someone has any
  recomendations I can send a new patch.

Regards,
Thomas




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#58496] [PATCH 1/2] gnu: Add libevent-with-openssl
  2022-10-13 15:41 [bug#58496] [PATCH 0/2] gnu: Add coturn Thomas Albers Raviola via Guix-patches via
@ 2022-10-13 15:43 ` Thomas Albers via Guix-patches via
  2022-10-13 15:43   ` [bug#58496] [PATCH 2/2] gnu: Add coturn Thomas Albers via Guix-patches via
  2022-10-23 13:16   ` [bug#58496] [PATCH 0/2] " Ludovic Courtès
  2023-09-02  4:24 ` bug#58496: " Vagrant Cascadian
  1 sibling, 2 replies; 5+ messages in thread
From: Thomas Albers via Guix-patches via @ 2022-10-13 15:43 UTC (permalink / raw)
  To: 58496; +Cc: Thomas Albers

* gnu/packages/libevent.scm (libevent-with-openssl): New variable.
---
 gnu/packages/libevent.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/libevent.scm b/gnu/packages/libevent.scm
index d807315906..e0ba2b3d5b 100644
--- a/gnu/packages/libevent.scm
+++ b/gnu/packages/libevent.scm
@@ -76,6 +76,17 @@ (define-public libevent
 loop.")
     (license bsd-3)))
 
+(define-public libevent-with-openssl
+  (package
+    (inherit libevent)
+    (name "libevent-with-openssl")
+    (inputs
+     `(("openssl" ,openssl)
+       ,@(package-inputs libevent)))
+    (arguments
+     ;; This skips some of the tests which fail on armhf and aarch64.
+     '(#:configure-flags '("--disable-libevent-regress")))))
+
 (define-public libev
   (package
     (name "libev")
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#58496] [PATCH 2/2] gnu: Add coturn
  2022-10-13 15:43 ` [bug#58496] [PATCH 1/2] gnu: Add libevent-with-openssl Thomas Albers via Guix-patches via
@ 2022-10-13 15:43   ` Thomas Albers via Guix-patches via
  2022-10-23 13:16   ` [bug#58496] [PATCH 0/2] " Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Albers via Guix-patches via @ 2022-10-13 15:43 UTC (permalink / raw)
  To: 58496; +Cc: Thomas Albers

* gnu/packages/telephony.scm (coturn): New variable.
---
 gnu/packages/telephony.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm
index 5a7c3821ad..13feedbb2e 100644
--- a/gnu/packages/telephony.scm
+++ b/gnu/packages/telephony.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
 ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
 ;;; Copyright © 2021 Demis Balbach <db@minikn.xyz>
+;;; Copyright © 2022 Thomas Albers Raviola <thomas@thomaslabs.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -53,6 +54,7 @@ (define-module (gnu packages telephony)
   #:use-module (gnu packages cpp)
   #:use-module (gnu packages crypto)
   #:use-module (gnu packages databases)
+  #:use-module (gnu packages sqlite)
   #:use-module (gnu packages docbook)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages file)
@@ -89,6 +91,7 @@ (define-module (gnu packages telephony)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages flex)
+  #:use-module (gnu packages libevent)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix utils)
   #:use-module (guix packages)
@@ -894,3 +897,32 @@ (define-public libtgvoip
 telephony functionality into custom Telegram clients.")
     (home-page "https://github.com/zevlg/libtgvoip")
     (license license:unlicense)))
+
+(define-public coturn
+  (package
+    (name "coturn")
+    (version "4.6.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/coturn/coturn")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "152v2lnjj9b3w61d8aak7hmi9riw9cjs5g54g1gfpzlyk4c2jw21"))))
+    (inputs
+     (list openssl
+           sqlite
+           libevent-with-openssl
+           hiredis))
+    (native-inputs
+     (list pkg-config))
+    (build-system gnu-build-system)
+    (synopsis "Implementation of a TURN and STUN server for VoIP")
+    (description
+     "This package provides a VoIP media traffic NAT traversal server and
+gateway.  It implements the STUN (Session Traversal Utilities for NAT) and
+TURN (Traversal Using Relays around NAT) server protocols.")
+    (home-page "https://github.com/coturn/coturn")
+    (license license:bsd-3)))
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#58496] [PATCH 0/2] gnu: Add coturn
  2022-10-13 15:43 ` [bug#58496] [PATCH 1/2] gnu: Add libevent-with-openssl Thomas Albers via Guix-patches via
  2022-10-13 15:43   ` [bug#58496] [PATCH 2/2] gnu: Add coturn Thomas Albers via Guix-patches via
@ 2022-10-23 13:16   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2022-10-23 13:16 UTC (permalink / raw)
  To: Thomas Albers; +Cc: 58496

Hi Thomas,

Thomas Albers <thomas@thomaslabs.org> skribis:

> * gnu/packages/libevent.scm (libevent-with-openssl): New variable.

I change (package (inherit libevent) …) to (package/inherit libevent …)
here, to preserve the ‘replacement’ field, if any.

I think we can change merge it with libevent and also update to the
“new” input style on the ‘core-updates’ branch.

> * gnu/packages/telephony.scm (coturn): New variable.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#58496: [PATCH 0/2] gnu: Add coturn
  2022-10-13 15:41 [bug#58496] [PATCH 0/2] gnu: Add coturn Thomas Albers Raviola via Guix-patches via
  2022-10-13 15:43 ` [bug#58496] [PATCH 1/2] gnu: Add libevent-with-openssl Thomas Albers via Guix-patches via
@ 2023-09-02  4:24 ` Vagrant Cascadian
  1 sibling, 0 replies; 5+ messages in thread
From: Vagrant Cascadian @ 2023-09-02  4:24 UTC (permalink / raw)
  To: Thomas Albers Raviola, 58496-done

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

On 2022-10-13, Thomas Albers Raviola wrote:
> the following patch series adds coturn to guix. Some notes:
>
> - for some reason libevent is being compiled without openssl, so I had
>   to define a variant for coturn to use.

Both coturn and libevent-with-openssl were added to guix:

9ed4251d70fb62e176f927129934a76a3dad2d64 gnu: Add libevent-with-openssl.
d117d225d99a99984b4cce082f5f1bdd18efc003 gnu: Add coturn.

Marking as done.

live well,
  vagrant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-02  4:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-13 15:41 [bug#58496] [PATCH 0/2] gnu: Add coturn Thomas Albers Raviola via Guix-patches via
2022-10-13 15:43 ` [bug#58496] [PATCH 1/2] gnu: Add libevent-with-openssl Thomas Albers via Guix-patches via
2022-10-13 15:43   ` [bug#58496] [PATCH 2/2] gnu: Add coturn Thomas Albers via Guix-patches via
2022-10-23 13:16   ` [bug#58496] [PATCH 0/2] " Ludovic Courtès
2023-09-02  4:24 ` bug#58496: " Vagrant Cascadian

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).