From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Danckaert Subject: [PATCH] gnu: Add xinetd. Date: Thu, 26 Jan 2017 11:43:44 +0100 (CET) Message-ID: <20170126.114344.1410720596142137093.post@thomasdanckaert.be> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Jan_26_11_43_44_2017_007)--" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWhXn-0000L2-NW for guix-devel@gnu.org; Thu, 26 Jan 2017 05:44:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWhXk-0005Fj-J5 for guix-devel@gnu.org; Thu, 26 Jan 2017 05:44:43 -0500 Received: from s02-out.spamexperts.axc.nl ([159.253.1.2]:52197 helo=s02.spamexperts.axc.nl) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWhXk-0005Es-BF for guix-devel@gnu.org; Thu, 26 Jan 2017 05:44:40 -0500 Received: from vserver42.axc.nl ([159.253.0.80]) by s02.spamexperts.axc.nl with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86) (envelope-from ) id 1cWhX0-0008Ts-84 for guix-devel@gnu.org; Thu, 26 Jan 2017 11:44:10 +0100 Received: from mail.axc.nl ([159.253.0.157]:41470) by vserver42.axc.nl with esmtp (Exim 4.87) (envelope-from ) id 1cWhWv-0002PA-Qd for guix-devel@gnu.org; Thu, 26 Jan 2017 11:43:50 +0100 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: guix-devel@gnu.org ----Next_Part(Thu_Jan_26_11_43_44_2017_007)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I'd like to use xinetd to forward some local ports via ssh (e.g. as explained here: https://debian-administration.org/article/487/SMTP_via_a_SSH_tunnel). This patch provides the xinetd executables, I'll try my hand at writing a xinetd service next... Unless there is already an alternative to xinetd on GuixSD? cheers, Thomas ----Next_Part(Thu_Jan_26_11_43_44_2017_007)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0001-gnu-Add-xinetd.patch" >From e9709558ee99be799edb187bdb9857fdfc7f97c3 Mon Sep 17 00:00:00 2001 From: Thomas Danckaert Date: Thu, 26 Jan 2017 11:35:50 +0100 Subject: [PATCH] gnu: Add xinetd. * gnu/packages/web.scm (xinetd): New variable. --- gnu/packages/web.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 67b9797..cc05a22 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -3995,3 +3995,29 @@ programs' code. Its architecture is optimized for security, portability, and scalability (including load-balancing), making it suitable for large deployments.") (license l:gpl2+))) + +(define-public xinetd + (package + (name "xinetd") + (version "2.3.15") + (source + (origin + (method url-fetch) + (uri "https://github.com/xinetd-org/xinetd/archive/xinetd-2-3-15.tar.gz") + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0k59x52cbzp5fw0n8zn0y54j1ps0x9b72y8k5grzswjdmgs2a2v2")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--with-loadavg") + #:phases + (modify-phases %standard-phases (delete 'check)))) ; doesn't provide tests + (home-page "https://github.com/xinetd-org/xinetd") + (synopsis "Internet services daemon") + (description "@code{xinetd}, a more secure replacement for @code{inetd}, +listens for incoming requests over a network and launches the appropriate +service for that request. Requests are made using port numbers as identifiers +and xinetd usually launches another daemon to handle the request. It can be +used to start services with both privileged and non-privileged port numbers.") + (license (l:non-copyleft "file://COPYRIGHT")))) -- 2.7.4 ----Next_Part(Thu_Jan_26_11_43_44_2017_007)----