OpenFaucet can be downloaded either directly from the git source repository (recommended for developers of OpenFaucet), or from a pre-packaged release archive (recommended for end users).
- Download the master branch from git
Clone the repository at URL git@github.com:rlenglet/openfaucet.git:
git clone git@github.com:rlenglet/openfaucet.git openfaucet cd openfaucetInstall GNU Autoconf and GNU Automake, e.g. on Debian GNU/Linux:
aptitude install autoconf automakeGenerate the configure script and Makefiles:
./bootstrap.shOr
- Download a release archive
Download the archive of the current release at http://midokura.github.com/openfaucet/releases/openfaucet-1.1.tar.gz (or another release) and uncompress it:
gzip -d openfaucet-1.1.tar.gz tar x -f openfaucet-1.1.tar cd openfaucet-1.1/
- Install all dependencies:
- Python version 2.6 or later (untested with Python 3.x)
- Twisted core version 10.2 or later
- ZopeInterface version 3.5.3 or later
- unittest2 version 0.5.1 or later (optionally, to execute the unittests)
- Sphinx version 0.6.6 or later (optionally, to generate the documentation)
On Debian GNU/Linux, all those dependencies can be installed as packages:
aptitude install python python-twisted-core python-zope.interface \ python-unittest2 python-sphinx
OpenFaucet can either be built and installed “by hand”, or built and installed as a Debian package.
- Build by hand
Check dependencies and configure to install OpenFaucet into /usr/local/ (default):
./configureSee the output of ./configure --help for configuration options.
Build:
make allOptionally, run unittests (requires unittest2 to be installed):
make checkOptionally, generate the HTML documentation (requires Sphinx):
make htmlAnd
- Install by hand
Install the openfaucet package:
make installOptionally, install the HTML documentation:
make install-htmlOr
- Install using GNU Stow
To better manage the installation of OpenFaucet into /usr/local, install GNU Stow, e.g. on Debian GNU/Linux:
aptitude install stowInstall OpenFaucet into a subdirectory of /usr/local/stow/:
make all make install prefix=/usr/local/stow/openfaucet-1.1Optionally, install the HTML documentation:
make install-html prefix=/usr/local/stow/openfaucet-1.1Install the openfaucet-1.1 package using stow:
stow -d /usr/local/stow openfaucet-1.1To uninstall the openfaucet-1.1 package, pass the -D option to stow:
stow -D -d /usr/local/stow openfaucet-1.1Or
- Build and install as a Debian GNU/Linux package
Download the master branch from the git source repository, as described in Step 1.1 above, and install unittest2 and Sphinx.
Install Debian GNU/Linux’s package build tools:
aptitude install devscriptsBuild the packages:
debuild
Install the built packages:
dpkg -i ../python-openfaucet_1.1_all.deb \ ../python-openfaucet-doc_1.1_all.deb