As many know, when you compile Webalizer can add several extra options which unfortunately can not be added by default for all users, for obvious reasons.
Personally, I would like to add the option '--with-language=<language>' and some other, but as 'CustomBuild' is built does not allow me to.
The amendment, as far as I know, it's not too complicated, we should add the following code where appropriate.
Slightly modify the 'doWebalizer' function (The last line is the important)
And add the following bash script (webalizer.configure) in the 'configure/webalizer' directory
Everything will still work the same, but this would allow us to copy the script 'webalizer.configure' to 'custom' directory and make the changes that everyone needs.
Would it be possible to add such modifications?
Ramón
Personally, I would like to add the option '--with-language=<language>' and some other, but as 'CustomBuild' is built does not allow me to.
The amendment, as far as I know, it's not too complicated, we should add the following code where appropriate.
Code:
# Variable for Webalizer
WEBALIZER_CONFIGURE=configure/webalizer/configure.webalizer
if [ -e custom/webalizer/configure.webalizer ]; then
WEBALIZER_CONFIGURE=custom/webalizer/configure.webalizer
fi
Code:
doWebalizer() {
quitIfLocked doWebalizer
if [ "${WEBALIZER_OPT}" != "yes" ]; then
echo "You cannot install webalizer, because you do not have it set in options.conf file."
setVal webalizer 0 ${DACONF_TEMPLATE_FILE}
setVal webalizer 0 ${DACONF_FILE}
exit 1
fi
if [ -e ${PREFIX}/bin/webalizer ]; then
echo "The webalizer binary exists, aborting. Delete ${PREFIX}/bin/webalizer if you wish to compile."
removeLockfile
return
fi
[[ ${OS} = "FreeBSD" ]] && BSD_PATH=/local || BSD_PATH=
PREFIX=/usr${BSD_PATH}
LIBPATH=/usr${BSD_PATH}/lib
INCPATH=/usr${BSD_PATH}/include
cd ${CWD};
getFile ${WEBALIZER_FILE} webalizer
tar xzf ${WEBALIZER_FILE} --no-same-owner
cd ${WEBALIZER}
${CWD}/${WEBALIZER_CONFIGURE} ${PREFIX} ${LIBPATH} ${INCPATH}
Code:
#!/bin/sh
export LD_LIBRARY_PATH=$2
"./configure" \
"--prefix=$1" \
"--with-png=$2" \
"--with-gdlib=$2" \
"--with-gd=$3" \
"--enable-dns" \
"--with-dblib" \
"--with-db" \
"--with-z-inc" \
"--with-zlib"
Would it be possible to add such modifications?
Ramón