From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH] gnu: Add sslh. Date: Mon, 12 Sep 2016 13:03:34 +0300 Message-ID: <20160912100334.GA24630@macbook42.flashner.co.il> References: <1473640328-28092-1-git-send-email-me@tobias.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjO5d-0001cE-Bg for guix-devel@gnu.org; Mon, 12 Sep 2016 06:03:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjO5Y-0001zd-Gf for guix-devel@gnu.org; Mon, 12 Sep 2016 06:03:48 -0400 Received: from flashner.co.il ([178.62.234.194]:51139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjO5Y-0001wD-51 for guix-devel@gnu.org; Mon, 12 Sep 2016 06:03:44 -0400 Content-Disposition: inline In-Reply-To: <1473640328-28092-1-git-send-email-me@tobias.gr> 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: Tobias Geerinckx-Rice Cc: guix-devel@gnu.org --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 12, 2016 at 02:32:08AM +0200, Tobias Geerinckx-Rice wrote: > * gnu/packages/networking.scm (sslh): New variable. > --- > gnu/packages/networking.scm | 71 +++++++++++++++++++++++++++++++++++++++= +++++- > 1 file changed, 70 insertions(+), 1 deletion(-) >=20 > diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm > index c4edbc3..1818b62 100644 > --- a/gnu/packages/networking.scm > +++ b/gnu/packages/networking.scm > @@ -40,6 +40,7 @@ > #:use-module (gnu packages audio) > #:use-module (gnu packages bison) > #:use-module (gnu packages check) > + #:use-module (gnu packages code) > #:use-module (gnu packages compression) > #:use-module (gnu packages databases) > #:use-module (gnu packages flex) > @@ -54,7 +55,9 @@ > #:use-module (gnu packages perl) > #:use-module (gnu packages pkg-config) > #:use-module (gnu packages python) > - #:use-module (gnu packages tls)) > + #:use-module (gnu packages textutils) > + #:use-module (gnu packages tls) > + #:use-module (gnu packages valgrind)) > =20 > (define-public macchanger > (package > @@ -824,3 +827,69 @@ in dynamically linked programs and redirects them th= rough one or more SOCKS or > HTTP proxies.") > (home-page "https://github.com/rofl0r/proxychains-ng") > (license license:gpl2+))) > + > +(define-public sslh > + (package > + (name "sslh") > + (version "1.18") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "https://github.com/yrutschle/sslh/archive/v" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1vzw7a7s9lhspbn5zn3hw8hir4pkjgbd68yys4hfsnjp1h7bzjpn")))) > + (build-system gnu-build-system) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (delete 'configure) ; no configure script > + (add-before 'check 'fix-tests > + (lambda* _ ^^^ Don't need the underscore here > + (substitute* "./t" > + (("\"/tmp") "$ENV{\"TMPDIR\"} . \"") > + (("ip6-localhost") "localhost")))) return #t on the substitute > + ;; Many of these files are mentioned in the man page. Install t= hem. > + (add-after 'install 'install-documentation > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (doc (string-append out "/share/doc"))) > + (install-file "README.md" doc) > + (for-each > + (lambda (file) > + (install-file file (string-append doc "/examp= les"))) > + (append (find-files "." "\\.cfg") > + (find-files "scripts" ".*")))) > + #t))) > + #:make-flags (list "CC=3Dgcc" > + "USELIBCAP=3D1" > + "USELIBWRAP=3D1" > + (string-append "PREFIX=3D" (assoc-ref %outputs= "out"))) > + #:test-target "test")) > + (native-inputs > + ;; Tests dependencies. > + `(("lcov" ,lcov) > + ("perl" ,perl) > + ("perl-io-socket-inet6" ,perl-io-socket-inet6) > + ("perl-socket6" ,perl-socket6) > + ("psmisc" ,psmisc) > + ("valgrind" ,valgrind))) > + (inputs > + `(("libcap" ,libcap) > + ("libconfig" ,libconfig) > + ("tcp-wrappers" ,tcp-wrappers))) > + (home-page "http://www.rutschle.net/tech/sslh.shtml") > + (synopsis "Applicative network protocol demultiplexer") > + (description Is the name specifically lowercase? Otherwise it should be a capital S, and again a few lines down. > + "sslh is a network protocol demultiplexer. It acts like a switchbo= ard, > +accepting connections from clients on one port and forwarding them to di= fferent > +servers based on the contents of the first received data packet. Detect= ion of > +common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is alre= ady > +implemented, but any other protocol that matches a regular expression ca= n be > +added. sslh's name comes from its original application of serving both = SSH and > +HTTPS on port 443, allowing SSH connections from inside corporate firewa= lls > +that block port 22.") > + (license (list license:bsd-2 ; tls.[ch] > + license:gpl2+)))) ; everything else > --=20 > 2.7.4 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJX1n11AAoJEPTB05F+rO6Tnb0P/2zfoG1X+XSK3uOAQ6zT1GO0 siHaaS1t/DHq++gzNBvYCH1YpvZX0BAJglwGszwQSiTX6gwC2lXkszhRemFV2fYu KKzaogKBEPg5wzHi/Qw7hIbXVDFWRwkSA8WA2vnJ89RcO1+h9WFCnqRhvAfDGy7t VKe0hLWXO1iN0KIhDBIVhgI9A07bjsKy0BWiWlGdERoEWz0xnQequClkSqZIcHHC LGItjXwuE9vG6O8N+tpT5fyyyM7NeZQMVPrHO5nKRxZLdxjlD+p+ukm70J3PSnKf 80YsstglBzK0lxYU0HfXEKJdS9l65MWM/13AluPVcOEV+bFRjtkhPwB8xvV/b0Y3 H+YObHDkciRlP4cHOFLnvMXVB5mdBn1makVd/BO5GZrNHCIbU+lwsyVYCgfkcH4t FqFnu8i6q0lFVSEJl1olTTbmgG0SgsRpdZmuxtXu24YYTCpVQ902D7qFroYhLApx FI6D94aLd+mBuCu84lJJmGaZ+6mlbgvIl0xfu9rFcd7PGQrNojjFvjfRWl84b/dB u1OkJ2+WKNwJ+v+CxkW4ypLDLECpm1kJGozrPArHpuwqt4vc+rjn/6idirCmSqVx IsBvwF8GA6zHG7Yb3rhqnDqeYbKNQ/p5VkE3AksH1oAx/70fbgo9lvJl/y+PJwJd 5QejWTDXH2UO/r+LY4jz =QXIM -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--