You need a standard GNU development environment with
C compiler (for example the GNU C Compiler gcc)
Depending on your distribution, several development packages might be needed to provide a fully functional C development environment.
gettext
Note for developers: if you want to regenerate the .pot template from the source files, you will need xgettext with Python support. This is available in gettext >= 0.12.
Python >= 2.3.1 from http://www.python.org/ with zlib support
runit from http://smarden.org/runit/
Optional (used by ImageSize and ImageReducer module) Python Imaging Library (PIL) from http://www.pythonware.com/products/pil/
Optional (used for NTLM authentication) Python Crypto Module from http://www.amk.ca/python/code/crypto.html
Optional (used for SSL connections) OpenSSL and PyOpenSSL from http://www.openssl.org/ and http://pyopenssl.sourceforge.net/
Optional (used by VirusFilter module) ClamAv from http://www.clamav.net/
Optional (speedup for i386 compatible PCs) Psyco from http://psyco.sourceforge.net/ [http://osdn.dl.sourceforge.net/sourceforge/psyco/psyco-1.3-linux.i386-2.4.tar.gz]
Direct download links are in brackets.
Install check
Be sure to have installed all required Unix/Linux software listed above.
Compilation
Run ./configure && make to compile the included C libraries. Run python setup.py build to compile the Python files. For help about the setup.py script options, run python setup.py --help. The CC environment variable is checked before compilation, so you can change the default C compiler with export CC=myccompiler. If you work from CVS, you must run ./autogen.sh first to generate the configure and Makefile files.
Installation as root
Run su -c 'python setup.py install' to install the proxy. Run su -c 'webcleaner-certificates install' to install the certificates. Run su -c 'make installservice' to install the runit service.
Installation as a normal user
Run python setup.py install --home $HOME. Note that you have to adjust your PATH and PYTHONPATH environment variables, eg. by adding the commands export PYTHONPATH=$HOME/lib/python and export PATH=$PATH:$HOME/bin to your shell configuration file.
For more information look at the Modifying Python's search path documentation.
Now run webcleaner-certificates install to install the SSL certificates. After that read the runsvdir(8) documentation on how to setup a local runit service.
If you installed Psyco please read the psyco installation docs.
Enjoy
WebCleaner is now installed as a runit service and will start automatically in 5 seconds. See the main page on how to configure the proxy filters.
Install check
Be sure to have installed all required windows software listed above.
Execute the webcleaner-x.xx.win32-py2.4.exe file and follow the instructions.
Install check
Be sure to have installed all required windows software listed above.
Preparing Python for the MinGW compiler
Search the file python24.dll in your windows folder. After you found it, launch MSYS. Change into the windows folder, for example % cd c:\winnt\system32. Then execute % pexports python24.dll > python24.def. Then use the dlltool with % dlltool --dllname python24.dll --def python24.def --output-lib libpython24.a. The resulting library has to be placed in the same directory as python24.lib. (Should be the libs directory under your Python installation directory, for example c:\Python24\Libs\.)
Compile the JavaScript library
Copy the webcleaner-X.X.tar.gz into your MSYS home directory, which is usually under c:\msys\1.0\home\user\. Launch MSYS and extract the tarball with % tar xzvf webcleaner-X.X.tar.gz. Now change into the generated directory with % cd webcleaner-X.X and configure and compile the JavaScript library: % ./configure && make.
Install OpenSSL and compile PyOpenSSL
Change to the directory where you installed OpenSSL (for example c:> cd c:\OpenSSL\). Fix the library names for the mingw compiler: c:> cd lib\MinGW; move ssleay32.a libssleay32.a; move ssleay32.def libssleay32.def Change to the directory where you extracted PyOpenSSL (for example c:> cd c:\pyOpenSSL-0.5.1). Open a text editor for setup.py and replace 'libeay32' with 'eay32'. Then run: c:> python setup.py build_ext -c mingw32 -I c:\OpenSSL\include -L c:\OpenSSL\lib\MinGW build install
Generate the WebCleaner installer
Change to the webcleaner-X.X directory and run c:> python setup.py build -c mingw32 bdist_wininst.
This generates a binary installer dist\webcleaner-X.X.win32-py2.4.exe which you just have to execute.
If you installed Psyco please read the psyco installation docs.
Enjoy
WebCleaner is now installed and started as a regular Windows service. See the main page on how to configure the proxy filters.
For help you can always join the mailing list at webcleaner-users@lists.sourceforge.net
Errors are logged in the runit log file located at /var/service/webcleaner/log/main/current
Errors are logged in the system event logger. Execute Settings -> Control Panel -> Administrative Tools -> Event Viewer and look at the "Application Log" events.