| 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: |
|
||||||
Responsible Changed From-To: freebsd-ports-bugs->anders Over to maintainer. State Changed From-To: open->closed Committed, thanks! |
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.