From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee561-0002GJ-Gk for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ee55z-00019z-J6 for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ee55z-00019v-Fi for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ee55z-0007rR-An for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:03 -0500 Subject: [bug#30214] [PATCH 05/10] gnu: Add daemontools. Resent-Message-ID: From: Christopher Baines Date: Tue, 23 Jan 2018 20:21:57 +0000 Message-Id: <20180123202202.32140-5-mail@cbaines.net> In-Reply-To: <20180123202202.32140-1-mail@cbaines.net> References: <20180123202202.32140-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30214@debbugs.gnu.org * gnu/packages/admin.scm (daemontools): New variable. --- gnu/packages/admin.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 3d3c62619..7c7c457f5 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -187,6 +187,49 @@ interface and is based on GNU Guile.") (home-page "https://www.gnu.org/software/shepherd/") (properties '((ftp-server . "alpha.gnu.org"))))) +(define-public daemontools + (package + (name "daemontools") + (version "0.76") + (source (origin + (method url-fetch) + (uri (string-append + "https://cr.yp.to/" name "/" + name "-" version ".tar.gz")) + (sha256 + (base32 + "07scvw88faxkscxi91031pjkpccql6wspk4yrlnsbrrb5c0kamd5")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;; No tests as far as I can tell. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir ,(string-append name "-" version)))) + (delete 'configure) + (add-before 'build 'patch + (lambda _ + (substitute* "src/error.h" + (("extern int errno;") + "#include ")))) + (replace 'build + (lambda _ + (invoke "package/compile"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (for-each (lambda (file) + (install-file file bin)) + (find-files "command")))))))) + (synopsis "Tools for managing UNIX style services") + (description + "@code{daemontools} is a collection of tools for managing UNIX +services.") + (license license:public-domain) + (home-page "https://cr.yp.to/daemontools.html"))) + (define-public dfc (package (name "dfc") -- 2.16.0