diff options
author | Anders Nordby <anders@FreeBSD.org> | 2004-06-03 13:07:56 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2004-06-03 13:07:56 +0000 |
commit | 8774326ef7a8934d5549141dfe9fd9370c762448 (patch) | |
tree | 3fe1677536b4f6687a8dff1eb3bac84c7646a32b /www/mod_throttle | |
parent | 53eaa80fff4c8dc7409c6364e064ec413119f624 (diff) |
Notes
Diffstat (limited to 'www/mod_throttle')
-rw-r--r-- | www/mod_throttle/Makefile | 1 | ||||
-rw-r--r-- | www/mod_throttle/files/patch-mod_throttle.c | 14 | ||||
-rw-r--r-- | www/mod_throttle/pkg-install | 14 |
3 files changed, 29 insertions, 0 deletions
diff --git a/www/mod_throttle/Makefile b/www/mod_throttle/Makefile index b967c5c89846..2c91faf43806 100644 --- a/www/mod_throttle/Makefile +++ b/www/mod_throttle/Makefile @@ -33,6 +33,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_throttle/ .endfor .endif + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL ${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/www/mod_throttle/files/patch-mod_throttle.c b/www/mod_throttle/files/patch-mod_throttle.c index 2b81b72af09f..242ce4e77ce9 100644 --- a/www/mod_throttle/files/patch-mod_throttle.c +++ b/www/mod_throttle/files/patch-mod_throttle.c @@ -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"; + diff --git a/www/mod_throttle/pkg-install b/www/mod_throttle/pkg-install new file mode 100644 index 000000000000..bcdabbae4b7f --- /dev/null +++ b/www/mod_throttle/pkg-install @@ -0,0 +1,14 @@ +#!/bin/sh + +case $2 in + PRE-INSTALL) + ;; + POST-INSTALL) + install -d -o www -g www -m 0755 /var/run/mod_throttle + ;; + *) + echo "Unexpected Argument $2." + exit 1 + ;; +esac +exit 0 |