From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:56624) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiKGO-00013p-Iz for guix-patches@gnu.org; Tue, 02 Jul 2019 11:00:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiKGM-0003TW-CV for guix-patches@gnu.org; Tue, 02 Jul 2019 11:00:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38825) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hiKGJ-0003Qh-IG for guix-patches@gnu.org; Tue, 02 Jul 2019 11:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hiKGJ-0007Sq-Fj for guix-patches@gnu.org; Tue, 02 Jul 2019 11:00:03 -0400 Subject: [bug#36476] [PATCH] gnu: Add anonip. Resent-Message-ID: From: Tobias Geerinckx-Rice 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" 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: 36476@debbugs.gnu.org --=-=-= 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----- --=-=-=--