From patchwork Wed Sep 14 06:01:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun X-Patchwork-Id: 15608 Received: (qmail 90334 invoked by uid 89); 14 Sep 2016 06:02:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=isc, services X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Sep 2016 06:02:30 +0000 Received: from localhost ([::1]:53287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk3H9-0007Ew-4J for patchwork@sourceware.org; Wed, 14 Sep 2016 02:02:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk3Gw-0007CR-Fz for guix-devel@gnu.org; Wed, 14 Sep 2016 02:02:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk3Gt-000520-A6 for guix-devel@gnu.org; Wed, 14 Sep 2016 02:02:14 -0400 Received: from [117.218.232.8] (port=48842 helo=systemreboot.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk3Gs-00051l-MM for guix-devel@gnu.org; Wed, 14 Sep 2016 02:02:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wVFypcvE1+2wENvWANAsZqhaf3gj5+IxyPaN5LR4SQw=; b=RoeLsp8S1MY2JbYBVvuvKpjjG2 ZPHLYEz8MmvDGsdsTLQ0qdNePu325Lo4ypG4ooPu7Ft0fYKixa5TlEbQfGnDGQvnhJNkVz1ijI6ky M38usi+738Q7KW9CANxfXlqTDjoLf2X1ONN5eq4bSXNx60+zcFUfgK2Sa9nNaCdCf6CIhpTH1egY8 69ZK2Pn1VvGBMy1RUmnwsvTenSA0FcN8pXTnQLRV/UsgvY1VIJo+BWTsKNnEJszA5ChNcp/ILrA1S sMEBQ/FlrBKR+b/MVGfgJKl8PLWShuyJCqD20i8LKvTsU2zYdOWTpb8ZrBmNF950OyUksBPHdy5W6 U39Lsbsw==; Received: from [61.3.26.230] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1bk3Gp-0001aj-KH; Wed, 14 Sep 2016 11:32:07 +0530 From: Arun Isaac To: guix-devel@gnu.org Subject: [PATCH] gnu: Add darkhttpd. Date: Wed, 14 Sep 2016 11:31:59 +0530 Message-Id: <20160914060159.8572-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20160913154243.GB13516@jasmine> References: <20160913154243.GB13516@jasmine> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 117.218.232.8 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/web.scm (darkhttpd): New variable. --- gnu/packages/web.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 20c7d12..2b73446 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2016 Ben Woodcroft ;;; Copyright © 2016 Clément Lassieur ;;; Copyright © 2016 ng0 +;;; Copyright © 2016 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -3633,3 +3634,40 @@ provides a unix command line interface to a variety of popular www search engine and similar services.") (home-page "https://surfraw.alioth.debian.org/") (license l:public-domain))) + +(define-public darkhttpd + (package + (name "darkhttpd") + (version "1.12") + (source + (origin + ;; The darkhttpd release tarball URL fails to download with a + ;; 'TLS warning alert'. Download from the darkhttpd git repo + ;; until the problem has been fixed upstream. + (method git-fetch) + (uri (git-reference + (url (string-append "https://unix4lyfe.org/git/darkhttpd")) + (commit "41b68476c35270f47dcd2ddebe27cbcd87e43d41")) + (sha256 + (base32 + "0wi8dfgj4ic0fsy4dszl69xgxdxlwxz4c30vsw2i2dpnczgjm04k")) + (file-name (string-append name "-" version "-checkout")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags '("CC=gcc") + #:tests? #f ; No test suite + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "darkhttpd" + (string-append (assoc-ref outputs "out") + "/bin")) + #t))))) + (synopsis "Simple static web server") + (description "darkhttpd is a simple static web server. It is +standalone and does not need inetd or ucspi-tcp. It does not need any +config files---you only have to specify the www root.") + (home-page "https://unix4lyfe.org/darkhttpd/") + (license l:isc)))