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 from http://www.openssl.org/
Optional (used for SSL connections) PyOpenSSL from http://pyopenssl.sourceforge.net/
Optional (used by VirusFilter module) ClamAv from http://www.clamav.net/
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. Run webcleaner-certificates install to install the certificates. Now read the runsvdir(8) documentation on how to setup a local runit service.
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.3.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 python23.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 python23.dll > python23.def. Then use the dlltool with % dlltool --dllname python23.dll --def python23.def --output-lib libpython23.a. The resulting library has to be placed in the same directory as python23.lib. (Should be the libs directory under your Python installation directory, for example c:\Python23\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.
Compile and install PyCrypto
Close the MSYS application and open a DOS command prompt. Change to the pycrypto-2.0 directory and run c:> python setup.py build -c mingw32 install
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.3.exe which you just have to execute.
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.