ports/66451: www/mod_throttle doesn't preserve its runtime information

TAOKA Fumiyoshi fmysh at iijmio-mail.jp
Mon May 10 11:40:14 UTC 2004


>Number:         66451
>Category:       ports
>Synopsis:       www/mod_throttle doesn't preserve its runtime information
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 10 04:40:13 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     TAOKA Fumiyoshi
>Release:        FreeBSD 5.2.1-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD prime.quad.dyndns.org 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #33: Fri May 7 03:14:02 JST 2004 fmysh at prime.quad.dyndns.org:/usr/obj/usr/src/sys/DPI533 i386

>Description:
	www/mod_throttle can't preserve its runtime information across
	shutdown and restarts because the runtime directory is defined 
	as "logs/..." in mod_throttle.c, which doesn't fit with FreeBSD's
	Apache directory layout. 

>How-To-Repeat:
	Restart httpd.

>Fix:
	Use /var/run/mod_throttle as a runtime directory.


-- Makefile.orig       Mon May 10 16:03:21 2004
+++ Makefile    Mon May 10 19:49:12 2004
@@ -21,6 +21,8 @@

 DOCS=          CHANGES.txt LICENSE.txt index.shtml

+RUNTIMEDIR=    /var/run/mod_throttle
+
 do-build:
        @cd ${WRKSRC} && \
        ${APXS} -c mod_throttle.c
@@ -33,6 +35,8 @@
        ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_throttle/
 .endfor
 .endif
+       ${MKDIR} ${RUNTIMEDIR}
+       ${CHOWN} -R www:www ${RUNTIMEDIR}
        ${CAT} ${PKGMESSAGE}

 .include <bsd.port.mk>
--- files/patch-mod_throttle.c.orig     Mon May 10 19:54:11 2004
+++ files/patch-mod_throttle.c  Mon May 10 19:59:39 2004
@@ -11,3 +11,17 @@
  /***********************************************************************
   *** Pick one that best suits your system.
   ***********************************************************************/
+--- mod_throttle.c.orig Mon May 10 15:59:10 2004
++++ mod_throttle.c      Mon May 10 16:00:45 2004
+@@ -215,8 +215,8 @@
+ static const char dtype[] = "Directory";
+ static const char text_html[] = "text/html";
+ static const char text_plain[] = "text/plain";
+-static const char file_lock[] = "logs/mod_throttle.lock";
+-static const char file_runtime[] = "logs/mod_throttle.runtime";
++static const char file_lock[] = "/var/run/mod_throttle/mod_throttle.lock";
++static const char file_runtime[] = "/var/run/mod_throttle/mod_throttle.runtime";
+
+ static const char x_is_subrequest[] = "x-is-subrequest";
+ static const char request_handler[] = "request-handler";
+



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list