Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

LuaDist: Configuration

drahosp edited this page Mar 19, 2011 · 3 revisions

Configuration

LuaDist is configured using a Lua configuration file which is available in share/lua/lmod/dist/config.lua. This file is automatically generated when LuaDist is built and does not require changes in most cases.

If needed configuration values can be changed using the luadist commandline arguments, this is described in the [Use](LuaDist: Use) document. However if you would like to change how LuaDist behaves to better fit your need you can edit the following options.

Behaviour

Following variables in the configuration file affect the behavior of LuaDist.

  • binary - true by default. Allows the use of binary dists. This should be disabled in source only distribution. Enabled in binary distribution.
  • source - true by default. Allows the use of souce dists. This will allow LuaDist to build modules from source, requires a C compiler and CMake to be installed. Source and binary dists can be enabled at the same time, binary packages take precedence.
  • test - false by default. Run tests before installing a dist. Currently not implemented.
  • debug - false by default. Enabling debug mode will increase verbosity of LuaDist for easier debugging. When building source dists with debugging enabled, LuaDist will allow you to review each dist configuration before building using _ccmake _ or cmake-gui.
  • proxy - false by default. If you need to use proxy type its address here as string.
  • timeout - 10 by default. Timeout for HTTP fetch function, in seconds.

Repositories

LuaDist can use local and remote directories as source of dists. Searching is sequential so repositories mentioned first have higher priority than later entries.

The following rules apply:

  • First repositories have higher priority.
  • Remote http and https repositories need dist.manifest file to work.
  • Local repositories can contain dists in unpacked or packed form.
  • An unpacked dist itself is considered a repository.
Clone this wiki locally