GNU bug report logs -
#40145
[PATCH] gnu: Add squid.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40145 in the body.
You can then email your comments to 40145 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#40145
; Package
guix-patches
.
(Fri, 20 Mar 2020 10:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vincent Legoll <vincent.legoll <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 20 Mar 2020 10:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The attached patch adds squid caching proxy so that we can all start
saving precious network bandwidth.
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...
--
Vincent Legoll
[squid.conf (application/octet-stream, attachment)]
[0001-gnu-Add-squid.patch (text/x-patch, attachment)]
Reply sent
to
Marius Bakke <mbakke <at> fastmail.com>
:
You have taken responsibility.
(Fri, 20 Mar 2020 17:27:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vincent Legoll <vincent.legoll <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 20 Mar 2020 17:27:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 40145-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Vincent Legoll <vincent.legoll <at> gmail.com> 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 <vincent.legoll <at> gmail.com>
> 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!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40145
; Package
guix-patches
.
(Fri, 20 Mar 2020 17:36:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 40145-done <at> debbugs.gnu.org (full text, mbox):
Hello,
On Fri, Mar 20, 2020 at 6:25 PM Marius Bakke <mbakke <at> fastmail.com> wrote:
>
> Vincent Legoll <vincent.legoll <at> gmail.com> writes:
>
> > The attached patch adds squid caching proxy so that we can
> > all start saving precious network bandwidth.
>
> Nice, about time! :-)
Necessity is the mother of...
> > 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. :-)
Currently reading the doc...
> > From 24a81038d315a4bf757eca590c53a16eac005879 Mon Sep 17 00:00:00 2001
> > From: Vincent Legoll <vincent.legoll <at> gmail.com>
> > 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.
oopsie, I let this one slip, usually I proof-read before sending,
looks like I was in a hurry...
> [...]
>
> > + (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.
OK
> The license is actually GPL2+ according to the source code
> headers.
>
> Applied with these changes, thank you!
Thanks for the fixes !
--
Vincent Legoll
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 18 Apr 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.