freebsd-ports/www/dansguardian/files/patch-configure
Sergey Matveychuk 4a40b2c5af - Update to 2.8.0.4
* updated Big5 Chinese and Lithuanian language files
	* added Hebrew and Swedish language files
	* fixed several bugs in HTTP header handling
	* fixed a few bugs in the -r soft-restart feature
	* fixed a security issue with malformed URL processing
- install all default config files under samples/ directory

PR:		ports/78372
Submitted by:	maintainer
2005-03-05 07:26:11 +00:00

56 lines
1.9 KiB
Text

--- configure.orig Mon Feb 28 10:34:34 2005
+++ configure Mon Feb 28 10:37:32 2005
@@ -42,7 +42,7 @@
runas_usr='nobody'
runas_grp='nobody'
mandir='/usr/man/'
-logdir='/var/log/dansguardian/'
+logdir='/var/log/'
piddir='/var/run/'
logrotatedir='/etc/logrotate.d/'
gccver=`gcc -dumpversion | sed '1,$s/.[0-9]*$//'`
@@ -2480,7 +2480,7 @@
$extendedecho "SYSVLOCATION = \${PREFIX}$sysvdir" >>Makefile
$extendedecho "CGIBINLOCATION = \${PREFIX}$cgidir" >>Makefile
$extendedecho "MANUALFILES = \${PREFIX}$mandir" >>Makefile
-$extendedecho "LOGLOCATION = \${PREFIX}$logdir" >>Makefile
+$extendedecho "LOGLOCATION = $logdir" >>Makefile
$extendedecho "LOGROTATELOCATION = \${PREFIX}$logrotatedir" >>Makefile
echo "PROXYUSER = $runas_usr" >>Makefile
echo "PROXYGROUP = $runas_grp" >>Makefile
@@ -2498,7 +2498,7 @@
if [ -f /usr/include/ppc/endian.h ]; then
endianh='/usr/include/ppc/endian.h'
else
- endianh='<endian.h>'
+ endianh='<endian.h>'
fi
fi
fi
@@ -2834,7 +2834,7 @@
echo "# Log file location" >>dansguardian.conf
echo "# " >>dansguardian.conf
echo "# Defines the log directory and filename." >>dansguardian.conf
-echo "#loglocation = '/var/log/dansguardian/access.log'" >>dansguardian.conf
+echo "loglocation = '/var/log/dansguardian.log'" >>dansguardian.conf
echo "" >>dansguardian.conf
echo "" >>dansguardian.conf
echo "# Network Settings" >>dansguardian.conf
@@ -3341,7 +3341,7 @@
echo "" >>logrotation
echo "LOG_DIR=$prefixdir$logdir" >>logrotation
echo "NUM_LOGS=4" >>logrotation
-echo "LOG=\$LOG_DIR/access.log" >>logrotation
+echo "LOG=\$LOG_DIR/dansguardian.log" >>logrotation
echo "" >>logrotation
case `uname -s` in
@@ -3442,7 +3442,7 @@
fi
$extendedecho "$prefixdir$logdir\c" >>logrotate.dansguardian
-echo "access.log {" >>logrotate.dansguardian
+echo "dansguardian.log {" >>logrotate.dansguardian
echo " rotate 4" >>logrotate.dansguardian
echo " weekly" >>logrotate.dansguardian
echo " sharedscripts" >>logrotate.dansguardian