{% extends 'djangofloor/dev/doc/source/installation.rst_tpl' %}
{% block post_dependencies %}
  * python-gnupg
  * rubymarshal
  * pyyaml
{% endblock %}

{% block pre_install_step %}
Ruby
----

If you want to use the Ruby mirror functionnality, Ruby is required on the server:

.. code-block:: bash

   sudo apt-get install ruby
{% endblock %}
{% block pre_webserver_ssl %}

If you want HTTP authentication, be sure to ensure that `/core/p/` and `/repo/p/` are publicly available.
These URLs are used by packaging tools that do not use such authentication.

{% endblock %}

{% block webserver_ssl_extra %}        <Location /core/p/>
            Order deny,allow
            Allow from all
            Satisfy any
        </Location>
        <Location /repo/p/>
            Order deny,allow
            Allow from all
            Satisfy any
        </Location>
{% endblock %}

{% block ini_configuration %}    [global]
    data = $HOME/{{ DF_MODULE_NAME }}
    [database]
    db = {{ DF_MODULE_NAME }}
    engine = postgresql
    host = localhost
    password = 5trongp4ssw0rd
    port = 5432
    user = {{ DF_MODULE_NAME }}
{% endblock %}

{% block post_application %}    {{ control_command }} createsuperuser


On VirtualBox, you may need to install rng-tools to generate enough entropy for GPG keys:

.. code-block:: bash

    sudo apt-get install rng-tools
    echo "HRNGDEVICE=/dev/urandom" | sudo tee -a /etc/default/rng-tools
    sudo service rng-tools restart
{% endblock %}
