From patchwork Tue Oct 20 19:17:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandru-Sergiu Marton X-Patchwork-Id: 24715 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7238627BBEE; Tue, 20 Oct 2020 17:37:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1013827BBED for ; Tue, 20 Oct 2020 17:37:44 +0100 (BST) Received: from localhost ([::1]:38310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUudr-0007P6-7Q for patchwork@mira.cbaines.net; Tue, 20 Oct 2020 12:37:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUuKo-0007OF-Ib for guix-patches@gnu.org; Tue, 20 Oct 2020 12:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUuKo-0006ad-75 for guix-patches@gnu.org; Tue, 20 Oct 2020 12:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kUuKo-000675-1X for guix-patches@gnu.org; Tue, 20 Oct 2020 12:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44099] [PATCH] gnu: Add gmnisrv. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Oct 2020 16:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44099 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44099@debbugs.gnu.org Cc: Alexandru-Sergiu Marton X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160321067123481 (code B ref -1); Tue, 20 Oct 2020 16:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Oct 2020 16:17:51 +0000 Received: from localhost ([127.0.0.1]:46497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUuKZ-00066Z-0X for submit@debbugs.gnu.org; Tue, 20 Oct 2020 12:17:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:53760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUuKX-00066S-N6 for submit@debbugs.gnu.org; Tue, 20 Oct 2020 12:17:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUuKX-0006vb-G6 for guix-patches@gnu.org; Tue, 20 Oct 2020 12:17:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUuKS-0006Yr-TS for guix-patches@gnu.org; Tue, 20 Oct 2020 12:17:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 6488E2400FB for ; Tue, 20 Oct 2020 18:17:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1603210656; bh=q8XkIjZyGnHBIVnGgc8pSBRfY/Omaii/+G4P+V59F4U=; h=From:To:Cc:Subject:Date:From; b=Q80dGQLJnaCRubJuljKb2w0Qna3eZrrGps++x6G0JS4iRr3T3y2HQj9uqSaT8fZyr i4IRao7v+MRgSlsnsk9tf4KSfliMsipFXIxzhCFQHld6/r7JDvST4/tOGWQIFmNOPL Ubz0gbd/+wAXZ0Qs9x6SvXms9yCnD7qveoUMB9fUVDsZWpw+F7TVbXeBDT3DQbPgwL 09W0EgvFDm0UDK6tUlI6Z5t5fKZD//0JnrdNR2U0ckkn//DBr+Qm2MS0DKL6x6DzW7 UPSW7V8rag9b9iQQFTw990XZlZpDTunBJIpRpdaT5bAVcO8heBTvQk0+XwNmD9SoAG VE72txckfr5uw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CFzL763r1z9rxl; Tue, 20 Oct 2020 18:17:35 +0200 (CEST) From: Alexandru-Sergiu Marton Date: Tue, 20 Oct 2020 22:17:38 +0300 Message-Id: <20201020191738.30054-1-brown121407@posteo.ro> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=brown121407@posteo.ro; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/20 11:19:24 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/web.scm (gmnisrv): New variable. --- gnu/packages/web.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 5be95e4741..2ce3ab89bf 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -46,6 +46,7 @@ ;;; Copyright © 2020 Paul Garlick ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Ryan Prior +;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; ;;; This file is part of GNU Guix. ;;; @@ -128,6 +129,7 @@ #:use-module (gnu packages lisp-xyz) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) + #:use-module (gnu packages man) #:use-module (gnu packages markup) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) @@ -7702,3 +7704,44 @@ solution for any project's interface needs: @item Easily integrated and extensible with Python or Lua scripting. @end itemize\n") (license license:expat))) + +(define-public gmnisrv + (let ((commit "a22bec51494a50c044416d469cc33e043480e7fd")) + (package + (name "gmnisrv") + (version (git-version "0" "0" commit)) + (home-page "https://git.sr.ht/~sircmpwn/gmnisrv") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (sha256 + (base32 + "1k1n7cqd37jgbhxyh231bagdxdxqwpr6n5pk3gax2516w6xbzlb9")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'set-variables + (lambda _ + (setenv "CC" "gcc") + #t)) + (delete 'check) + (add-after 'install 'install-config + (lambda* (#:key outputs #:allow-other-keys) + (let ((etc (string-append (assoc-ref outputs "out") + "/etc"))) + (mkdir-p etc) + (copy-file "config.ini" (string-append etc "/gmnisrv.ini")) + #t)))))) + (inputs + `(("openssl" ,openssl))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("scdoc" ,scdoc))) + (synopsis "Simple Gemini protocol server") + (description "gmnisrv is a simple Gemini protocol server written in C.") + (license (list license:gpl3 + license:bsd-3))))) ;; for ini.c and ini.h