From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MD0TL0hQg1/OGgAA0tVLHw (envelope-from ) for ; Sun, 11 Oct 2020 18:34:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WI7QKkhQg194RwAAB5/wlQ (envelope-from ) for ; Sun, 11 Oct 2020 18:34:48 +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 68A2A9400BF for ; Sun, 11 Oct 2020 18:34:48 +0000 (UTC) Received: from localhost ([::1]:38006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRgBD-0000uw-CR for larch@yhetil.org; Sun, 11 Oct 2020 14:34:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRg7c-00061b-AM for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57725) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRg7c-0008MP-0N for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRg7b-0007TL-Ty for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43933] [PATCH 7/8] gnu: Add nginx-lua-module. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Oct 2020 18:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43933 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43933@debbugs.gnu.org Cc: Oleg Pykhalov Received: via spool by 43933-submit@debbugs.gnu.org id=B43933.160244105328659 (code B ref 43933); Sun, 11 Oct 2020 18:31:03 +0000 Received: (at 43933) by debbugs.gnu.org; 11 Oct 2020 18:30:53 +0000 Received: from localhost ([127.0.0.1]:41029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRg7R-0007S5-C9 for submit@debbugs.gnu.org; Sun, 11 Oct 2020 14:30:53 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRg7O-0007Qr-10 for 43933@debbugs.gnu.org; Sun, 11 Oct 2020 14:30:50 -0400 Received: by mail-lj1-f194.google.com with SMTP id y16so13547282ljk.1 for <43933@debbugs.gnu.org>; Sun, 11 Oct 2020 11:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ijqUY900b6TGthORwAybl4TrXng6oAUmqYODosrSmmQ=; b=iLEJUkoiZvjkWr/UitRDKy8fMXEL4khBp5ogv6lrKoYrvs4p2pEnQk+QA2xP7q13Ur jiYD+y8MkOE8lW1dbNcZnaFDlQQ1nZYDEnyV36YtLTzNXbRy4oKKlfRp0C1Fkju96FEJ 4GawnHCcgn+UD7ukbHfnU0RK/djnbPfx/8S9hlfO6pEHiLIx+bBQ4v5Ill3TSBfPHujG tIimIWmhj1nEea25e0pXm37t31vgUyY27LKJQbdjCSpbwdVp7ZKD3hJzjaiTGlm7m/6L TVu6h6PCLsE83QvyP1SR+AM60SErWAvuc+ADgNdq1sg6/Ob993ZTaWd8Pu9x8cZn2Lt0 YRcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ijqUY900b6TGthORwAybl4TrXng6oAUmqYODosrSmmQ=; b=UGyyaHcyRZ0O8p/5GEa1ahWIFKaWM13w6QKxftKq7lpXwyDu5URibKa3X54DXzFNuF E4IiCx/ATqexjOpkNxo5b3ntUIc8Ptn5369EHPFtP5yc82pWkV0shU55vUaDh4UUJhOI fbxSFz/Q0nGe16wuHBaovgbu7oLEgsglikynAlI1SpEfmZzFA2immhwoeXNT1SWQyjQd ZkemK48jZKjCrs5d/hhSvZx9MLpYHM5jWhAhbHPeuILDRLCqfQ7N28NNsWfzfEjGCJHe gkxkm+fpujXzyjP8sXt6xJsWbd5Ofp5jWp+BUiyI8zuivrt8/sI4LPthtbHCX3wxhXg/ WgzA== X-Gm-Message-State: AOAM533PSwlAvHWHUg3vECy6M9Wmk0s0aLac0OtRuDFaUA6f1vHKTPp3 6vo1ilNiLSO1LH+qB98olL/A7S8tP9A= X-Google-Smtp-Source: ABdhPJwGUsIgUfPxWyWIb7lY+FEEc8fGS92bSd3Fxf/tq28QESksC/EFBs6tpb7k+sCwlQh2a4GgjA== X-Received: by 2002:a05:651c:238:: with SMTP id z24mr275719ljn.408.1602441043995; Sun, 11 Oct 2020 11:30:43 -0700 (PDT) Received: from localhost.localdomain (95-55-4-176.dynamic.avangarddsl.ru. [95.55.4.176]) by smtp.gmail.com with ESMTPSA id l188sm2669151lfd.127.2020.10.11.11.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2020 11:30:43 -0700 (PDT) From: Oleg Pykhalov Date: Sun, 11 Oct 2020 21:30:11 +0300 Message-Id: <20201011183012.15932-7-go.wigust@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201011183012.15932-1-go.wigust@gmail.com> References: <20201011183012.15932-1-go.wigust@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=iLEJUkoi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: 1.59 X-TUID: 5dh7B/5VsHck * gnu/packages/web.scm (nginx-lua-module): New variable. --- gnu/packages/web.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index f7330aa749..d2177d2229 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -560,6 +560,69 @@ documentation.") (patches (append (search-patches "nginx-socket-cloexec.patch") (origin-patches (package-source nginx)))))))) +(define-public nginx-lua-module + (package + (inherit nginx) + (name "nginx-lua-module") + (version "0.10.15") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openresty/lua-nginx-module") + (commit (string-append "v" version)))) + (file-name (git-file-name "lua-nginx-module" version)) + (sha256 + (base32 + "1j216isp0546hycklbr5wi8mlga5hq170hk7f2sm16sfavlkh5gz")))) + (build-system gnu-build-system) + (inputs + `(("nginx-sources" ,(package-source nginx-socket-cloexec)) + ("luajit" ,luajit) + ,@(package-inputs nginx))) + (arguments + (substitute-keyword-arguments + `(#:configure-flags '("--add-dynamic-module=.") + #:make-flags '("modules") + #:modules ((guix build utils) + (guix build gnu-build-system) + (ice-9 popen) + (ice-9 regex) + (ice-9 textual-ports)) + ,@(package-arguments nginx)) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack '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))) + (add-before 'configure 'set-luajit-env + (lambda* (#:key inputs #:allow-other-keys) + (let ((luajit (assoc-ref inputs "luajit"))) + (setenv "LUAJIT_LIB" + (string-append luajit "/lib")) + (setenv "LUAJIT_INC" + (string-append luajit "/include/luajit-2.1")) + #t))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((modules-dir (string-append (assoc-ref outputs "out") "/etc/nginx/modules"))) + (mkdir-p modules-dir) + (copy-file "objs/ngx_http_lua_module.so" + (string-append modules-dir "/ngx_http_lua_module.so")) + #t))) + (delete 'fix-root-dirs) + (delete 'install-man-page))))) + (synopsis "NGINX module for Lua programming language support") + (description "This NGINX module provides a scripting support with Lua +programming language."))) + (define-public lighttpd (package (name "lighttpd") -- 2.28.0