Package conary :: Package build :: Module build
[hide private]
[frames] | no frames]

Module build

source code

Module used by recipes to direct the build and installation of software packages. Classes from this module are not used directly; instead, they are used through eponymous interfaces in recipe.

Most of the paths that these classes use have a special property; if they are relative paths, they are interpreted relative to the main build directory (the %(builddir)s); if they are absolute paths, they are interpreted relative to the destination root directory (the %(destdir)s).

The class descriptions contain usage examples for quick reference.

Classes [hide private]
  BuildAction
Pure virtual class which inherits from action.RecipeAction but passes macros to the do() method.
  BuildCommand
Pure virtual class which implements the do method, based on the shell command built from a template.
  Run
r.Run() - Run a shell command
  Automake
r.Automake() - Re-runs aclocal, autoconf, and automake
  Configure
r.Configure() - Runs autoconf configure script
  CMake
r.CMake() - Runs cmake configure script
  ManualConfigure
r.ManualConfigure() - Runs make without functional DESTDIR
  Make
r.Make() - Runs make with system defaults
  MakeParallelSubdir
r.MakeParallelSubdir() - Runs make with parallelmflags applied only to sub-make processes
  MakeInstall
r.MakeInstall() - Runs make utility with install target
  MakePathsInstall
r.MakePathsInstall() - Runs make without functional DESTDIR
  Ant
r.Ant() - Runs c{ant}
  JavaCompile
r.JavaCompile() - Runs javac
  CompilePython
r.CompilePython() - Builds compiled and optimized Python bytecode files
  PythonSetup
r.PythonSetup() - Invokes setup.py to package Python code
  Ldconfig
r.Ldconfig() - Runs ldconfig in a directory
  _FileAction
  Desktopfile
r.Desktopfile() - Properly installs desktop files
  Environment
r.Environment() - Set an environment variable
  ClassPath
r.ClassPath() - Set the CLASSPATH environment variable
  SetModes
r.SetModes() - Sets modes on files
  _PutFiles
  Install
r.Install() - Copies file while setting permissions
  Copy
r.Copy() - Copies files without changing the mode
  Move
r.Move() - Moves files
  Symlink
r.Symlink() - Creates a symbolic link
  Link
r.Link() - Creates a hard link
  Remove
r.Remove() - Removes files and directories
  Replace
r.Replace() - Substitute text in a file
  Doc
r.Doc() - Installs documentation files
  JavaDoc
r.JavaDoc() - Installs documentation files
  Create
r.Create() - Creates a file
  MakeDirs
r.MakeDirs() - Creates directories
  TestSuite
r.TestSuite() - Creates a script to run package test suite
  ConsoleHelper
r.ConsoleHelper() - Set up consolehelper symlinks, control files, and dependency
  XInetdService
r.XInetdService() - Creates a file in /etc/xinetd.d
  XMLCatalogEntry
r.XMLCatalogEntry() - Adds an entry to the XML catalog file catalog file
  SGMLCatalogEntry
r.SGMLCatalogEntry() - Adds an entry to the SGML catalog file
  IncludeLicense
r.IncludeLicense() - Adds entries to the licenses conary understands
  MakeFIFO
r.MakeFIFO() - Creates a FIFO (named pipe)
  _UserGroupBuildAction
  User
r.User() - Provides user account creation information
  Group
r.Group() - Provides group creation information
  SupplementalGroup
r.SupplementalGroup() - Ensures a user is associated with a supplemental group
  UserGroupError
Variables [hide private]
  _permmap = {640: 416, 644: 420, 750: 488, 755: 493, 1755: 1005...
A mapping of common integer file modes to their octal equivalents.
Variables Details [hide private]

_permmap

A mapping of common integer file modes to their octal equivalents. This is used to check for common mistakes when specifying the permissions on files in classes derived from _PutFile.
Value:
{640: 416,
 644: 420,
 750: 488,
 755: 493,
 1755: 1005,
 2755: 1517,
 4510: 2376,
 4711: 2505,
...