--- trunk/mage/usr/lib/mage/mage.rc.global 2011/12/28 12:06:30 1583 +++ trunk/mage/usr/lib/mage/mage.rc.global 2011/12/28 12:23:50 1584 @@ -30,13 +30,10 @@ : ${MAGE_DISTRIBUTION="stable"} # Default options -VERBOSE="on" -MAGEDEBUG="off" : ${MAGE_UNINSTALL_TIMEOUT="3"} -# enables on-the-fly regeneration of the mage tree via smage2 files. -# MAGE_TREE_DEST must be also set. You should set it to the same as MAGEDIR. -#REGEN_MAGE_TREE=true +# Use MAGE_FEATURE 'regentree' to enable on-the-fly regeneration of the mage tree. +# MAGE_TREE_DEST must be also set. You should set it to the same value as MAGEDIR. MAGE_TREE_DEST="${MAGEDIR}" # Arch specific options and build flags @@ -45,8 +42,6 @@ CFLAGS="-mtune=${ARCH} -O2 -pipe" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl,--as-needed" -SMAGE_USE_CCACHE="false" -SMAGE_USE_DISTCC="false" MAKEOPTS="-j2" # Strip options @@ -87,12 +82,79 @@ # Default fetch options for wget WGET_FETCH_OPTIONS="--passive-ftp --tries 3 --continue --progress bar" -# creates on-the-fly source-tarballs when building packages with smage2 -#CREATE_SRC_PKG_TARBALL=true - -# enables step-by-step execution of the smage-file (for debugging only) -#STEP_BY_STEP=true - -# disables logging of smage builds -# currently for src_pepare, src_compile, src_install functions only -#SMAGE_BUILD_LOGGING=false +# All supported global features in mage/smage: +# You can negate any feature with a ! in front +# Please use the MAGE_FEATURES array to override these settings in local mage.rc +# +# autosvc|!autosvc +# * Automatically start/stop/restarts services on installation +# buildlog|!buildlog +# * Enables logging of smage builds +# * Currently for src_pepare, src_compile, src_install functions only +# * For developers only +# ccache|!ccache +# * Enable ccache support in smage +# * ccache must be installed to use this feature +# * For developers only +# check|!check +# * Runs the check function src_check() after completing src_compile() +# * For developers only +# compressdoc|!compressdoc +# * Enables compression of man, info and other doc files for minimizing diskspace usage +# * For developers only +# debug|!debug +# * Enables or disables debug mode +# * Do not touch this feature if you don't know what you are doing +# * The debug mode may break things like resolving dependencies +# * For developers only +# distcc|!distcc +# * Enable distcc support in smage +# * distcc must be installed to use this feature +# * For developers only +# kernelsrcunpack|!kernelsrcunpack +# * Automatically unpacks any kernel-sources tarballs to /usr/src +# libtool|!libtool +# * Includes .la libtool archives in builded packages, to remove them set !libtool +# * For developers only +# linuxsymlink|!linuxsymlink +# * Automatically updates the /usr/src/linux symlink to the installed kernel-sources version +# * Requires the kernelsrcunpack feature to be activated +# pkgbuild|!pkgbuild +# * Enables or disables the package build process +# * !buildpkg feature is only intended to be used for special-cases, +# * like virtuals and not to be a global feature. Use this with care. +# * Only disable this feature, if you know what you are doing! +# * For developers only +# purge|!purge +# * Purges files specified by PURGE_TARGETS array from every package build +# * Do not touch this feature if you don't know what you are doing +# * For developers only +# qalint|!qalint +# * Quality assurance checks will be run while building a package +# * Magellan lint utilities must be installed to use this feature +# * Only enable this feature for QA purposes only, +# * pkgbuild may fail even on non-fatal errors and warnings +# * For developers only +# regentree|!regentree +# * Automatically import packages in the mage-tree after building with smage +# * The target mage-tree can be defined with the MAGE_TREE_DEST variable +# * For developers only +# stepbystep|!stepbystep +# * Enables step-by-step execution of the smage-file for debugging +# * Currently for src_pepare(), src_compile(), src_check(), src_install() functions +# * For developers only +# srcpkgbuild|!srcpkgbuild +# * Enable this to create source-tarballs on-the-fly when building packages +# * For developers only +# srcpkgtarball|!srcpkgtarball +# * let smage build the package from a src tarball .mpks +# * Do not touch this feature, for internal use only!! +# strip|!strip +# * Enables stripping to remove debugging symbols of resulting binaries +# * For developers only +# verbose|!verbose +# * Enables or disables verbose mode +# +# To individually change these features within a smage file, you can use the msetfeature() function +# +MAGE_FEATURES_GLOBAL=( "autosvc" "buildlog" "ccache" "check" "compressdoc" "!debug" "!distcc" "kernelsrcunpack" "!libtool" "linuxsymlink" "pkgbuild" "purge" "!qalint" "regentree" "!srcpkgbuild" "!srcpkgtarball" "!stepbystep" "strip" "!verbose" )