diff options
author | anders <anders@FreeBSD.org> | 2004-06-03 21:07:56 +0800 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2004-06-03 21:07:56 +0800 |
commit | 2610b71ad5f09d97a8c277aa9d5a02af28ee8b53 (patch) | |
tree | 5c0ba88f9b0e82fd7b5bc4aad196ef4eb3e13a07 /www | |
parent | 086a1312c063c7207194bcd841ee77104d4f1b9d (diff) | |
download | freebsd-ports-gnome-2610b71ad5f09d97a8c277aa9d5a02af28ee8b53.tar.gz freebsd-ports-gnome-2610b71ad5f09d97a8c277aa9d5a02af28ee8b53.tar.zst freebsd-ports-gnome-2610b71ad5f09d97a8c277aa9d5a02af28ee8b53.zip |
Preserve state/runtime information between (re-)starts.
PR: 66451
Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
Diffstat (limited to 'www')
-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 |