From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH] gnu: Add darkhttpd. Date: Wed, 14 Sep 2016 17:28:30 -0400 Message-ID: <20160914212830.GA13338@jasmine> References: <20160913154243.GB13516@jasmine> <20160914060159.8572-1-arunisaac@systemreboot.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="bp/iNruPH9dso1Pn" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkHja-0006cS-FT for guix-devel@gnu.org; Wed, 14 Sep 2016 17:28:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkHjV-0001jR-Ah for guix-devel@gnu.org; Wed, 14 Sep 2016 17:28:45 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkHjU-0001hg-0F for guix-devel@gnu.org; Wed, 14 Sep 2016 17:28:41 -0400 Content-Disposition: inline In-Reply-To: <20160914060159.8572-1-arunisaac@systemreboot.net> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Arun Isaac Cc: guix-devel@gnu.org --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 14, 2016 at 11:31:59AM +0530, Arun Isaac wrote: > * gnu/packages/web.scm (darkhttpd): New variable. Thanks for the updated patch! > + (uri (git-reference > + (url (string-append "https://unix4lyfe.org/git/darkhttpd")) > + (commit "41b68476c35270f47dcd2ddebe27cbcd87e43d41")) ^ There was a missing parentheses here -------------------------------| > + #:tests? #f ; No test suite I found some tests! See attached. Part of the test suite wants some static library from Clang / LLVM; I couldn't make that work in 5 minutes so I gave up ;) I think it's okay to commit in this state. What do you think? --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-gnu-Add-darkhttpd.patch" Content-Transfer-Encoding: 8bit >From 8268e04b18292047ff1922a151ad7458b443b9a0 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 14 Sep 2016 11:31:59 +0530 Subject: [PATCH] gnu: Add darkhttpd. * gnu/packages/web.scm (darkhttpd): New variable. Signed-off-by: Leo Famulari --- gnu/packages/web.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index b9c201d..14cdf49 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,46 @@ 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) + (native-inputs + `(("python-2" ,python-2))) + (arguments + `(#:make-flags '("CC=gcc") + #: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)) + + ;; TODO Fix "***WARNING*** $CLANG \ + ;; (/homeless-shelter/llvm/install/bin/clang) doesn't exist." + (replace 'check + (lambda _ (zero? (system* "make" "--directory" "devel"))))))) + (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))) -- 2.10.0 --bp/iNruPH9dso1Pn--