From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 20 13:26:03 2020 Received: (at 40145-done) by debbugs.gnu.org; 20 Mar 2020 17:26:03 +0000 Received: from localhost ([127.0.0.1]:45460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFLPH-0001p0-AL for submit@debbugs.gnu.org; Fri, 20 Mar 2020 13:26:03 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:33391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFLPF-0001oS-61 for 40145-done@debbugs.gnu.org; Fri, 20 Mar 2020 13:26:01 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CAF855C01DB; Fri, 20 Mar 2020 13:25:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 20 Mar 2020 13:25:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=eP+oj2c7B45sfVhsXdeHkeyWk3 e3Q5pZzFLYF6xaPyY=; b=U2k70Pgu/KW5IPRAhK4v4fckoFQPgLeZuQMBkvOosZ ZlWSNE9bVHNjHEtFBHeixChA5Wfxe9gNN/s8XC6Jhq8lj2thgMm+vskTyRSAQvHu MJfhU76qQsmXnUENcixDqq7sdU7NOhMrPA5Hlf9H12QUjaA12N5p9jAEMN+UtxDd r2efech3x1mGgrWicdqyhgwXOrp9KpJl3Y7QBFOdGImPv8L1C10aO+RR9KSB0wK+ ZN63Rt4Yr+C9dR0euKTdgQ/jk99rvK0WRT36zOOlvcqM+8rs/bOR+4RMieH2R14F V31kdRd5UOUwBIGX7B5NLDP+pOlIPMOma1DG8qCu7p9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=eP+oj2 c7B45sfVhsXdeHkeyWk3e3Q5pZzFLYF6xaPyY=; b=b0cx5isuwewGkbE6C+M5S9 bJcjrQ1vdbuxEqnOBGiYbAL2rOR5nLiX5yr9NLuSAe94sgGDnb3/YnhOEagPk3Bv 9fS9Ao8nHlG2i8UD4W5K0WA8sVkJoQ4dSP2FanMSahMvSsQmrDvaowREaYvPkPwt G2bFSy2C4UN7MukSVV0cX/p5ZVmhVfL6YNL7oZXeKyXRCR6TuEWOvo+uXRRMoE9d 5UzgCSx1eOZUFXCpHIfkG6MPW+esI4w52y48wUcjucSYIzEVgO5//W8n7QGRr3cd vDNak9yCOiSJFk1RNyt+G0z1dxGtsnlIIGziIuBvahP2myRWTjdTcnOVd44SRWIw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeguddgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehgtderredtredtnecuhfhrohhmpeforghrihhu shcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmqeenucffohhmrg hinhephhhtthhpshhprhhogiihlhhotggrlhhhohhsthefuddvkehtihhmvgifghgvthhg ohhoghhlvgdrfhhrpdhhthhtphhsfhhtphgrnhgumhhorhgvrdhithdpshhquhhiugdqtg grtghhvgdrohhrghenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhmrg hilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 524F73280066; Fri, 20 Mar 2020 13:25:55 -0400 (EDT) From: Marius Bakke To: Vincent Legoll , 40145-done@debbugs.gnu.org Subject: Re: [bug#40145] [PATCH] gnu: Add squid. In-Reply-To: References: User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Fri, 20 Mar 2020 18:25:53 +0100 Message-ID: <87tv2j7xb2.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40145-done 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: -1.7 (-) --=-=-= Content-Type: text/plain Vincent Legoll writes: > The attached patch adds squid caching proxy so that we can all start > saving precious network bandwidth. Nice, about time! :-) > I lightly tested it with the attached squid config file, in foreground > mode, like the following: > > # Create temporary test space for squid > mkdir /tmp/squid > # Create the hashed store directories > /gnu/store/szbiglrkvll6qdxcrg3ir0hz8zdc9h5f-squid-4.10/sbin/squid -N > -f ./squid.conf -z > # Run squid > /gnu/store/szbiglrkvll6qdxcrg3ir0hz8zdc9h5f-squid-4.10/sbin/squid -N > -f ./squid.conf > > # In another shell > export http_proxy=localhost:3128 > export https_proxy=localhost:3128 > time wget google.fr > time wget google.fr > less /tmp/squid/access.log > less /tmp/squid/cache.log > ls -lah /tmp/squid/00/00 > > There's no shepherd ready to run service & > config definitions, as I still don't know how > to do that. > > I'll try to create one, if no one beats me to > it, but it may already be useful as-is... Writing services may seem intimidating at first, but is actually easier than it looks. I think you'll figure it out fairly quickly. :-) > From 24a81038d315a4bf757eca590c53a16eac005879 Mon Sep 17 00:00:00 2001 > From: Vincent Legoll > Date: Fri, 20 Mar 2020 11:45:11 +0100 > Subject: [PATCH] gnu: Add squid. > > * gnu/packages/networking.scm (squid): New variable. [...] > +; #:use-module (gnu packages cppunit) I dropped this leftover from the patch. [...] > + (inputs > + `(("perl" ,perl) > + ("openldap" ,openldap) > + ("linux-pam" ,linux-pam) > + ("libcap" ,libcap) > + ("cyrus-sasl" ,cyrus-sasl) > + ("expat" ,expat) > + ("libxml2" ,libxml2) > + ("openssl" ,openssl))) > + (native-inputs > + `(("cppunit" ,cppunit) > + ("coreutils" ,coreutils) ; test suite needs /bin/true coreutils is already implicitly available, so I removed this input. > + ("pkg-config" ,pkg-config))) > + (synopsis "A web caching proxy supporting HTTP, HTTPS, FTP, etc.") I changed this to just "Web caching proxy" to please 'guix lint'. > + (description "Squid is a caching proxy for the Web supporting HTTP, HTTPS, > +FTP, and more. It reduces bandwidth and improves response times by caching and > +reusing frequently-requested web pages.") > + (home-page "http://www.squid-cache.org/") > + (license license:gpl2))) The license is actually GPL2+ according to the source code headers. Applied with these changes, thank you! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl50/KEACgkQoqBt8qM6 VPrDhAgAxZUQvH6MccpnvrxHEwPtzK+EoJpYy66x/Ybbniy5rGzxkzukEuQYh32x 9JqjP/NjeN/yJNQ4kRXLtINm/IMXIS1icFDE9DW5M+MoMS2EuNzoDauTHrhS2rRR sINzMhCbJ/qm1mZbk8hKiEFMj2ke5oQn482lE17IUWDR4pMfEJAEq5uVM1vD6bZX lMs9zDum4CYKWqzBCveHmOnx+f+NGwdQGMFp+AyHbqBkAHjeQeE7ziYrzJs1G60y DDY9ZNfGr9gwgBtb63N33kgkEdn5rqilcquowNhB30m165X0ssZS9DanEXvr1daO mK/8f83Tpe7nij7XS0EcW+QdQr5Sog== =kLlt -----END PGP SIGNATURE----- --=-=-=--