--- trunk/mage/usr/lib/mage/mage.rc.global 2005/12/04 17:11:46 298 +++ trunk/mage/usr/lib/mage/mage.rc.global.in 2013/02/01 10:26:33 2044 @@ -1,11 +1,13 @@ -# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage.rc.global,v 1.3 2005-12-04 17:11:46 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" INSTALLDB="/var/db/mage" MAGEDIR="/usr/mage" @@ -16,42 +18,159 @@ BINDIR="${BUILDDIR}/builded" SMAGESCRIPTSDIR="/var/cache/mage/smage" -# set default install root to / +# Set default install root to / : ${MROOT=""} -# default options -PKGSUFFIX="mpk" -VERBOSE="on" -MAGEDEBUG="off" -ARCH="i686" -: ${MAGE_UNINSTALL_TIMEOUT="5"} -PACKAGES_SERVER_PATH="packages/${ARCH}" +# Set default user mage.rc +: ${MAGERC="/etc/mage.rc"} -# default build options -CHOST="${ARCH}-pc-linux-gnu" -CFLAGS="-mtune=${ARCH} -O2 -pipe" +# 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}" + +# Arch specific options and build flags +ARCH="@@ARCH@@" +CHOST="@@ARCH@@-pc-linux-gnu" +CFLAGS="-mtune=@@MTUNE@@ -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://downloads.sf.net http://garr.dl.sourceforge.net/sourceforge http://dfn.dl.sourceforge.net/sourceforge http://mesh.dl.sourceforge.net/sourceforge http://belnet.dl.sourceforge.net/sourceforge " +GNOME_MIRRORS="http://ftp.gnome.org/pub/gnome/sources/ ftp://ftp.gnome.org/pub/gnome/sources/" +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"} +# 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" + +# 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-source 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 +# * !pkgbuild 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 +# pkgdistrotag|!pkgdistrotag +# * Appends the distribution codename-tag to the builded packages +# * Do not touch this feature, for internal use only!! +# * 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 +# resume|!resume +# * resumes a build from the last successful step +# * Do not touch this feature, for internal use only!! +# * 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!! +# static|!static +# * Let mconfigure() enable or disable compilation of static libraries +# * 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 +# 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" "!pkgdistrotag" "purge" "!qalint" "regentree" "!resume" "!srcpkgbuild" "!srcpkgtarball" "!static" "!stepbystep" "strip" "!verbose" )