Source: squid
Version: 4.4-1
Severity: normal
User: debian-...@lists.debian.org
Usertags: debian-edu

Dear Maintainer(s),

the handling of Debian packages could be improved with some configuration 
options
taken from the squid-deb-proxy package, see:
https://sources.debian.org/src/squid-deb-proxy/0.8.14+nmu1/squid-deb-proxy.conf

This has been found out by Mike Gabriel <sunwea...@debian.org>; for details see
the discussion here:
https://bugs.debian.org/913886

If squid would improve the handling of Debian packages all users already using
squid could avoid installing squid-deb-proxy in addition.

So please consider to adjust d/debian.conf like proposed by Mike.

diff --git a/debian/debian.conf b/debian/debian.conf
index 7ac16c97..7fa82301 100644
--- a/debian/debian.conf
+++ b/debian/debian.conf
@@ -9,3 +9,29 @@ logfile_rotate 0
 # localhost to use the proxy on new installs
 #
 #http_access allow localnet
+
+# Begin: Improve handling of Debian packages (taken from squid-deb-proxy)
+# we need a big cache, some debs are huge
+maximum_object_size 512 MB
+
+# tweaks to speed things up
+cache_mem 200 MB
+maximum_object_size_in_memory 10240 KB
+
+# refresh pattern for debs and udebs
+refresh_pattern deb$   129600 100% 129600
+refresh_pattern udeb$   129600 100% 129600
+refresh_pattern tar.gz$  129600 100% 129600
+refresh_pattern tar.xz$  129600 100% 129600
+refresh_pattern tar.bz2$  129600 100% 129600
+
+# always refresh Packages and Release files
+refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
+refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
+refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
+refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
+
+# handle meta-release and changelogs.ubuntu.com special
+# (fine to have this on debian too)
+refresh_pattern changelogs.ubuntu.com\/.*  0  1% 1
+# End: handling of Debian packages

Wolfgang
diff --git a/debian/debian.conf b/debian/debian.conf
index 7ac16c97..7fa82301 100644
--- a/debian/debian.conf
+++ b/debian/debian.conf
@@ -9,3 +9,29 @@ logfile_rotate 0
 # localhost to use the proxy on new installs
 #
 #http_access allow localnet
+
+# Begin: Improve handling of Debian packages (taken from squid-deb-proxy)
+# we need a big cache, some debs are huge
+maximum_object_size 512 MB
+
+# tweaks to speed things up
+cache_mem 200 MB
+maximum_object_size_in_memory 10240 KB
+
+# refresh pattern for debs and udebs
+refresh_pattern deb$   129600 100% 129600
+refresh_pattern udeb$   129600 100% 129600
+refresh_pattern tar.gz$  129600 100% 129600
+refresh_pattern tar.xz$  129600 100% 129600
+refresh_pattern tar.bz2$  129600 100% 129600
+
+# always refresh Packages and Release files
+refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
+refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
+refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
+refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
+
+# handle meta-release and changelogs.ubuntu.com special
+# (fine to have this on debian too)
+refresh_pattern changelogs.ubuntu.com\/.*  0  1% 1
+# End: handling of Debian packages

Reply via email to