Bug 119955 - www/tinyproxy - paths in tinyproxy.conf-dist are wrong
Summary: www/tinyproxy - paths in tinyproxy.conf-dist are wrong
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 23:00 UTC by Domagoj Hranjec
Modified: 2008-02-01 13:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Domagoj Hranjec 2008-01-24 23:00:03 UTC
The paths in tinyproxy.conf-dist are /usr/share/tinyproxy/ instead of /usr/local/share/tinyproxy. This has as a consequence that DefaultErrorFile and StatFile doesn't work out-of-the-box.

Fix: Patch tinyproxy.conf-dist:


#
 # 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 "/usr/local/share/tinyproxy/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 "/usr/local/share/tinyproxy/stats.html"

 #
 # Logfile: Allows you to specify the location where information should
@@ -202,7 +202,7 @@
 #
 # Filter: This allows you to specify the location of the filter file.
 #
-#Filter "/etc/tinyproxy/filter"
+#Filter "/usr/local/etc/tinyproxy/filter"

 #
 # FilterURLs: Filter based on URLs rather than domains.--cVy8BrpGkFi2K57WAAo1WqSuLZKYn2RSTqtgPqE6FFBNvSxd
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- tinyproxy.conf-dist 2008-01-09 21:26:14.000000000 +0100
+++ tinyproxy.conf      2008-01-24 22:08:28.000000000 +0100
@@ -47,25 +47,25 @@
 #   /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 "/usr/local/share/tinyproxy/404.html"
+#ErrorFile 400 "/usr/local/share/tinyproxy/400.html"
+#ErrorFile 503 "/usr/local/share/tinyproxy/503.html"
+#ErrorFile 403 "/usr/local/share/tinyproxy/403.html"
+#ErrorFile 408 "/usr/local/share/tinyproxy/408.html"
How-To-Repeat: 	
Install tinyproxy.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-01-24 23:00:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Wesley Shields freebsd_committer freebsd_triage 2008-01-25 15:02:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-02-01 13:48:41 UTC
wxs         2008-02-01 13:48:34 UTC

  FreeBSD ports repository

  Modified files:
    www/tinyproxy        Makefile 
  Log:
  Fix paths in the configuration file.
  
  PR:             ports/119955
  Submitted by:   Hark <cab902@yahoo.com>
  Approved by:    garga (mentor)
  
  Revision  Changes    Path
  1.24      +3 -1      ports/www/tinyproxy/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Wesley Shields freebsd_committer freebsd_triage 2008-02-01 13:50:12 UTC
State Changed
From-To: feedback->closed

Committed.  Using REINPLACE_CMD in the Makefile to do the substitution.