From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2I09Jaio7GBOfAAAgWs5BA (envelope-from ) for ; Mon, 12 Jul 2021 22:40:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SKkBIaio7GA8cgAA1q6Kng (envelope-from ) for ; Mon, 12 Jul 2021 20:40:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1473318BF2 for ; Mon, 12 Jul 2021 22:40:08 +0200 (CEST) Received: from localhost ([::1]:35584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m32il-00035v-5k for larch@yhetil.org; Mon, 12 Jul 2021 16:40:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m32ig-00035Y-K7 for guix-patches@gnu.org; Mon, 12 Jul 2021 16:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m32ig-0001zG-BO for guix-patches@gnu.org; Mon, 12 Jul 2021 16:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m32ig-0001Kw-3I for guix-patches@gnu.org; Mon, 12 Jul 2021 16:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49539] [PATCH] gnu: Add nginx-rtmp-module. Resent-From: Jack Hill Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Jul 2021 20:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49539@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16261223835108 (code B ref -1); Mon, 12 Jul 2021 20:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jul 2021 20:39:43 +0000 Received: from localhost ([127.0.0.1]:38949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m32iI-0001KF-Nf for submit@debbugs.gnu.org; Mon, 12 Jul 2021 16:39:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:51318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m32iG-0001K7-9b for submit@debbugs.gnu.org; Mon, 12 Jul 2021 16:39:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m32iG-00035B-2H for guix-patches@gnu.org; Mon, 12 Jul 2021 16:39:36 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:58884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m32iE-0001g9-Dr for guix-patches@gnu.org; Mon, 12 Jul 2021 16:39:35 -0400 Received: from [2001:470:8:9f5:f850:c9a2:75c6:a2d9] (helo=alperton.home.eronel.org) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m32iC-0004Yy-Pw for guix-patches@gnu.org; Mon, 12 Jul 2021 16:39:32 -0400 From: Jack Hill Date: Mon, 12 Jul 2021 16:39:20 -0400 Message-Id: <20210712203920.9243-1-jackhill@jackhill.us> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@jackhill.us; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626122408; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=My08WwFMKXc6Mrt2l4hELyMCOs1XMqYKxXtbtpRRLGY=; b=uJwLZc/NytIW46JrTn0sj23XBwE/O9WlgPlv9DJa8KAtb7PCi0jriYoPsp0Q+ssWG9SyRE sBoRlyEOsoS4o2YFAJ7intd+PGxJsdidcqUxdM0p8Pd2RI09RFyjox4bUkhxCf2IRkiwg/ MAxQjQVAggJkad9aD+O5wA4wSJZhR5izd8V4S51qtSYEHAoaLjcOa2ubCNE9M0C2hFcnRu 2iZAdE2fz4MFnYhfyVb+EXLNCo7h0j/87eRHQL/Nywf/+hA2wmxJk/lFXGr80OeD0J3j6F DktE5k460RlS/sRx6SaObj/4WOGW55HgRB9JBbh2WAcbMgCHFhQq1Xr3oBLcsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626122408; a=rsa-sha256; cv=none; b=fkPsKwQYKkoGAyiFl4thaiHmU8lbvH9FScn0hlPo43yE9i08gJeRZzLXo7nEtgknoBfU8e c2E9XcF1QXJuHcNZKcmpTh7bdpdET5BeagYY/sMVf79pzEnNqoiK0W2gv7mpWyUev4SfVS kmCzEEMmR/bLxc+TEcmx767hdqpVdyHqYBxXrrolejc0ZIud3sLjsIi70ucE88AbaITscT MGfPnhU0Yzs5RsWV1wmsYgDluLAtzzd0mvUrTFhmOABmqlPL9BDcTVuhphLH0VUKYWex8T Ew48d48pnz/aii5KjuwUTOjqmB/CcUvgBV9TN9qfasLsAIiNG0tCkkWCIVSvzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.40 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 1473318BF2 X-Spam-Score: -1.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: XrhBUbHDFhyS * gnu/packages/web.scm (nginx-rtmp-module): New variable. --- gnu/packages/web.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 2cc8619b19..ad51bfdf55 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -50,6 +50,7 @@ ;;; Copyright © 2021 Stefan Reichör ;;; Copyright © 2021 la snesne ;;; Copyright © 2021 Matthew James Kraai +;;; Copyright © 2021 Jack Hill ;;; ;;; This file is part of GNU Guix. ;;; @@ -771,6 +772,66 @@ documentation.") (description "This NGINX module provides a scripting support with Lua programming language."))) +(define-public nginx-rtmp-module + (package + (inherit nginx) + (name "nginx-rtmp-module") + (version "1.2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arut/nginx-rtmp-module") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0y45bswk213yhkc2v1xca2rnsxrhx8v6azxz9pvi71vvxcggqv6h")))) + (build-system gnu-build-system) + (inputs + `(("nginx-sources" ,(package-source nginx)) + ,@(package-inputs nginx))) + (arguments + (substitute-keyword-arguments + `(#:configure-flags '("--add-dynamic-module=.") + #:make-flags '("modules") + #:modules ((guix build utils) + (guix build gnu-build-system)) + ,@(package-arguments nginx)) + ((#:phases phases) + `(modify-phases ,phases + ;; The LICENSE file will be overwritten with the one from nginx + ;; when unpacking the nginx source, so copy this one to its own + ;; file. + (add-after 'unpack 'preserve-license-file + (lambda _ (copy-file "LICENSE" "LICENSE.rtmp"))) + (add-after 'preserve-license-file 'unpack-nginx-sources + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (begin + ;; The nginx source code is part of the module’s source. + (format #t "decompressing nginx source code~%") + (let ((tar (assoc-ref inputs "tar")) + (nginx-srcs (assoc-ref inputs "nginx-sources"))) + (invoke (string-append tar "/bin/tar") + "xvf" nginx-srcs "--strip-components=1")) + #t))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((modules-dir (string-append (assoc-ref outputs "out") + "/etc/nginx/modules"))) + (install-file "objs/ngx_rtmp_module.so" modules-dir) + #t))) + (delete 'fix-root-dirs) + (delete 'install-man-page))))) + (home-page "https://github.com/arut/nginx-rtmp-module") + (synopsis "NGINX module for audo and video streaming with RTMP") + (description "This NGINX module provides streaming with the @acronym{RTMP, +Real-Time Messaging Protocol}, @acronym{DASH, Dynamic Adaptive Streaming over HTTP}, +and @acronym{HLS, HTTP Live Streaming} protocols. It allows NGINX to accept +incoming RTMP streams for recording or redistribution. It also supports +on-demand streaming from a file on disk and pulling from an upstream RTMP +steam. Remote control of the module is possible over HTTP.") + (license license:bsd-2))) + (define-public lighttpd (package (name "lighttpd") -- 2.32.0