summaryrefslogtreecommitdiff
path: root/www/tinyproxy/patches/patch-ac
blob: 36cc666476d32c59423a309249505d0ae96382f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
$NetBSD: patch-ac,v 1.2 2006/09/19 08:31:18 rillig Exp $

--- doc/tinyproxy.conf.orig	2003-06-23 23:14:32.000000000 +0200
+++ doc/tinyproxy.conf	2006-09-19 10:15:24.000000000 +0200
@@ -6,8 +6,8 @@
 # Name of the user the tinyproxy daemon should switch to after the port
 # has been bound.
 #
-User nobody
-Group nogroup
+User @TINYPROXY_USER@
+Group @TINYPROXY_GROUP@
 
 #
 # Port to listen on.
@@ -40,31 +40,31 @@ Timeout 600
 #   /usr/share/tinyproxy
 #   /etc/tinyproxy
 #
-# ErrorFile 404 "/usr/share/tinyproxy/404.html"
-# ErrorFile 400 "/usr/share/tinyproxy/400.html"
-# ErrorFile 503 "/usr/share/tinyproxy/503.html"
-# ErrorFile 403 "/usr/share/tinyproxy/403.html"
-# ErrorFile 408 "/usr/share/tinyproxy/408.html"
+# ErrorFile 404 "@DATADIR@/404.html"
+# ErrorFile 400 "@DATADIR@/400.html"
+# ErrorFile 503 "@DATADIR@/503.html"
+# ErrorFile 403 "@DATADIR@/403.html"
+# ErrorFile 408 "@DATADIR@/408.html"
 
 # 
 # DefaultErrorFile: The HTML file that gets sent if there is no
 # HTML file defined with an ErrorFile keyword for the HTTP error
 # that has occured.
 #
-DefaultErrorFile "/usr/share/tinyproxy/default.html"
+DefaultErrorFile "@DATADIR@/default.html"
 
 #
 # StatFile: The HTML file that gets sent when a request is made
 # for the stathost.  If this file doesn't exist a basic page is
 # hardcoded in tinyproxy.
 #
-StatFile "/usr/share/tinyproxy/stats.html"
+StatFile "@DATADIR@/stats.html"
 
 #
 # Where to log the information. Either LogFile or Syslog should be set,
 # but not both.
 #
-Logfile "/var/log/tinyproxy.log"
+Logfile "@VARBASE@/log/tinyproxy.log"
 # Syslog On
 
 #
@@ -85,7 +85,7 @@ LogLevel Info
 # PidFile: Write the PID of the main tinyproxy thread to this file so it
 # can be used for signalling purposes.
 #
-PidFile "/var/run/tinyproxy.pid"
+PidFile "@VARBASE@/run/tinyproxy.pid"
 
 #
 # Include the X-Tinyproxy header, which has the client's IP address when
@@ -180,7 +180,7 @@ ViaProxyName "tinyproxy"
 #
 # The location of the filter file.
 #
-#Filter "/etc/tinyproxy/filter"
+#Filter "@PKG_SYSCONFDIR@/filter"
 
 #
 # Filter based on URLs rather than domains.