--- trunk/mage/usr/lib/mage/mage.rc.global 2009/05/08 07:06:12 859 +++ trunk/mage/usr/lib/mage/mage.rc.global.in 2012/01/09 20:05:53 1613 @@ -1,10 +1,11 @@ -# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage.rc.global,v 1.9 2008-09-02 20:31:54 niro Exp $ -# # mage.rc.global - global configuration file for mage -# will be overidden by /etc/mage.rc +# $Id$ +# +# !! Do not edit this file, it will be overwritten on update. !! +# !! Use /etc/mage.rc instead to override any settings. !! # -## default locations +## Default locations PKGDIR="/var/cache/mage/packages" SRCPKGDIR="/var/cache/mage/packages/sources" BUILDDIR="/var/tmp/magebuild" @@ -17,36 +18,61 @@ BINDIR="${BUILDDIR}/builded" SMAGESCRIPTSDIR="/var/cache/mage/smage" -# set default install root to / +# Set default install root to / : ${MROOT=""} -# set default user mage.rc +# Set default user mage.rc : ${MAGERC="/etc/mage.rc"} -# default options -PKGSUFFIX="mpk" -VERBOSE="on" -MAGEDEBUG="off" -ARCH="i686" -: ${MAGE_UNINSTALL_TIMEOUT="5"} -PACKAGES_SERVER_PATH="packages/${ARCH}" -RSYNC_FETCH_OPTIONS="--recursive --links --perms --times --devices --timeout=600 --verbose --compress --progress --stats --delete --delete-after" +# Distribution settings +# Internal default: MAGE_DISTRIBUTION=stable +# stable | testing | unstable +: ${MAGE_DISTRIBUTION="stable"} + +# Default options +: ${MAGE_UNINSTALL_TIMEOUT="3"} + +# 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}" -# default build options +# Arch specific options and build flags +ARCH="@@ARCH@@" CHOST="${ARCH}-pc-linux-gnu" CFLAGS="-mtune=${ARCH} -O2 -pipe" CXXFLAGS="${CFLAGS}" -SMAGE_USE_CCACHE="false" -SMAGE_USE_DISTCC="false" +LDFLAGS="-Wl,--as-needed" MAKEOPTS="-j2" -# distcc specific +# cross-compile host +# set this only if you want to crosscompile +# you need also a cross-compile toolchain installed +#CTARGET="i486-pc-linux-gnu" + +# Strip options +STRIP_DYN_LIB="--strip-unneeded" +STRIP_DYN_BIN="--strip-all" +STRIP_STATIC_LIB="--strip-debug" + +# Extension defaults +# Do not modify these settings unless you know what you are doing +PKGSUFFIX="mpk" +SRCPKGSUFFIX="mpks" +MAGESUFFIX="mage" +SMAGESUFFIX="smage2" + +# Purge targets +# Array with all files which shall be removed from every package on build-time +# Do not touch these settings if you don't know what you are doing +PURGE_TARGETS=( usr/share/info/dir usr/share/info/dir.gz ) + +# Distcc specific settings #DISTCC_HOSTS="" DISTCC_DIR="${BUILDDIR}/.distcc" DISTCC_VERBOSE="0" DISTCC_LOG="/var/log/distcc.log" -# default mirrors +# Default mirrors and download options MIRRORS="http://magellan-linux.de/magellan" GNU_MIRRORS="ftp://ftp.gnu.org/pub/gnu ftp://ftp.cs.tu-berlin.de/pub/gnu" SOURCEFORGE_MIRRORS="http://belnet.dl.sourceforge.net/sourceforge http://mesh.dl.sourceforge.net/sourceforge" @@ -54,24 +80,86 @@ KDE_MIRRORS="ftp://ftp.kde.org/pub/kde/stable ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.kde.org/pub/kde/stable" RSYNC="rsync://magellan-linux.de/mage-ix86" SMAGE2RSYNC="rsync://magellan-linux.de/smage-cvs" +PACKAGES_SERVER_PATH="packages/${ARCH}" -# old distribution settings -# only for compat; will disapear soon -#USE_TESTING=true -#USE_UNSTABLE=true - -# new distribution settings -# internal default: MAGE_DISTRIBUTION=stable -# stable | testing | unstable -: ${MAGE_DISTRIBUTION="stable"} - -# 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 -#MAGE_TREE_DEST="${MAGEDIR}" - -# creates on-the-fly source-tarballs when building packages with smage2 -#CREATE_SRC_PKG_TARBALL=true +# Default fetch options for rsync +RSYNC_FETCH_OPTIONS="--recursive --links --perms --times --devices --timeout=600 --verbose --compress --progress --stats --delete --delete-after" +# Default fetch options for wget +WGET_FETCH_OPTIONS="--passive-ftp --tries 3 --continue --progress bar" -# enables step-by-step execution of the smage-file (for debugging only) -# STEP_BY_STEP=true +# 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" )