From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 02 10:59:48 2019 Received: (at submit) by debbugs.gnu.org; 2 Jul 2019 14:59:48 +0000 Received: from localhost ([127.0.0.1]:47645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiKFz-0007Rc-ML for submit@debbugs.gnu.org; Tue, 02 Jul 2019 10:59:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:60551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiKFy-0007RT-29 for submit@debbugs.gnu.org; Tue, 02 Jul 2019 10:59:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56516) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiKFu-0000kr-4e for guix-patches@gnu.org; Tue, 02 Jul 2019 10:59:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiKFs-000375-Um for guix-patches@gnu.org; Tue, 02 Jul 2019 10:59:38 -0400 Received: from tobias.gr ([2001:470:7405::1]:41604) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hiKFs-00035R-Ak for guix-patches@gnu.org; Tue, 02 Jul 2019 10:59:36 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id a4ee6fc6; Tue, 2 Jul 2019 14:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=OsEp5VUraPi1cDu5Gx24jw oOi6PqGC3GX+TiRqZQCpA=; b=dZ2hGJlhfiEHGei9n3wg9l0Ed3JD2v4pelGP7p hFeRGu+bN3yNGuyPdrD5qhhaksCWsTrnkLoRY9APpP/Vjff9MIR/nC5dOfxQQxAr VADdgOkOVILTGIfJXdbRFXP/ylKwxAqJfPWGOZFruAgHavuORq/sjzS3vyj4JYIY Vn0PNsmr5RO9DwJJ92st9FjVB84v0kKoL9WTfhGFBNX+intgxQAPO6wzdBprF72Y A69DJqiLUtgRcvQpVcRDleyYsrOhtFgRJLQp0Q5RvUOmaLzW4EZdhlJyWKpOknm8 8AgKEQbL+F9jW/a9FwCyBrNgzf/I6Sl+GDR5L7ATvMknv11A== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 9bd7475d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 2 Jul 2019 14:59:32 +0000 (UTC) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: Re: [bug#36476] [PATCH] gnu: Add anonip. References: <20190702142003.14302-1-h.goebel@crazy-compilers.com> In-reply-to: <20190702142003.14302-1-h.goebel@crazy-compilers.com> Date: Tue, 02 Jul 2019 16:59:30 +0200 Message-ID: <877e9032jx.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: 36476@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hartmut, Thanks! This should nicely replace some (probably buggy) ad-hoc=20 code of mine :-) Hartmut Goebel wrote: > * gnu/packages/web.scm (anonip): New variable. > --- > gnu/packages/web.scm | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm > index 124cc93e68..386564206e 100644 > --- a/gnu/packages/web.scm > +++ b/gnu/packages/web.scm > @@ -33,6 +33,7 @@ > ;;; Copyright =C2=A9 2019 Nicolas Goaziou > ;;; Copyright =C2=A9 2019 Brendan Tildesley > ;;; Copyright =C2=A9 2019 Alex Griffin > +;;; Copyright =C2=A9 2019 Hartmut Goebel=20 > > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -6498,3 +6499,34 @@ update an existing mirrored site, and=20 > resume interrupted downloads. >=20=20 > HTTrack is fully configurable, and has an integrated help=20 > system.") > (license license:gpl3+))) > + > +(define-public anonip > + (package > + (name "anonip") > + (version "1.0.0") > + (source (origin > + (method url-fetch) > + (uri (pypi-uri "anonip" version)) > + (sha256 > + (base32 > +=20 > "0ckn9nnfhpdnz8b92q8pkysdqj6pdh71ckfqvfj0z01cq0hzbhd2")))) > + (build-system python-build-system) > + (inputs > + `(("python-3" ,python-3))) I'm surprised: the python-build-system should take care of this.=20 Does the package fail without it? How? > + (home-page > + "https://github.com/DigitaleGesellschaft/Anonip") > + (synopsis > + "Anonymize IP-addresses in log-files") IP addresses; log files. I'm not a fan of the way the Pypi importer needlessly indents=20 home-page and synopsis (both fit on one line just fine), but it's=20 up to you. > + (description > + "Anonip masks the last bits of IPv4 and IPv6 addresses in=20 > log-files. As above, so below: =E2=80=98log files=E2=80=99 &c. > +That way most of the relevant information is preserved, while=20 > the IP-address > +does not match a particular individuum anymore. > + > +Depending on your webserver software, the log entries may=20 > directly get piped Web server. I'd drop =E2=80=98software=E2=80=99 and say =E2=80=98piped dir= ectly=E2=80=99. > +to Anonip or read via a FIFO (named pipe). Thus the unmasked=20 > IP addresses =E2=80=98read from=E2=80=99. > +will never be written to any file. > + > +It's also possible to rewrite existing log files. > + > +Anonip can also be uses as a Python module in your own Python=20 > application.") > + (license license:bsd-3))) Otherwise LGTM! T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl0bcVIACgkQ2Imw8BjF STyxoA/6AwPOn9d2F5Pivs+YemOEistYRLTq+sfhAELC8ZZs6YxRt8OShQcPw3du P/kDFT+kSkI9mmP/9ehEhvSh5ZIDwVhW2I0BLOKXOZ8f0Ii82ih88NPorPA7IFbZ I9BOqr2E8j3lw8Is7LSvjCYsI7QKpoQ8V10n6RG4koV3f0AwQrWjzj+/cOVPNWSk /cjL3TnCSRiy8TvMGUmu6ypKjB2N9vY+ocDefp9v5ZIHTOj2mcuwjHyLp608hS4D QaS3wr6H7O8SePYdTXS28yf7Ja+4W5WuxekySOtH51wXdLycxa2CW7CakwYAa7m8 I9AFT3oFeMvdqLLt6uAB+QSxUOABDu75dBnoDL8QcLZQnbwdMVQVkC7vt94lV1U4 miAKyHd+SesKnIflmQp7iLosUjAx9lJZGGOVsxSLuXRcsG22WAdq0ODv/aYE3AHU p0b8B/Bj4FVR6VdxRhQJ/fSlomtwgBJp6TbbXn/lbRBmQ/pCF5FarFLWqWwKRcOg SyLyMG8Z9B8gNddJCn0znZgcLoUBrWAPDWsZ0lqW2kzd/DnmaxyWCZC2iEKOc4+k 41WQk8EZ+q5JO1ugF/rlWfg/OI8zHL3kuIy6lGinOy1UEqhUgvaGTnYkWUKpVB9d q/leGRODob1henENKYW1uVYw3Xly1nJVhJ4QesGPoBpvH5RPKMY= =zIYa -----END PGP SIGNATURE----- --=-=-=--