Script Index


/var/lib/sorcery/modules/build_api/api2

=head1 SYNOPSIS Functions for dealing with the actual compiling/installation of spells and walking through casts 'pass 4' pipeline. =head1 DESCRIPTION Contains functions for the build api version 2 which has the following steps: PRE_BUILD -> BUILD -> PRE_INSTALL -> INSTALL -> POST_INSTALL -> FINAL -> TRIGGERS =head1 COPYRIGHT Copyright (C) 2002 The Source Mage Team =head1 FUNCTIONS


function run_build_spell()

Parameters:

Description

This runs through the phase 4 pipeline of building and installing a spell for BUILD_API 2.


function run_pre_build()

Parameters:

Description

This phase of casting involves unpacking the source into the source directories. If a PRE_BUILD file exists in SCRIPT_DIRECTORY and is executable it is run in preference to the default_pre_build.


function run_build()

Parameters:

Description

Starts up the compile logs, turns on the various environment settings that need to be on, eventually gets around to running BUILD or default_build.


function run_pre_install()

Parameters:

Description

Turns all the various logs back on that were turned off from after run_build finished, then runs PRE_INSTALL or default_pre_install


function run_install()

Parameters:

Description

load persistent vars, then runs INSTALL or default_install Along with other stuff that needs to be transplanted elsewhere. NOTE: this function is run from delve so installwatch can be invoked around an execed bash shell, this is needed for installwatch to stage root properly


function run_post_install()

Parameters:

Description

Checks for a POST_BUILD file in SCRIPT_DIRECTORY, and if it is executable, runs it. This file is run after INSTALL and before FINAL. Its purpose is to manipulate the installed files in the stage root and install other tracked files. NOTE: this function is run from delve so installwatch can be invoked around an execed bash shell, this is needed for installwatch to stage root properly


function run_transfer()

Parameters:

Description

Checks against STAGED_INSTALL and installs the staged spell accordingly


function run_final()

Parameters:

Description

Checks for a FINAL file in SCRIPT_DIRECTORY, and if it is executable, runs it. This file is used for extra files that need to be installed, but not tracked by installwatch.


function real_default_sorcery_pre_build()

Parameters:

Type

API

Description

Creates the source directory and unpacks the source package into it. Used if no PRE_BUILD script is found for a spell.


function real_default_sorcery_build()

Parameters:

Type

API

Description

Used if no BUILD script is found Default build is:

./configure --build=$BUILD ## --prefix=/usr ## --sysconfdir=/etc ## --localstatedir=/var ## $OPTS &&
make


function real_default_sorcery_pre_install()

Parameters:

Type

API

Description

Used if no PRE_INSTALL script is found Default pre_install is:

prepare_install


function real_default_sorcery_install()

Parameters:

Type

API

Description

Used if no INSTALL script is found Default install is:

make install


function real_default_sorcery_install_extras()

Parameters:

Type

API

Description

Installs configuration files and documentation. Stops installwatch. Used if no POST_INSTALL script is found for a spell. This is identical to api1's post_build