tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: www/tinyproxy issues under netbsd/amd64 (11.0_STABLE)



hi-

    i updated files/tinyproxy.sh to created the directory for
tinyproxy.pid using start_precmd.


On Fri, Sep 25, 2026 at 12:26:19PM -0400, Greg Troxel wrote:
> My take is that syslog is the standard approach for logging, that the
> default config should specify it, and the code to create specific log
> dirs removed.  I realize that webservers have a culture of their own
> logdirs, but they often don't rotate leading to out of space problems.


i'm fine with that too.  with this and the change for files/tinyproxy.sh
it seems like removing the mkdir/chown/chmod/rmdir @exec and @unexec
in PLIST and updating the sample tinyproxy.conf to use Syslog instead
of a log file should be ok?  (e.g. like diff below)

chuck




Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/www/tinyproxy/PLIST,v
retrieving revision 1.9
diff -u -r1.9 PLIST
--- PLIST	21 Jul 2021 10:05:26 -0000	1.9
+++ PLIST	8 Oct 2026 17:53:30 -0000
@@ -10,11 +10,3 @@
 share/tinyproxy/debug.html
 share/tinyproxy/default.html
 share/tinyproxy/stats.html
-@exec ${MKDIR} ${VARBASE}/log/tinyproxy || ${TRUE}
-@exec ${CHOWN} ${TINYPROXY_USER}:${TINYPROXY_GROUP} ${VARBASE}/log/tinyproxy || ${TRUE}
-@exec ${CHMOD} 755 ${VARBASE}/log/tinyproxy || ${TRUE}
-@exec ${MKDIR} ${VARBASE}/run/tinyproxy || ${TRUE}
-@exec ${CHOWN} ${TINYPROXY_USER}:${TINYPROXY_GROUP} ${VARBASE}/run/tinyproxy || ${TRUE}
-@exec ${CHMOD} 755 ${VARBASE}/run/tinyproxy || ${TRUE}
-@unexec ${RMDIR} ${VARBASE}/log/tinyproxy 2>/dev/null || ${TRUE}
-@unexec ${RMDIR} ${VARBASE}/run/tinyproxy 2>/dev/null || ${TRUE}
Index: patches/patch-etc_tinyproxy.conf.in
===================================================================
RCS file: /cvsroot/pkgsrc/www/tinyproxy/patches/patch-etc_tinyproxy.conf.in,v
retrieving revision 1.4
diff -u -r1.4 patch-etc_tinyproxy.conf.in
--- patches/patch-etc_tinyproxy.conf.in	10 Mar 2026 08:27:33 -0000	1.4
+++ patches/patch-etc_tinyproxy.conf.in	8 Oct 2026 17:53:30 -0000
@@ -15,12 +15,12 @@
  
  #
  # Port: Specify the port which tinyproxy will listen on.  Please note
-@@ -124,7 +124,7 @@ LogLevel Info
- # can be used for signalling purposes.
- # If not specified, no pidfile will be written.
+@@ -100,7 +100,7 @@ StatFile "@pkgdatadir@/stats.html"
+ # option must not be enabled if the Logfile directive is being used.
+ # These two directives are mutually exclusive.
  #
--#PidFile "@runstatedir@/tinyproxy/tinyproxy.pid"
-+PidFile "@runstatedir@/tinyproxy/tinyproxy.pid"
+-#Syslog On
++Syslog On
  
  #
- # XTinyproxy: Tell Tinyproxy to include the X-Tinyproxy header, which
+ # LogLevel: Warning


Home | Main Index | Thread Index | Old Index