Package: adzapper
Version: 20080508-1
Severity: minor
Tags: patch

Hi,

The redirect_program directive was renamed to url_rewrite_program in Squid
2.6:

[from squid's NEWS.Debian]

  redirect_*
    Renamed to url_rewrite_* to better reflect the functionality of this
    helper (rewriting requested URLs)

The old directive name is still accepted, at least with respect to Squid
3.0.STABLE13.

Attached is a patch amending adzapper's README.Debian ("Squid support") with
the new directive name.

Geoff

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-2-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages adzapper depends on:
ii  perl                          5.10.0-22  Larry Wall's Practical Extraction 

Versions of packages adzapper recommends:
pn  squid | polipo | apache2      <none>     (no description available)

Versions of packages adzapper suggests:
pn  apache2 | httpd               <none>     (no description available)
pn  konqueror                     <none>     (no description available)
ii  wget                          1.11.4-2   retrieves files from the web

-- no debconf information
diff -u adzapper-20080508/debian/README.Debian adzapper-20080508/debian/README.Debian
--- adzapper-20080508/debian/README.Debian
+++ adzapper-20080508/debian/README.Debian
@@ -8,13 +8,36 @@
 piece in squid.conf needs to be set:
 
 ---
-#  TAG: redirect_program
-#       Specify the location of the executable for the URL redirector.
+#  TAG: url_rewrite_program
+#       Specify the location of the executable for the URL rewriter.
 #       Since they can perform almost any function there isn't one included.
-#       See the Release-Notes for information on how to write one.
-#       By default, a redirector is not used.
 #
-redirect_program /usr/bin/adzapper.wrapper
+#       For each requested URL rewriter will receive on line with the format
+#
+#       URL <SP> client_ip "/" fqdn <SP> user <SP> method <SP> urlgroup
+#        [<SP> kvpairs] <NL>
+#
+#       In the future, the rewriter interface will be extended with
+#       key=value pairs ("kvpairs" shown above).  Rewriter programs
+#       should be prepared to receive and possibly ignore additional
+#       whitespace-separated tokens on each input line.
+#
+#       And the rewriter may return a rewritten URL. The other components of
+#       the request line does not need to be returned (ignored if they are).
+#
+#       The rewriter can also indicate that a client-side redirect should
+#       be performed to the new URL. This is done by prefixing the returned
+#       URL with "301:" (moved permanently) or 302: (moved temporarily).
+#
+#       It can also return a "urlgroup" that can subsequently be matched
+#       in cache_peer_access and similar ACL driven rules. An urlgroup is
+#       returned by prefixing the returned URL with "!urlgroup!".
+#
+#       By default, a URL rewriter is not used.
+#
+#Default:
+# none
+url_rewrite_program /usr/bin/adzapper.wrapper
 ---
 
 Apache2

Reply via email to