diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-03-30 16:11:03 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-03-30 16:11:03 +0000 |
commit | e8a0387e167fbe50a9cc66a301a513623427f361 (patch) | |
tree | b2031e82b9c4abc51ccc2fdcd0ecbdb95e22c1a3 /www/c-icap/files | |
parent | 181cd26e8522b2c333096b35eb08d8dfd543fb10 (diff) | |
download | ports-e8a0387e167fbe50a9cc66a301a513623427f361.tar.gz ports-e8a0387e167fbe50a9cc66a301a513623427f361.zip |
Notes
Diffstat (limited to 'www/c-icap/files')
-rw-r--r-- | www/c-icap/files/patch-c-icap.conf.default.in | 25 | ||||
-rw-r--r-- | www/c-icap/files/pkg-install.in | 4 |
2 files changed, 8 insertions, 21 deletions
diff --git a/www/c-icap/files/patch-c-icap.conf.default.in b/www/c-icap/files/patch-c-icap.conf.default.in index ebcaa824970d..bcebdabcde8f 100644 --- a/www/c-icap/files/patch-c-icap.conf.default.in +++ b/www/c-icap/files/patch-c-icap.conf.default.in @@ -1,26 +1,13 @@ ---- c-icap.conf.default.in.bak Fri Feb 3 10:18:30 2006 -+++ c-icap.conf.default.in Fri Feb 3 10:20:15 2006 -@@ -3,7 +3,7 @@ - # - - --PidFile /var/run/c-icap.pid -+PidFile @prefix@/var/run/c-icap.pid - Timeout 300 - KeepAlive On - MaxKeepAliveRequests 100 -@@ -25,11 +25,11 @@ - #ServerAdmin you@your.address # Not implemented yet - #ServerName localhost:1344 # Not implemented yet - --TmpDir /var/tmp -+TmpDir @prefix@/var/tmp +--- c-icap.conf.default.in.bak Wed Mar 29 08:24:29 2006 ++++ c-icap.conf.default.in Wed Mar 29 08:25:58 2006 +@@ -28,8 +28,8 @@ + TmpDir /var/tmp MaxMemObject 131072 -ServerLog @prefix@/var/log/server.log -AccessLog @prefix@/var/log/access.log -+ServerLog @prefix@/var/log/c_icap/server.log -+AccessLog @prefix@/var/log/c_icap/access.log ++ServerLog /var/log/c_icap/server.log ++AccessLog /var/log/c_icap/access.log #DebugLevel 3 ModulesDir @prefix@/lib/c_icap diff --git a/www/c-icap/files/pkg-install.in b/www/c-icap/files/pkg-install.in index b64313cf80c6..3c4dc5980f44 100644 --- a/www/c-icap/files/pkg-install.in +++ b/www/c-icap/files/pkg-install.in @@ -4,8 +4,7 @@ CICAP_USER=cicap CICAP_GROUP=cicap -LOG_PATH=/var/log -TMP_PATH=/var/tmp +LOG_PATH=/var/log/c_icap if [ "$2" = "PRE-INSTALL" ]; then if ! pw groupshow "$CICAP_USER" 2>/dev/null 1>&2; then @@ -29,6 +28,7 @@ if [ "$2" = "PRE-INSTALL" ]; then fi fi elif [ "$2" = "POST-INSTALL" ]; then + [ -d "$LOG_PATH" ] || mkdir -p "$LOG_PATH" || exit 1 touch "$LOG_PATH/access.log" "$LOG_PATH/server.log" || exit 1 chown -R "$CICAP_USER:$CICAP_GROUP" "$LOG_PATH" || exit 1 fi |