Bug 66451

Summary: www/mod_throttle doesn't preserve its runtime information
Product: Ports & Packages Reporter: fmysh
Component: Individual Port(s)Assignee: Anders Nordby <anders>
Status: Closed FIXED    
Severity: Affects Only Me CC: zaq75082
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description fmysh 2004-05-10 12:40:13 UTC
	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.

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>
How-To-Repeat: 	Restart httpd.
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2004-05-10 12:48:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->anders

Over to maintainer.
Comment 2 Anders Nordby freebsd_committer freebsd_triage 2004-06-03 14:08:11 UTC
State Changed
From-To: open->closed

Committed, thanks!