git/0000775000000000000000000000000014136276267006547 5ustar git/apt-avahi-discover0000775000000000000000000001033214136276267012162 0ustar #!/usr/bin/python # # use avahi to find a _apt_proxy._tcp provider and return # a http proxy string suitable for apt import asyncore import functools import os import socket import sys import time from subprocess import Popen, PIPE, call DEFAULT_CONNECT_TIMEOUT_SEC = 2 def DEBUG(msg): if "--debug" in sys.argv: sys.stderr.write(msg + "\n") def get_avahi_discover_timeout(): APT_AVAHI_TIMEOUT_VAR = "APT::Avahi-Discover::Timeout" p = Popen( ["/usr/bin/apt-config", "shell", "TIMEOUT", APT_AVAHI_TIMEOUT_VAR], stdout=PIPE) stdout, stderr = p.communicate() if not stdout: DEBUG( "no timeout set, using default '%s'" % DEFAULT_CONNECT_TIMEOUT_SEC) return DEFAULT_CONNECT_TIMEOUT_SEC if not stdout.startswith("TIMEOUT="): raise ValueError("got unexpected apt-config output: '%s'" % stdout) varname, sep, value = stdout.strip().partition("=") timeout = int(value.strip("'")) DEBUG("using timeout: '%s'" % timeout) return timeout @functools.total_ordering class AptAvahiClient(asyncore.dispatcher): def __init__(self, addr): asyncore.dispatcher.__init__(self) if is_ipv6(addr[0]): self.create_socket(socket.AF_INET6, socket.SOCK_STREAM) self.connect( (addr[0], addr[1], 0, 0) ) else: self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.connect(addr) self._time_init = time.time() self.time_to_connect = sys.maxint self.address = addr def handle_connect(self): self.time_to_connect = time.time() - self._time_init self.close() def __eq__(self, other): return self.time_to_connect == other.time_to_connect def __lt__(self, other): return self.time_to_connect < other.time_to_connect def __repr__(self): return "<%s> %s: %s" % ( self.__class__.__name__, self.addr, self.time_to_connect) def log(self, message): sys.stderr.write('log: %s\n' % str(message)) def log_info(self, message, type='info'): if type not in self.ignore_log_types: self.log('%s: %s' % (type, message)) def is_ipv6(a): return ':' in a def is_linklocal(addr): # Link-local should start with fe80 and six null bytes return addr.startswith("fe80::") def get_proxy_host_port_from_avahi(): service = '_apt_proxy._tcp' # Obtain all of the services addresses from avahi, pulling the IPv6 # addresses to the top. addr4 = [] addr6 = [] p = Popen(['avahi-browse', '-kprtf', service], stdout=PIPE) DEBUG("avahi-browse output:") for line in p.stdout: DEBUG(" '%s'" % line) if line.startswith('='): tokens = line.split(';') addr = tokens[7] port = int(tokens[8]) if is_ipv6(addr): # We need to skip ipv6 link-local addresses since # APT can't use them if not is_linklocal(addr): addr6.append((addr, port)) else: addr4.append((addr, port)) # Run through the offered addresses and see if we we have a bound local # address for it. addrs = [] for (ip, port) in addr6 + addr4: try: res = socket.getaddrinfo(ip, port, 0, 0, 0, socket.AI_ADDRCONFIG) if res: addrs.append((ip, port)) except socket.gaierror: pass if not addrs: return None # sort by answering speed hosts = [] for addr in addrs: hosts.append(AptAvahiClient(addr)) # 2s timeout, arbitray timeout = get_avahi_discover_timeout() asyncore.loop(timeout=timeout) DEBUG("sorted hosts: '%s'" % sorted(hosts)) # No host wanted to connect if (all(h.time_to_connect == sys.maxint for h in hosts)): return None fastest_host = sorted(hosts)[0] fastest_address = fastest_host.address return fastest_address if __name__ == "__main__": # Dump the approved address out in an appropriate format. address = get_proxy_host_port_from_avahi() if address: (ip, port) = address if is_ipv6(ip): print "http://[%s]:%s/" % (ip, port) else: print "http://%s:%s/" % (ip, port) git/init-common.sh0000664000000000000000000000553614136244360011332 0ustar AVAHIFILE=/etc/avahi/services/squid-deb-proxy.service concat_file_from_dir() { # the .d directory DIR="$1" # the target file FILE="$2" # (optional) additional file append to $FILE ADDITIONAL_FILE_TO_CAT="$3" cat > $FILE <> "$FILE" fi for f in "$DIR"/*; do cat "$f" >> "$FILE" done } pre_start() { if [ -x /usr/sbin/squid ]; then SQUID=/usr/sbin/squid else echo "No squid binary found" exit 1 fi # ensure all cache dirs are there install -d -o proxy -g proxy -m 750 /var/cache/squid-deb-proxy/ install -d -o proxy -g proxy -m 750 /var/log/squid-deb-proxy/ if [ ! -d /var/cache/squid-deb-proxy/00 ]; then $SQUID -z -N -f /etc/squid-deb-proxy/squid-deb-proxy.conf fi # generate pkg blacklist acl file PKG_BLACKLIST_DIR=/etc/squid-deb-proxy/pkg-blacklist.d PKG_BLACKLIST=/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl concat_file_from_dir "$PKG_BLACKLIST_DIR" "$PKG_BLACKLIST" # postprocess for regexp format sed -i -r '/^#/d;/^$/d;s#(.*)#\/\1_.*\.deb$#g' $PKG_BLACKLIST # generate mirror file MIRROR_DESTDOMAIN_DIR=/etc/squid-deb-proxy/mirror-dstdomain.acl.d MIRROR_DESTDOMAIN=/etc/squid-deb-proxy/autogenerated/mirror-dstdomain.acl concat_file_from_dir "$MIRROR_DESTDOMAIN_DIR" "$MIRROR_DESTDOMAIN" "/etc/squid-deb-proxy/mirror-dstdomain.acl" # generate the allowed-networks file ALLOWED_NETWORKS_DIR=/etc/squid-deb-proxy/allowed-networks-src.acl.d ALLOWED_NETWORKS=/etc/squid-deb-proxy/autogenerated/allowed-networks-src.acl concat_file_from_dir "$ALLOWED_NETWORKS_DIR" "$ALLOWED_NETWORKS" "/etc/squid-deb-proxy/allowed-networks-src.acl" } post_start() { # create avahi service PORT=$(grep http_port /etc/squid-deb-proxy/squid-deb-proxy.conf|cut -d' ' -f2) if [ -n "$PORT" ] && [ -d /etc/avahi/services/ ]; then (umask 022 && cat > $AVAHIFILE << EOF Squid deb proxy on %h _apt_proxy._tcp $PORT _apt_proxy._tcp $PORT EOF ) fi } post_stop() { # remove avahi file again rm -f $AVAHIFILE } # from the squid debian init script find_cache_dir () { w=" " # space tab res=`sed -ne ' s/^'$1'['"$w"']\+[^'"$w"']\+['"$w"']\+\([^'"$w"']\+\).*$/\1/p; t end; d; :end q' < $CONFIG` [ -n "$res" ] || res=$2 echo "$res" } git/allowed-networks-src.acl0000664000000000000000000000050414136276267013315 0ustar # allowed-networks-src.conf # # network sources that you want to allow access to the cache # private networks 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 127.0.0.1 # IPv6 private addresses fe80::/64 ::1/128 # additional non-private networks can be added to the directory: # /etc/squid-deb-proxy/allowed-networks-src.acl.d git/30autoproxy0000664000000000000000000000012714136244360010674 0ustar Acquire::http::ProxyAutoDetect "/usr/share/squid-deb-proxy-client/apt-avahi-discover"; git/Makefile0000664000000000000000000000167214136276267010215 0ustar #!/usr/bin/make all: echo "nothing to do" install: # dir install -d -m 755 $(DESTDIR)/etc/squid-deb-proxy install -d -m 755 $(DESTDIR)/etc/squid-deb-proxy/allowed-networks-src.acl.d install -d -m 755 $(DESTDIR)/etc/squid-deb-proxy/mirror-dstdomain.acl.d install -d -m 755 $(DESTDIR)/etc/squid-deb-proxy/pkg-blacklist.d install -d -m 755 $(DESTDIR)/etc/squid-deb-proxy/autogenerated install -m 644 README.autogenerated $(DESTDIR)/etc/squid-deb-proxy/autogenerated install -d -m 755 $(DESTDIR)/etc/apt/apt.conf.d install -d -m 755 $(DESTDIR)/usr/share/squid-deb-proxy-client/ # files install -m 644 squid-deb-proxy.conf $(DESTDIR)/etc/squid-deb-proxy/ install -m 644 allowed-networks-src.acl $(DESTDIR)/etc/squid-deb-proxy/ install -m 644 mirror-dstdomain.acl $(DESTDIR)/etc/squid-deb-proxy/ # client install -m 755 apt-avahi-discover $(DESTDIR)/usr/share/squid-deb-proxy-client/ install -m 644 30autoproxy $(DESTDIR)/etc/apt/apt.conf.d git/debian/0000775000000000000000000000000014136276371007765 5ustar git/debian/squid-deb-proxy-client-udeb.dirs0000664000000000000000000000003114136276267016073 0ustar usr/lib/base-installer.d/git/debian/control0000664000000000000000000000366614136276267011407 0ustar Source: squid-deb-proxy Section: net Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Michael Vogt Build-Depends: debhelper (>= 7.0.50), gettext, intltool, pkg-config, po-debconf Standards-Version: 3.9.4 Vcs-Bzr: https://code.launchpad.net/~squid-deb-proxy-developers/squid-deb-proxy/trunk Homepage: https://launchpad.net/squid-deb-proxy Package: squid-deb-proxy Architecture: all Depends: ${python:Depends}, ${misc:Depends}, squid Recommends: avahi-utils Description: Squid proxy configuration to optimize package downloads This package contains a Squid proxy configuration to manage a cache of .deb downloads, with optimizations for the types of file present in package repositories, and using a dedicated directory and port. Package: squid-deb-proxy-client Architecture: all Depends: ${misc:Depends}, avahi-utils, apt (>= 0.7.25.3ubuntu1), python Description: automatic proxy discovery for APT based on Avahi This package contains a helper for the APT http method to discover proxies that publish their service as _apt_proxy._tcp. . It was written to be installed on clients that should use squid-deb-proxy automatically, but it will work with any proxy that publishes the service as _apt_proxy._tcp. Package: squid-deb-proxy-client-udeb XC-Package-Type: udeb Section: debian-installer Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, configured-network, Description: automatic proxy discovery for APT based on Avahi (udeb) This package contains a helper for the APT http method to discover proxies that publish their service as _apt_proxy._tcp. . It was written to be installed on clients that should use squid-deb-proxy automatically, but it will work with any proxy that publishes the service as _apt_proxy._tcp. . This package contains the udeb for use with the Debian Installer. git/debian/squid-deb-proxy.install0000664000000000000000000000013614136276267014415 0ustar etc/squid-deb-proxy init-common.sh usr/share/squid-deb-proxy/ ../update-libc.d etc/resolvconf/git/debian/squid-deb-proxy.postrm0000664000000000000000000000073114136244360014261 0ustar #!/bin/sh set -e USER_NETWORKS=/etc/squid-deb-proxy/allowed-networks-src.acl.d/10-default USER_ALLOWED_DESTINATIONS=/etc/squid-deb-proxy/mirror-dstdomain.acl.d/10-default PKG_BLACKLIST_IN=/etc/squid-deb-proxy/pkg-blacklist.d/10-default if [ "$1" = "purge" ]; then rm -f /etc/squid-deb-proxy/autogenerated/* rm -f "$USER_NETWORKS" "$USER_ALLOWED_DESTINATIONS" "$PKG_BLACKLIST_IN" fi # remove rm -f /etc/avahi/services/squid-deb-proxy.service #DEBHELPER# exit 0 git/debian/squid-deb-proxy.init0000664000000000000000000000516614136244360013707 0ustar #! /bin/sh # # squid-deb-proxy Startup script for the SQUID Deb HTTP proxy-cache. # # Version: @(#)squid-deb-proxy.rc 1.0 12-Mar-2011 andrew.simpson@corokia.co.nz # ### BEGIN INIT INFO # Provides: squid-deb-proxy # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $syslog # Should-Start: $named # Should-Stop: $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Squid Deb Package HTTP Proxy ### END INIT INFO NAME=squid-deb-proxy DESC="Squid Deb HTTP Proxy" DAEMON=/usr/sbin/squid PIDFILE=/var/run/$NAME.pid CONFIG=/etc/squid-deb-proxy/squid-deb-proxy.conf SQUID_ARGS="-YC -f $CONFIG" [ ! -f /etc/default/squid-deb-proxy ] || . /etc/default/squid-deb-proxy . /lib/lsb/init-functions # get the common stuff . /usr/share/squid-deb-proxy/init-common.sh PATH=/bin:/usr/bin:/sbin:/usr/sbin [ -x $DAEMON ] || exit 0 ulimit -n 65535 start () { cache_dir=`find_cache_dir cache_dir` pre_start umask 027 ulimit -n 65535 cd $cache_dir start-stop-daemon --quiet --start \ --pidfile $PIDFILE \ --exec $DAEMON -- $SQUID_ARGS < /dev/null status=$? if [ $status -eq 0 ] then post_start fi return $status } stop () { PID=`cat $PIDFILE 2>/dev/null` start-stop-daemon --stop --quiet \ --pidfile $PIDFILE \ --exec $DAEMON # cleanup post_stop # # Now we have to wait until squid has _really_ stopped. # sleep 2 if test -n "$PID" && kill -0 $PID 2>/dev/null then log_action_begin_msg " Waiting" cnt=0 while kill -0 $PID 2>/dev/null do cnt=`expr $cnt + 1` if [ $cnt -gt 24 ] then log_action_end_msg 1 return 1 fi sleep 5 log_action_cont_msg "" done log_action_end_msg 0 return 0 else return 0 fi } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" if start ; then log_end_msg $? else log_end_msg $? fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if stop ; then log_end_msg $? else log_end_msg $? fi ;; reload|force-reload) log_action_msg "Reloading $DESC configuration files" # this will stop avahi post_stop # ensure that the auto-generated files are updated on reload pre_start # and reload start-stop-daemon --stop --signal 1 --quiet \ --pidfile $PIDFILE --exec $DAEMON -- -f $CONFIG log_action_end_msg 0 # this will start avahi again post_start ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" stop if start ; then log_end_msg $? else log_end_msg $? fi ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart}" exit 3 ;; esac exit 0 git/debian/squid-deb-proxy.config0000775000000000000000000000034514136244360014206 0ustar #!/bin/sh -e # # script to configure squid-deb-proxy # Source debconf library. . /usr/share/debconf/confmodule # get inputs db_input low squid-deb-proxy/ppa-enable || true db_input low squid-deb-proxy/acl-disable || true db_go git/debian/squid-deb-proxy.docs0000664000000000000000000000001214136244360013655 0ustar README.md git/debian/compat0000664000000000000000000000000114136276267011166 0ustar 7git/debian/squid-deb-proxy-client.install0000664000000000000000000000006414136276267015671 0ustar usr/share/squid-deb-proxy-client/ etc/apt/apt.conf.dgit/debian/squid-deb-proxy.dirs0000664000000000000000000000006414136276267013710 0ustar var/log/squid-deb-proxy etc/resolvconf/update-libc.dgit/debian/copyright0000664000000000000000000000071514136276267011727 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=59 Files: * Copyright: (c) 2010 Canonical License: GPL-3 License: GPL-3 This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 3. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3'. git/debian/rules0000775000000000000000000000047314136244360011042 0ustar #!/usr/bin/make -f DIST=$(shell dpkg-vendor --query Vendor) %: dh $@ override_dh_auto_build: dh_auto_build $@ # use hte right default mirrors file for the distro ln -s mirror-dstdomain.acl.$(DIST) mirror-dstdomain.acl override_dh_installinit: dh_installinit $@ dh_installinit --name=squid-deb-proxy-avahi git/debian/squid-deb-proxy.logrotate0000664000000000000000000000063314136244360014736 0ustar # # Logrotate fragment for squid-deb-proxy. # /var/log/squid-deb-proxy/*.log { daily compress delaycompress rotate 2 missingok nocreate sharedscripts postrotate if [ -x /usr/sbin/squid ]; then SQUID=/usr/sbin/squid else echo "No squid binary found" exit 1 fi test ! -e /var/run/squid-deb-proxy.pid || $SQUID -f /etc/squid-deb-proxy/squid-deb-proxy.conf -k rotate endscript } git/debian/squid-deb-proxy-client-udeb.install0000664000000000000000000000010014136244360016562 0ustar ../../udeb/80squid-deb-proxy-client ./usr/lib/base-installer.d/ git/debian/changelog0000664000000000000000000003774614136276371011660 0ustar squid-deb-proxy (0.8.14ubuntu0.18.04.1) bionic; urgency=medium * apt-avahi-discover: write errors to stderr instead of stdout so that stdout can be captured correctly. Thanks to . Note that this is being fixed differently (stderr and not syslog) in the stable releases. LP: #1505670. -- Miriam España Acebal Thu, 14 Oct 2021 16:48:09 +0200 squid-deb-proxy (0.8.14) unstable; urgency=medium * depend on squid3 instead of squid, thanks to HIGUCHI Daisuke (VDR dai), closes: #813082 -- Michael Vogt Fri, 29 Jan 2016 17:55:43 +0100 squid-deb-proxy (0.8.13) unstable; urgency=medium * add README.md to squid-deb-proxy install, thanks to Daniel Stender (closes: 796388) -- Michael Vogt Mon, 24 Aug 2015 11:54:14 +0200 squid-deb-proxy (0.8.12) unstable; urgency=medium * squid-deb-proxy.conf: - handle Translation-.* the same way as the other indexfiles (LP: #1474417). Thanks to Scott Moser. -- Michael Vogt Thu, 16 Jul 2015 09:13:03 +0200 squid-deb-proxy (0.8.11) unstable; urgency=low [ Vagrant Cascadian ] * add /etc/resolvconf/update-libc.d/squid-deb-proxy (closes: #780083) [ Robie Basak ] * Simplify upstart "start on" to match squid3, to fix runlevel transition problem (LP: #1456662) -- Michael Vogt Wed, 27 May 2015 09:12:49 +0200 squid-deb-proxy (0.8.10) unstable; urgency=medium [ Michael Vogt ] * debian/po/nl.po: - add Dutch translation of squid-deb-proxy debconf messages, thanks to Frans Spiesschaert (closes: 766519) [ Chris Glass ] * Don't remove the package blacklist file if it is empty when gathering rules. This should fix LP: #1166667 (closes: #775545) -- Michael Vogt Thu, 29 Jan 2015 15:50:49 +0100 squid-deb-proxy (0.8.9) unstable; urgency=low [ Vagrant Cascadian ] * squid-deb-proxy.conf: - add refresh patterns for tar.xz,tar.bz2 (closes: #756357) - use squid-deb-proxy specific netdb_filename (closes: #760666) [ Michael Vogt ] * improve README to explain better how to use it when squid-deb-proxy-client is not a option -- Michael Vogt Wed, 10 Sep 2014 16:07:07 +0200 squid-deb-proxy (0.8.8) unstable; urgency=low [ Vagrant Cascadian ] * remove unowned files on purge (closes: #705995) [ Chris Glass ] * lp:~tribaal/squid-deb-proxy/refresh-ims: - add "refresh-ims" options to the refresh patterns for the index files -- Michael Vogt Fri, 18 Jul 2014 13:25:47 +0200 squid-deb-proxy (0.8.7) unstable; urgency=low * debian/po/es.po: - updated debconf translation, thanks to Camaleón (closes: #739510) * init-common.sh: - fix squid-deb-proxy restart bug that caused the proxy to disappear from the announced avahi services (closes: 728791) -- Michael Vogt Sat, 15 Mar 2014 16:39:26 +0100 squid-deb-proxy (0.8.6) unstable; urgency=low [ Michael Vogt ] * ensure /etc/avahi/services/squid-deb-proxy.service is removed on package removal * debian/po/es.po: - New Spanish debconf translation, thanks to Camaleón (closes: #733495) [ Chris Glass ] * lp:~tribaal/squid-deb-proxy/extra-default-networks: - add two more example repos -- Michael Vogt Sat, 25 Jan 2014 22:27:08 +0100 squid-deb-proxy (0.8.5) unstable; urgency=low [ James Page ] * lp:~james-page/squid-deb-proxy/fixup-cache-init: Ensure squid does not daemonize when creating cache directories (LP: #1247886) -- Michael Vogt Thu, 12 Dec 2013 22:22:34 +0100 squid-deb-proxy (0.8.4) unstable; urgency=low * mirror-dstdomain.acl.Debian: - add http.debian.net to the allowed destinations (closes: #724229) -- Michael Vogt Mon, 23 Sep 2013 10:39:35 +0200 squid-deb-proxy (0.8.3) unstable; urgency=low * debian/squid-deb-proxy.postinst: - use "reload" instead of "restart" to avoid confusing error message that squid-deb-proxy did not start (when it did) on fresh installs or dpkg-reconfigure * mirror-dstdomain.acl.Debian: - add cdn.debian.net to the default allowed destinations * apt-avahi-discover: - improve --debug output * debian/squid-deb-proxy.init: - ensure that reload re-generates the ACL configuration -- Michael Vogt Fri, 20 Sep 2013 16:14:53 +0200 squid-deb-proxy (0.8.2) unstable; urgency=low * apt-avahi-discover: - do not depend on python-apt and use /usr/bin/apt-config instead to get the "APT::Avahi-Discover::Timeout" configuration value (closes: #722932) -- Michael Vogt Thu, 19 Sep 2013 14:56:55 +0200 squid-deb-proxy (0.8.1) unstable; urgency=low [ Julian Andres Klode ] * apt-avahi-discover: - Fix a check for IPv6 addresses - Really ignore non-accepting hosts (Closes: #722253) -- Michael Vogt Wed, 11 Sep 2013 18:23:46 +0200 squid-deb-proxy (0.8) unstable; urgency=low [ Andrew Simpson ] * debian/squid-deb-proxy.init: - fix incorrect functions in reload() (closes: #720365) [ Michael Vogt ] * apt-avahi-discover: - when a _apt_proxy._tcp server is found, try to connect to it before using it - when multiple _apt_proxy._tcp servers are found, use the one that provides the quickest answer (closes: #722253, #718788) Thanks to Paul Wise and Julian Andres Klode for the suggestions [ Julian Andres Klode ] * apt-avahi-discover: - Pass -f to avahi-browse to not produce error messages if it cannot find a service (closes: #722253) -- Michael Vogt Tue, 10 Sep 2013 16:15:53 +0200 squid-deb-proxy (0.7.2) unstable; urgency=low [ Chris J Arges ] * Add additional ipv6 localhost address. (LP: #1195430) -- Michael Vogt Tue, 09 Jul 2013 16:37:19 +0200 squid-deb-proxy (0.7.1) unstable; urgency=low * fix package description, thanks to martin f krafft (closes: #705813) * merge reviewed package description and debconf templates, many thanks to Christian PERRIER and Justin B Rye (closes: #705794) * fix btfs, closes: #707507 * merge patch to use dpkg-vendor instead of lsb_release -i -s thanks to Felix Geyer (closes: #706521) * debian/po/sk.po: - add, thanks to helix84 (closes: #709109) * debian/po/da.po: - added, thanks to Joe Dalton (closes: #708854) * debian/po/ru.po: - added, thanks to Yuri Kozlov (closes: #708728) * debian/po/de.po: - added, thanks to Chris Leick (closes: #709630) * debian/po/it.po: - added, thanks to Beatrice Torracca (closes: #709881) * debian/po/cs.po: - added, thanks to Michal Šimůnek (closes: #710114) * debian/po/pl.po: - added, thanks to Michał Kułach (closes: #710389) * debian/po/ja.po: - added, thanks to "victory" (closes: #710436) * debian/po/fr.po: - added, thanks to "jean-pierre giraud" (closes: #711140) * debian/po/sv.po: - added, thanks to "Martin Bagge" (closes: #712652) -- Michael Vogt Tue, 18 Jun 2013 13:33:41 +0200 squid-deb-proxy (0.7) unstable; urgency=low * add a debian default config * enable sysv init script * refactor shell helper code into init-common.sh * initial debian upload (closes: #574081) -- Michael Vogt Tue, 09 Apr 2013 19:11:43 +0200 squid-deb-proxy (0.6.8) raring; urgency=low * apt-avahi-discover: - skip ipv6 link-local addresses, thanks to Edwin Amsler -- Michael Vogt Tue, 09 Apr 2013 18:50:45 +0200 squid-deb-proxy (0.6.7) raring; urgency=low * lp:~nobuto/squid-deb-proxy/allow-ubuntu-cloud-archive: - allowing caching of the "Ubuntu Cloud Archive" repository by default * allow caching of .extras.ubuntu.com -- Michael Vogt Thu, 06 Dec 2012 11:47:25 +0100 squid-deb-proxy (0.6.6) quantal; urgency=low * remove the autogenerated blacklist file if it contains no data (LP: #1053682) -- Brian Murray Thu, 20 Sep 2012 15:28:54 -0700 squid-deb-proxy (0.6.5) quantal; urgency=low [ Simon Déziel ] * lp:~sdeziel/squid-deb-proxy/remove-unused-acls: - remove all and localhost acls as they are buildin in squid3 (LP: #1005257) [ Michael Vogt ] * debian/control: - only depend on squid3 -- Michael Vogt Fri, 24 Aug 2012 17:17:18 +0200 squid-deb-proxy (0.6.4) quantal; urgency=low [ Andy Whitcroft ] * squid-deb-proxy: advertise on IPv6 (LP: #1021298) - add IPv6 stanza to avahi configuration - add IPv6 link local addresses to default acls * squid-dev-proxy-client: support IPv6 addressing when offered under avahi - switch to python script to allow validation of the addresses against the public address families we have on our interfaces (uses the same algorithm used in apt to avoid "something wierd" errors) - look for IPv6 then IPv4 addresses in avahi browse responses - stop using the incoming interface specifier to imply address type use address form itself - format IPv6 addresses using the http://[address]:port/ form -- Michael Vogt Mon, 09 Jul 2012 17:43:11 +0200 squid-deb-proxy (0.6.3) precise-proposed; urgency=low [ Simon Déziel ] * Support squid and squid3 in logrotate config (LP: #984806) [ Michael Vogt ] * mirror-dstdomain.acl: - fix typo, thanks to Paolo Rotolo (LP: #978696) -- Michael Vogt Thu, 19 Apr 2012 14:46:24 +0200 squid-deb-proxy (0.6.2) precise; urgency=low [ Michael Vogt ] * squid-deb-proxy.conf: - use "aufs" instead of "ufs" for the cache directory. Thanks to Robert Colins for this suggestion [ Robie Basak ] * squid-deb-proxy.conf: always refresh Packages and Release files. (LP: #952364) -- Michael Vogt Mon, 02 Apr 2012 22:09:12 +0200 squid-deb-proxy (0.6.1) precise; urgency=low [ Adam Gandelman ] * debian/squid-deb-proxy.upstart: Wrap squid execution in a script section. Also test for location/version of squid there, as the existing test in pre-start is out of scope but needed in both places. (LP: #893313) -- Michael Vogt Thu, 24 Nov 2011 16:26:34 +0100 squid-deb-proxy (0.6) precise; urgency=low * add (optional) support for squid3 -- Michael Vogt Thu, 03 Nov 2011 10:44:06 -0400 squid-deb-proxy (0.5.2) oneiric; urgency=low * Rework/simplify/fix the udeb based on the input from Colin Watson (thanks a lot!) * fix a bunch of lintian errors: - add missing po-debconf as build-depends - add debian/po/{POTFILES.in,templates.pot} -- Michael Vogt Thu, 30 Jun 2011 12:09:19 +0100 squid-deb-proxy (0.5.1) oneiric; urgency=low * debian/control: - fix architecture in squid-deb-proxy-client-udeb -- Michael Vogt Tue, 28 Jun 2011 12:35:19 +0100 squid-deb-proxy (0.5) oneiric; urgency=low * merged lp:~lynxman/squid-deb-proxy/debhooks, many thanks this adds debconf support to enable unrestricted network src access and access to PPA destinations * add support for a binary packagename blacklist * add .d directories for: - allowed-networks-src.acl.d - mirror-dstdomain.acl.d - pkg-blacklist.d * add squid-deb-proxy-client udeb * write debconf generated config to /etc/squid-deb-proxy/allowed-networks-src.acl.d/30-debconf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/30-debconf * debian/control: - add avahi and pkg-config to the build-depends -- Michael Vogt Thu, 09 Jun 2011 15:34:11 +0200 squid-deb-proxy (0.4.2) natty; urgency=low * mirror-dstdomain.acl: - add mirrors.ubuntu.com for the mirror methods -- Michael Vogt Thu, 24 Mar 2011 17:50:10 +0100 squid-deb-proxy (0.4.1) natty; urgency=low * remove obsolete conffile on upgrade: /etc/init/squid-deb-proxy-avahi.conf -- Michael Vogt Thu, 24 Mar 2011 08:51:41 +0100 squid-deb-proxy (0.4) natty; urgency=low * mirror-dstdomain.acl: - add ddebs.ubuntu.com to default mirrors * apt-avahi-discover: - use avahi-resolve to workaround the issue that avahi-browse sometimes hands out ipv6 even when asked for ipv4 only, many thanks to Andrew Simpson (LP: #686265) * contrib/squid-deb-proxy.init: - add sysv init script, thanks to Andrew Simpson * debian/squid-deb-proxy.upstart: - write avahi services file on post-start and kill it again on pre-stop (LP: #695937) * debian/squid-deb-proxy.squid-deb-proxy-avahi.upstart: - removed, this is part of squid-deb-proxy.upstart now * Makefile: - fix permission of 30autoproxy (LP: #697955) * debian/squid-deb-proxy.logrotate: - add logrotate file (LP: #718923), thanks to Johan van Dijk and Andrew Simpson -- Michael Vogt Wed, 23 Mar 2011 21:53:11 +0100 squid-deb-proxy (0.3.4) natty; urgency=low * Removing expect fork and passing -N to squid to prevent upstart losing track of squid on reload (LP: #573853) -- Clint Byrum Tue, 11 Jan 2011 15:07:37 -0800 squid-deb-proxy (0.3.3) natty; urgency=low * Adjusting upstart job so restarting squid-deb-proxy does not result in killing squid-deb-proxy-avahi. (LP: #677276) * Also adjusting upstart job so squid-deb-proxy does not get started a real network interface is up and all local filesystems are mounted -- Clint Byrum Thu, 18 Nov 2010 16:27:24 -0800 squid-deb-proxy (0.3.2) natty; urgency=low [ Colin Dean ] * adding other ubuntu/canonical repos and some suggested others (but commented) (LP: #673080) * Added commented lines which allow non-specified domains to be accessed and (optionally) cached [ Jorge O. Castro ] * Add some popular repositories to cache (commented out) [ Michael Vogt ] * README: - updated to document the new options * debian/squid-deb-proxy.squid-deb-proxy-avahi.upstart: - fix upstart script so that the avahi service actually gets started (LP: #655187) -- Michael Vogt Wed, 10 Nov 2010 10:45:49 +0100 squid-deb-proxy (0.3.1) lucid; urgency=low * debian/squid-deb-proxy.squid-deb-proxy-avahi.upstart: - start only once avahi-daemon is available (thanks to dholbach) * debian/control: - add dependency on apt for squid-deb-proxy-client (thanks to dholbach) -- Michael Vogt Thu, 18 Mar 2010 15:05:12 +0100 squid-deb-proxy (0.3) lucid; urgency=low * debian/squid-deb-proxy.squid-deb-proxy-avahi.upstart: - advertise the proxy using avahi (if avahi is availalbe) * debian/control: - add recommends on avahi-utils to get avahi-publish * apt-avahi-discover: - provide a avahi based module suitable for apts Acquire::http::ProxyAutoDetect option * 30autoproxy: - add apt configuration that automatically uses apt-avahi-discover -- Michael Vogt Wed, 17 Feb 2010 14:04:56 +0100 squid-deb-proxy (0.2.3) lucid; urgency=low * debian/control: - move Vcs to lp:~squid-deb-proxy-developers/squid-deb-proxy/trunk - add homepage * mirror-dstdomain.acl: - add ports.ubuntu.com -- Michael Vogt Wed, 27 Jan 2010 15:02:15 +0100 squid-deb-proxy (0.2.2) lucid; urgency=low * mirror-dstdomain.acl: - add security.ubuntu.com to the allowed destdomains -- Michael Vogt Tue, 26 Jan 2010 09:19:50 +0100 squid-deb-proxy (0.2.1) lucid; urgency=low * initial lucid upload -- Michael Vogt Mon, 25 Jan 2010 18:13:26 +0100 squid-deb-proxy (0.2) lucid; urgency=low * README: - add documentation * *.acl: - split the bits that the user will most likely change into different files -- Michael Vogt Mon, 25 Jan 2010 18:13:15 +0100 squid-deb-proxy (0.1) lucid; urgency=low * initial version -- Michael Vogt Mon, 18 Jan 2010 12:11:19 +0100 git/debian/squid-deb-proxy.upstart0000664000000000000000000000131214136276267014446 0ustar # squid-deb-proxy - a proxy for deb packages # description "squid-deb-proxy" pre-start script . /usr/share/squid-deb-proxy/init-common.sh pre_start end script post-start script . /usr/share/squid-deb-proxy/init-common.sh post_start end script # if this is done in pre-stop "restart squid-deb-proxy" kills the # file without putting a replacement in! post-stop script . /usr/share/squid-deb-proxy/init-common.sh post_stop end script start on runlevel [2345] stop on runlevel [!2345] script if [ -x /usr/sbin/squid ]; then SQUID=/usr/sbin/squid else echo "No squid binary found" exit 1 fi exec $SQUID -N -f /etc/squid-deb-proxy/squid-deb-proxy.conf end script git/debian/squid-deb-proxy.templates0000664000000000000000000000161614136244360014736 0ustar # These templates have been reviewed by the debian-l10n-english # team # # If modifications/additions/rewording are needed, please ask # debian-l10n-english@lists.debian.org for advice. # # Even minor modifications require translation updates and such # changes should be coordinated with translators and reviewers. Template: squid-deb-proxy/ppa-enable Type: boolean Default: false _Description: Allow PPA access? By default, squid-deb-proxy does not allow access to Personal Package Archive (PPA) repositories on Launchpad. . Choosing this option will whitelist these repositories. Template: squid-deb-proxy/acl-disable Type: boolean Default: false _Description: Allow unrestricted network access? By default, squid-deb-proxy allows access to the cache from private networks only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). . Choosing this option will allow other IP addresses to access the cache. git/debian/update-libc.d/0000775000000000000000000000000014136276267012404 5ustar git/debian/update-libc.d/squid-deb-proxy0000664000000000000000000000032014136276267015356 0ustar #!/bin/sh PATH="/usr/sbin:/usr/bin:/sbin:/bin" # Make squid aware of changes to resolv.conf # Avoid reload before /usr is mounted if [ -d /usr/sbin ] ; then invoke-rc.d squid-deb-proxy reload || true fi git/debian/po/0000775000000000000000000000000014136276267010407 5ustar git/debian/po/sk.po0000664000000000000000000000420614136244360011353 0ustar # Slovak translation of squid-deb-proxy debconf template. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the squid-deb-proxy package. # Ivan Masár , 2013. msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-20 23:40+0200\n" "Last-Translator: Ivan Masár \n" "Language-Team: Slovak \n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Povoliť prístup k PPA?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "V predvolenom nastavení squid-deb-proxy neumožňuje prístup k Osobným " "archívom balíkov (PPA) na Launchpade." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "" "Ak zvolíte túto možnosť, bude tieto zdroje softvéru sa pridajú na bielu " "listinu." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Umožniť neobmedzený prístup k sieti?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "V predvolenom nastavení squid-deb-proxy umožňuje prístup do vyrovnávacej " "pamäte len zo súkromných sietí (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Ak zvolíte túto možnosť, umožníte prístup k vyrovnávacej pamäti aj ďalším IP " "adresám." git/debian/po/es.po0000664000000000000000000001014614136276267011360 0ustar # squid-deb-proxy po-debconf translation to Spanish # Copyright (C) 2013 Software in the Public Interest # This file is distributed under the same license as the squid-deb-proxy package. # Changes: # - Initial translation # Camaleón , 2013, 2014. # - Updates # Traductores, si no conocen el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # Equipo de traducción al español, por favor lean antes de traducir # los siguientes documentos: # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas y normas de traducción en # http://www.debian.org/intl/spanish/notas # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy 0.8.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-01-26 14:35+0000\n" "PO-Revision-Date: 2014-02-09 16:13+0200\n" "Last-Translator: Camaleón \n" "Language-Team: Debian Spanish \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Virtaal 0.7.1\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "¿Desea permitir el acceso a los PPA?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "De manera predeterminada, squid-deb-proxy no permite el acceso a los " "repositorios de Archivos de Paquetes Personales (PPA) de Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Si acepta esta opción se permitirá el acceso a estos repositorios." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "¿Desea permitir el acceso a la red sin restricciones?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "De manera predeterminada, squid-deb-proxy sólo permite acceder al caché a " "las redes privadas (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Si acepta esta opción se permitirá el acceso al caché a todas las " "direcciones IP." #~ msgid "Allow PPA (Personal Package Archive) access?" #~ msgstr "" #~ "¿Desea permitir el acceso a los PPA (Personal Package Archive o «Archivo " #~ "de Paquetes Personal»)?" #~ msgid "" #~ "Squid-deb-proxy by default will not allow PPA repositories from " #~ "launchpad. Selecting Y in this option will activate PPA repo access." #~ msgstr "" #~ "De manera predeterminada, squid-deb-proxy no permite los repositorios PPA " #~ "de Launchpad. Si selecciona Y («sí») en esta opción se activará el acceso " #~ "a los repositorios PPA." #~ msgid "" #~ "Squid-deb-proxy restricts access to the cache to private networks only by " #~ "default. Selecting Y in this option will allow unrestricted access of all " #~ "IPs to access the cache. Selecting N will only allow private networks " #~ "(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to access the cache." #~ msgstr "" #~ "De manera predeterminada, squid-deb-proxy sólo permite acceder al caché a " #~ "las redes privadas. Si selecciona Y («sí») en esta opción se permitirá el " #~ "acceso sin restricciones a todas las direcciones IP. Si selecciona N " #~ "(«no») sólo se permitirá el acceso al caché a las redes privadas " #~ "(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." git/debian/po/ja.po0000664000000000000000000000447114136276267011347 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # victory , 2013. # msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-17 16:43+0900\n" "Last-Translator: victory \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "PPA へのアクセスを許可しますか?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "デフォルトでは、squid-deb-proxy は Launchpad の Personal Package Archive " "(PPA) リポジトリへのアクセスを許可しません。" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "" "このオプションを選択すると PPA リポジトリをホワイトリストとして扱います。" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "ネットワークアクセスを無制限に許可しますか?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "デフォルトでは、squid-deb-proxy はキャッシュへのアクセスをプライベートネット" "ワーク (10.0.0.0/8、172.16.0.0/12、192.168.0.0/16) からのみ許可します。" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "このオプションを選択すると他の IP アドレスからのキャッシュへのアクセスを許可" "します。" git/debian/po/nl.po0000664000000000000000000000424014136244360011345 0ustar # Dutch translation of squid-deb-proxy debconf templates. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the squid-deb-proxy package. # Frans Spiesschaert , 2014. # msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2014-09-11 14:48+0000\n" "PO-Revision-Date: 2014-10-09 15:29+0200\n" "Last-Translator: Frans Spiesschaert \n" "Language-Team: Debian Dutch l10n Team \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Toegang verlenen tot PPA?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "Standaard verleent squid-deb-proxy geen toegang tot de Personal Package " "Archive (PPA) pakketbronnen op Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Kiezen voor deze optie zal deze pakketbronnen vrijgeven." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Onbeperkte netwerktoegang verlenen?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "Standaard verleent squid-deb-proxy enkel toegang tot de cache aan private " "netwerken (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Kiezen voor deze optie zal ook aan andere IP-adressen toelaten om toegang " "tot de cache te hebben." git/debian/po/de.po0000664000000000000000000000417214136244360011330 0ustar # German debconf translation of squid-deb-proxy. # Copyright (C) 2010 Canonical. # This file is distributed under the same license as # the squid-deb-proxy package. # Chris Leick , 2013. # msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy 0.8\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-19 10:48+0100\n" "Last-Translator: Chris Leick \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "PPA-Zugriff erlauben?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "Standardmäßig erlaubt Squid-deb-proxy keinen Zugriff auf persönliche " "Paketarchivdepots (Personal Package Archive/PPA) auf Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "" "Die Auswahl dieser Option wird diese Depots auf eine Liste erlaubter Depots " "setzen." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Uneingeschränkten Netzwerkzugriff gestatten?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "Standardmäßig erlaubt Squid-deb-proxy nur privaten Netzwerken (10.0.0.0/8, " "172.16.0.0/12, 192.168.0.0/16) den Zugriff auf den Zwischenspeicher." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Die Auswahl dieser Option wird weiteren IP-Adressen den Zugriff auf den " "Zwischenspeicher gestatten."git/debian/po/sv.po0000664000000000000000000000416114136244360011366 0ustar # Translation of squid-deb-proxy debconf template to Swedish # Copyright (C) 2013 Martin Bagge # This file is distributed under the same license as the squid-deb-proxy package. # # Martin Bagge , 2013 msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-06-18 11:39+0100\n" "Last-Translator: Martin Bagge / brother \n" "Language-Team: Swedish \n" "Language: Swedish\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Ska PPA-åtkomst tillåtas?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "Som standard tillåter inte squid-deb-proxy åtkomst till Personal Package " "Archive (PPA) på Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Aktiveras detta val kommer dessa förråda att bli vitlistade." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Tillåt obegränsad nätverksåtkomst?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "Som standard tillåter squid-deb-proxy bara tillgång till cachefiler från " "privata nätverk (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Aktiveras detta val kommer andra IP-adresser att kunna ha tillgång till " "cachefilerna." git/debian/po/fr.po0000664000000000000000000000440214136244360011343 0ustar # translation to French of squid-deb-proxy templates # Copyright (C) 2013 French l10n team # This file is distributed under the same license as the squid-deb-proxy package. # jipege , 2013. # msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-06-03 09:35+0200\n" "Last-Translator: jipege \n" "Language-Team: français \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Gtranslator 2.91.5\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Autoriser l'accès aux PPA ?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "Par défaut, squid-deb-proxy n'autorise pas l'accès aux archives PPA " "(« Personal Package Archive » : archives personnelles de paquets) de " "Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Si vous choisissez cette option, ces archives seront autorisées." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Faut-il autoriser un accès sans restriction depuis le réseau ?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "Par défaut, squid-deb-proxy n'autorise l'accès au cache qu'à partir d'un " "réseau privé (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Si vous choisissez cette option, l'accès au cache sera autorisé à toute " "adresse IP." git/debian/po/cs.po0000664000000000000000000000426114136244360011344 0ustar # Czech PO debconf template translation of squid-deb-proxy. # Copyright (C) 2013 Michal Simunek # This file is distributed under the same license as the squid-deb-proxy package. # Michal Simunek , 2013. # msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy 0.8\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-28 12:31+0200\n" "Last-Translator: Michal Simunek \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Povolit přístup do PPA?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "squid-deb-proxy ve výchozím nastavení nepovoluje na Launchpadu přístup " "do repositáře s archivem osobních balíčků (Personal Package Archive - PPA)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Zvolení této možnosti přidá tyto repositáře na bílou listinu." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Povolit neomezený síťový přístup?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "squid-deb-proxy ve výchozím nastavení povoluje přistupovat k vyrovnávací paměti " "pouze z neveřejných sítí (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "Zvolení této možnosti povolí přistup k vyrovnávací paměti z ostatních IP adres." git/debian/po/templates.pot0000664000000000000000000000271314136276267013134 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2011-06-30 12:07+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:1001 msgid "Allow PPA (Personal Package Archive) access?" msgstr "" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:1001 msgid "" "Squid-deb-proxy by default will not allow PPA repositories from launchpad. " "Selecting Y in this option will activate PPA repo access." msgstr "" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow unrestricted network access?" msgstr "" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "Squid-deb-proxy restricts access to the cache to private networks only by " "default. Selecting Y in this option will allow unrestricted access of all " "IPs to access the cache. Selecting N will only allow private networks " "(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to access the cache." msgstr "" git/debian/po/pl.po0000664000000000000000000000430214136244360011346 0ustar # Translation of squid-deb-proxy debconf templates to Polish. # Copyright (C) 2013 # This file is distributed under the same license as the squid-deb-proxy package. # # Michał Kułach , 2013. msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-17 17:26+0200\n" "Last-Translator: Michał Kułach \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Lokalize 1.4\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Zezwolić na dostęp do PPA?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "Domyślnie squid-deb-proxy nie zezwala na dostęp do repozytoriów Personal " "Package Archive (PPA) na platformie Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Wybór tej opcji doda je do białej listy." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Zezwolić na nieograniczony dostęp sieciowy?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "Domyślnie squid-deb-proxy zezwala na dostęp do pamięci podręcznej jedynie z " "sieci prywatnych (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Wybór tej opcji zezwoli na dostęp do pamięci podręcznej innym adresom IP." git/debian/po/ru.po0000664000000000000000000000467014136244360011371 0ustar # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the squid-deb-proxy package. # # Yuri Kozlov , 2013. msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy 0.8\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-18 09:00+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<" "=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Lokalize 1.4\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Разрешить доступ к PPA?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "По умолчанию, в squid-deb-proxy запрещён доступ к " "персональным репозиториям пакетов (Personal Package Archive, PPA) Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Ответив утвердительно, доступ к этим репозиториям станет возможен." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Разрешить неограниченный сетевой доступ?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "По умолчанию, к кэшу squid-deb-proxy разрешён доступ только из частных сетей " "(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Ответив утвердительно, доступ к кэшу станет возможен и с других IP-адресов." git/debian/po/POTFILES.in0000664000000000000000000000006414136244360012151 0ustar [type: gettext/rfc822deb] squid-deb-proxy.templates git/debian/po/it.po0000664000000000000000000000432314136244360011352 0ustar # Italian translation of squid-deb-proxy debconf messages. # Copyright (C) 2013, Beatrice Torracca # This file is distributed under the same license as the squid-deb-proxy package. # Beatrice Torracca , 2013. msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-17 15:41+0200\n" "Last-Translator: Beatrice Torracca \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Virtaal 0.7.1\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Permettere l'accesso a PPA?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "In modo predefinito squid-deb-proxy non permette l'accesso a repository PPA " "(Personal Package Archive) su Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "" "Se si abilita questa opzione, tali repository verranno inseriti nell'elenco " "di quelli permessi." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Permettere l'accesso non ristretto dalla rete?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "In modo predefinito squid-deb-proxy permette l'accesso alla cache solamente " "dalle reti private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Se si abilita questa opzione si permetterà ad altri indirizzi IP di accedere " "alla cache." git/debian/po/da.po0000664000000000000000000000405014136244360011317 0ustar # Danish translation squid-deb-proxy. # Copyright (C) 2013 squid-deb-proxy og nedenstående oversættere. # This file is distributed under the same license as the squid-deb-proxy package. # Joe Hansen , 2013. # msgid "" msgstr "" "Project-Id-Version: squid-deb-proxy\n" "Report-Msgid-Bugs-To: squid-deb-proxy@packages.debian.org\n" "POT-Creation-Date: 2013-05-17 09:43+0200\n" "PO-Revision-Date: 2013-05-19 10:43+0100\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Allow PPA access?" msgstr "Tillad PPA-adgang?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "" "By default, squid-deb-proxy does not allow access to Personal Package " "Archive (PPA) repositories on Launchpad." msgstr "" "Som standard giver squid-deb-proxy ikke adgang til Personal Package " "Archive-arkiver (PPA) på Launchpad." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:2001 msgid "Choosing this option will whitelist these repositories." msgstr "Valg af denne indstilling vil hvidliste disse arkiver." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Allow unrestricted network access?" msgstr "Tillad ubegrænset netværksadgang?" #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "" "By default, squid-deb-proxy allows access to the cache from private networks " "only (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." msgstr "" "Som standard giver squid-deb-proxy kun adgang til mellemlageret (cache) fra " "private netværk (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)." #. Type: boolean #. Description #: ../squid-deb-proxy.templates:3001 msgid "Choosing this option will allow other IP addresses to access the cache." msgstr "" "Valg af denne indstilling vil give andre IP-adresser adgang til mellemlageret (cache)." git/debian/preinst0000664000000000000000000000254214136244360011370 0ustar #!/bin/sh # preinst script for squid-deb-proxy # set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # for lucid -> P upgrades we can't use dpkg-mainthelper rm_conffile() { local PKGNAME="$1" local CONFFILE="$2" [ -e "$CONFFILE" ] || return 0 local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')" local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \ sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" if [ "$md5sum" != "$old_md5sum" ]; then echo "Obsolete conffile $CONFFILE has been modified by you." echo "Saving as $CONFFILE.dpkg-bak ..." mv -f "$CONFFILE" "$CONFFILE".dpkg-bak else echo "Removing obsolete conffile $CONFFILE ..." rm -f "$CONFFILE" fi } case "$1" in install|upgrade) if dpkg --compare-versions "$2" le "0.4.1"; then rm_conffile squid-deb-proxy /etc/init/squid-deb-proxy-avahi.conf fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 git/debian/squid-deb-proxy.postinst0000775000000000000000000000732314136244360014627 0ustar #!/bin/sh # postinst script for squid-deb-proxy # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # A simplified version of debconf's own config script. . /usr/share/debconf/confmodule USER_NETWORKS=/etc/squid-deb-proxy/allowed-networks-src.acl.d/10-default USER_ALLOWED_DESTINATIONS=/etc/squid-deb-proxy/mirror-dstdomain.acl.d/10-default DEBCONF_NETWORKS=/etc/squid-deb-proxy/allowed-networks-src.acl.d/30-debconf DEBCONF_ALLOWED_DESTINATIONS=/etc/squid-deb-proxy/mirror-dstdomain.acl.d/30-debconf case "$1" in configure) # the users allowed networks, this is not a conffile so its created # here if [ ! -f "$USER_NETWORKS" ]; then cat > "$USER_NETWORKS" < "$USER_ALLOWED_DESTINATIONS" < $PKG_BLACKLIST_IN < "$DEBCONF_ALLOWED_DESTINATIONS" < "$DEBCONF_NETWORKS" <&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 git/debian/postrm0000664000000000000000000000027314136244360011227 0ustar #!/bin/sh set -e if [ "$1" = "purge" ]; then rm -rf /var/cache/squid-deb-proxy rm -rf /var/log/squid-deb-proxy rm -f /etc/squid-deb-proxy/squid-deb-proxy.conf fi #DEBHELPER# git/mirror-dstdomain.acl.Ubuntu0000664000000000000000000000106614136244360013773 0ustar # mirror-dstdomain.conf # # network destinations that are allowed by this cache # default ubuntu and ubuntu country archive mirrors .archive.ubuntu.com ports.ubuntu.com security.ubuntu.com ddebs.ubuntu.com mirrors.ubuntu.com #official third party repositories .archive.canonical.com .extras.ubuntu.com # default changelogs location, this includes changelogs and the meta-release # file that has information about new ubuntu versions changelogs.ubuntu.com # additional destinations can be added to the directory: # /etc/squid-deb-proxy/mirror-dstdomain.acl.d git/README.md0000664000000000000000000000366214136244360010022 0ustar Squid-deb-proxy =============== This package provides a squid proxy config optimized for caching deb packages on Debian and Ubuntu systems. Quick Start ----------- In a simple setup all you need to do is to install "squid-deb-proxy" on your server and "squid-deb-proxy-client" on your clients. If all clients are in the same (private) network apt will automatically find the proxy server and use it. You can verify this by looking at the logs in /var/log/squid-deb-proxy/access.log on your server. Setup ----- ### Client setup If you can't use squid-deb-proxy-client you can configure the client manually. The sources.list should point to your prefered mirror (no change needed usually). Then add Acquire::http::Proxy to your apt configuration, e.g. via: # echo 'Acquire::http::Proxy "http://proxy-server-hostname:8000/";' > /etc/apt/apt.conf.d/squid-deb-proxy.conf ### Default Server Config It should work out of the box on port 8000 for most users. The default config will only allow fetching official Debian or Ubuntu/Canonical packages (Ubuntu destinations on a Ubuntu server, Debian destinations on a Debian server). You can add more repositories either via the whitelist file "mirror-dstdomain.acl" or by tweaking the global configuration "squid-deb-proxy.conf" to allow fetching from any domain (see the http_access and cache options). By default from any request from a private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) network is granted, everything else is denied. #### Ubuntu It will allow access to .archive.ubuntu.com, archive.canonical.com, extras.ubuntu.com and changelogs.ubuntu.com. #### Debian By default it allow access to .debian.org, cdn.debian.net and http.debian.net from any prvate network ### Customizing To customize the settings for the allowed origins or destinations you can edit /etc/squid-deb-proxy/*.acl. To customize the general config, please edit the file /etc/squid-deb-proxy/squid-deb-proxy.conf git/squid-deb-proxy.conf0000664000000000000000000000635714136244360012452 0ustar # WELCOME TO SQUID DEB PROXY # ------------------ # # This config file is a version of a squid proxy file optimized # as a configuration for a caching proxy for Debian/Ubuntu systems. # # More information about squid and its configuration can be found here # http://www.squid-cache.org/ and in the FAQ # settings that you may want to customize # --------------------------------------- # this file contains private networks (10.0.0.0/8, 172.16.0.0/12, # 192.168.0.0/16) by default, you can add/remove additional allowed # source networks in it to customize it for your setup acl allowed_networks src "/etc/squid-deb-proxy/autogenerated/allowed-networks-src.acl" # this file contains the archive mirrors by default, # if you use a different mirror, add it there acl to_archive_mirrors dstdomain "/etc/squid-deb-proxy/autogenerated/mirror-dstdomain.acl" # this contains the package blacklist acl blockedpkgs urlpath_regex "/etc/squid-deb-proxy/autogenerated/pkg-blacklist-regexp.acl" # default to a different port than stock squid http_port 8000 # ------------------------------------------------- # settings below probably do not need customization # user visible name visible_hostname squid-deb-proxy # we need a big cache, some debs are huge maximum_object_size 512 MB # use a different dir than stock squid and default to 40G cache_dir aufs /var/cache/squid-deb-proxy 40000 16 256 # use different logs cache_access_log /var/log/squid-deb-proxy/access.log cache_log /var/log/squid-deb-proxy/cache.log cache_store_log /var/log/squid-deb-proxy/store.log # tweaks to speed things up cache_mem 200 MB maximum_object_size_in_memory 10240 KB # pid pid_filename /var/run/squid-deb-proxy.pid # 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 # only allow connects to ports for http, https acl Safe_ports port 80 acl Safe_ports port 443 563 # only allow ports we trust http_access deny !Safe_ports # do not allow to download from the pkg blacklist http_access deny blockedpkgs # allow access only to official archive mirrors # uncomment the third and fouth line to permit any unlisted domain http_access deny !to_archive_mirrors #http_access allow !to_archive_mirrors # don't cache domains not listed in the mirrors file # uncomment the third and fourth line to cache any unlisted domains cache deny !to_archive_mirrors #cache allow !to_archive_mirrors # allow access from our network and localhost http_access allow allowed_networks # And finally deny all other access to this proxy http_access deny all # we don't want to clash with the squid netdb state file netdb_filename stdio:/var/log/squid-deb-proxy/netdb.state git/avahi/0000775000000000000000000000000014136244360007624 5ustar git/avahi/Makefile0000664000000000000000000000044414136244360011266 0ustar CFLAGS := $(shell pkg-config --cflags avahi-core) -g -Wall LDFLAGS := $(shell pkg-config --libs avahi-core) all: find_squid_deb_proxy find_squid_deb_proxy: find_squid_deb_proxy.c $(CC) $(CFLAGS) find_squid_deb_proxy.c -o find_squid_deb_proxy $(LDFLAGS) clean: rm -f find_squid_deb_proxy git/avahi/find_squid_deb_proxy.c0000664000000000000000000001653514136244360014202 0ustar /* $Id$ */ /*** This file is based on an example that is part of avahi, which is copyright: Lennart Poettering Trent Lloyd Sebastien Estienne Jakub Stachowski James Willcox Collabora Ltd. Modifications for eucalyptus-udeb are copyright 2009 Canonical Ltd. Modifications for squid-deb-proxy-udeb are copyright 2011 Canonical Ltd. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include static AvahiSimplePoll *simple_poll = NULL; static AvahiServer *server = NULL; static int debug = 0; static void quiet_logger(AvahiLogLevel level, const char *txt) { } static void resolve_callback( AvahiSServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *address, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { assert(r); /* Called whenever a service has been resolved successfully or timed out */ switch (event) { case AVAHI_RESOLVER_FAILURE: if (debug) fprintf(stderr, "(Resolver) Failed to resolve service '%s' of type '%s' in domain '%s': %s\n", name, type, domain, avahi_strerror(avahi_server_errno(server))); break; case AVAHI_RESOLVER_FOUND: { char *human_address = avahi_malloc0(AVAHI_ADDRESS_STR_MAX); char *key = NULL; AvahiStringList *ipaddr_entry; char *ipaddr_key, *ipaddr_value; ipaddr_entry = avahi_string_list_find(txt, "ipaddr"); if (ipaddr_entry && avahi_string_list_get_pair(ipaddr_entry, &ipaddr_key, &ipaddr_value, NULL) == 0) { key = avahi_strdup_printf("%s:%u", ipaddr_value, port); avahi_free(ipaddr_value); avahi_free(ipaddr_key); } else if (avahi_address_snprint(human_address, AVAHI_ADDRESS_STR_MAX, address)) { if (address->proto == AVAHI_PROTO_INET6) key = avahi_strdup_printf("[%s]:%u", human_address, port); else if (strncmp(human_address, "169.254.169.254", 15) == 0) key = avahi_strdup_printf("%s:%u", name, port); else key = avahi_strdup_printf("%s:%u", human_address, port); } else { if (debug) fprintf(stderr, "(Resolver) failed to resolve %s to IP address/port\n", key); } avahi_free(human_address); printf("http://%s/\n", key); } } avahi_s_service_resolver_free(r); } static void browse_callback( AvahiSServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { AvahiServer *s = userdata; assert(b); /* Called whenever a new services becomes available on the LAN or is removed from the LAN */ switch (event) { case AVAHI_BROWSER_FAILURE: fprintf(stderr, "(Browser) %s\n", avahi_strerror(avahi_server_errno(server))); avahi_simple_poll_quit(simple_poll); return; case AVAHI_BROWSER_NEW: if (debug) fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain); /* We ignore the returned resolver object. In the callback function we free it. If the server is terminated before the callback function is called the server will free the resolver for us. */ if (!(avahi_s_service_resolver_new(s, interface, protocol, name, type, domain, AVAHI_PROTO_INET, 0, resolve_callback, s))) fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_server_errno(s))); break; case AVAHI_BROWSER_REMOVE: if (debug) fprintf(stderr, "(Browser) REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain); break; case AVAHI_BROWSER_ALL_FOR_NOW: if (debug) fprintf(stderr, "(Browser) %s\n", "ALL_FOR_NOW"); exit(0); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: if (debug) fprintf(stderr, "(Browser) %s\n", "CACHE_EXHAUSTED"); break; } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { AvahiServerConfig config; AvahiSServiceBrowser *sb = NULL; int error; int ret = 1; if (getenv("SQUID_DEB_PROXY_FIND_DEBUG")) debug = 1; /* Initialize the pseudo-RNG */ srand(time(NULL)); if (!debug) avahi_set_log_function(quiet_logger); /* Allocate main loop object */ if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, "Failed to create simple poll object.\n"); goto fail; } /* Do not publish any local records */ avahi_server_config_init(&config); config.publish_hinfo = 0; config.publish_addresses = 0; config.publish_workstation = 0; config.publish_domain = 0; /* Allocate a new server */ server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, NULL, NULL, &error); /* Free the configuration data */ avahi_server_config_free(&config); /* Check whether creating the server object succeeded */ if (!server) { fprintf(stderr, "Failed to create server: %s\n", avahi_strerror(error)); goto fail; } /* Create the service browser */ // FIXME: use AVAHI_PROTO_UNSPEC for ipv6 at some point if (!(sb = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_INET, "_apt_proxy._tcp", NULL, 0, browse_callback, server))) { fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_server_errno(server))); goto fail; } /* Run the main loop */ avahi_simple_poll_loop(simple_poll); ret = 0; fail: /* Cleanup things */ if (sb) avahi_s_service_browser_free(sb); if (server) avahi_server_free(server); if (simple_poll) avahi_simple_poll_free(simple_poll); return ret; } git/avahi/README0000664000000000000000000000015214136244360010502 0ustar This is a pure C implementation of apt-avahi-discover. Its currently not used but might be in the future. git/tests/0000775000000000000000000000000014136244360007676 5ustar git/tests/test_acl.sh0000775000000000000000000000154514136244360012040 0ustar #!/bin/sh CURL="curl -s -I" count=0 failure=0 assert_ok() { if ! $CURL $1 | grep -q "HTTP/1.0 200 OK"; then echo "ASSERT FAILURE for $@, assumed 200 OK" failure=$(( $failure + 1 )) fi count=$(( $count + 1 )) } assert_forbidden() { if ! $CURL $1 | grep -q "HTTP/1.0 403 Forbidden"; then echo "ASSERT FAILURE for $@, assumed 403 Forbidden" failure=$(( $failure + 1 )) fi count=$(( $count + 1 )) } http_proxy=http://localhost:8000/ echo "Starting tests for $http_proxy" assert_ok "http://archive.ubuntu.com" assert_ok "http://de.archive.ubuntu.com/ubuntu/" assert_ok "http://changelogs.ubuntu.com/meta-release" assert_forbidden "http://wiki.ubuntu.com" assert_forbidden "http://www.ubuntu.com" assert_forbidden "http://example.com" assert_forbidden "http://example.com:21" echo "Test finished, tests failed: $failure, tests run: $count"git/mirror-dstdomain.acl.Debian0000664000000000000000000000072314136244360013672 0ustar # mirror-dstdomain.conf # # network destinations that are allowed by this cache # the default mirror names on debian are ftp[0-9]*\.[a-z]+\.debian\.org # but that would require (slow) regexp matching, so for now we allow # www.debian.org and friends here too .debian.org cdn.debian.net http.debian.net # default mirrors #ftp.debian.org #security.debian.org # additional destinations can be added to the directory: # /etc/squid-deb-proxy/mirror-dstdomain.acl.d git/udeb/0000775000000000000000000000000014136244360007453 5ustar git/udeb/80squid-deb-proxy-client0000775000000000000000000000026414136244360014063 0ustar #!/bin/sh -e # queue squid-deb-proxy-client for install early log () { logger -t hw-detect "$@" } log "Queuing squid-deb-proxy-client" apt-install squid-deb-proxy-client git/README.autogenerated0000664000000000000000000000012514136244360012240 0ustar This directory contains automatically generated files. Do not edit anything in here.