Magellan Linux

Annotation of /trunk/mage/usr/lib/mage/mage.rc.global.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3034 - (hide annotations) (download)
Fri Jun 30 12:09:53 2017 UTC (6 years, 10 months ago) by niro
File size: 8013 byte(s)
-updated and hardened default compiler flags, not using -mtune= but always 'generic
1 niro 226 # mage.rc.global - global configuration file for mage
2 niro 1552 # $Id$
3 niro 226 #
4 niro 1552 # !! Do not edit this file, it will be overwritten on update. !!
5     # !! Use /etc/mage.rc instead to override any settings. !!
6     #
7 niro 226
8 niro 1542 ## Default locations
9 niro 226 PKGDIR="/var/cache/mage/packages"
10 niro 407 SRCPKGDIR="/var/cache/mage/packages/sources"
11 niro 226 BUILDDIR="/var/tmp/magebuild"
12     INSTALLDB="/var/db/mage"
13     MAGEDIR="/usr/mage"
14     MLIBDIR="/usr/lib/mage"
15     VIRTUALDB_DEFAULTS="/etc/mage-profile/virtuals.defaults"
16     VIRTUALDB_FILE="${INSTALLDB}/virtuals"
17     SOURCEDIR="/var/cache/mage/sources"
18     BINDIR="${BUILDDIR}/builded"
19     SMAGESCRIPTSDIR="/var/cache/mage/smage"
20 niro 2805 SMAGELOGDIR="/var/log/smage"
21 niro 226
22 niro 1542 # Set default install root to /
23 niro 226 : ${MROOT=""}
24    
25 niro 1542 # Set default user mage.rc
26 niro 418 : ${MAGERC="/etc/mage.rc"}
27    
28 niro 1554 # Distribution settings
29     # Internal default: MAGE_DISTRIBUTION=stable
30     # stable | testing | unstable
31     : ${MAGE_DISTRIBUTION="stable"}
32    
33 niro 1542 # Default options
34 niro 965 : ${MAGE_UNINSTALL_TIMEOUT="3"}
35 niro 1085
36 niro 1584 # Use MAGE_FEATURE 'regentree' to enable on-the-fly regeneration of the mage tree.
37     # MAGE_TREE_DEST must be also set. You should set it to the same value as MAGEDIR.
38 niro 1557 MAGE_TREE_DEST="${MAGEDIR}"
39    
40 niro 1553 # Arch specific options and build flags
41 niro 1605 ARCH="@@ARCH@@"
42 niro 1685 CHOST="@@ARCH@@-pc-linux-gnu"
43 niro 3034 CPPFLAGS="-D_FORTIFY_SOURCE=2"
44     CFLAGS="-march=@@MARCH@@ -mtune=@@MTUNE@@ -O2 -pipe -fstack-protector-strong"
45 niro 226 CXXFLAGS="${CFLAGS}"
46 niro 3034 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
47 niro 226 MAKEOPTS="-j2"
48    
49 niro 1613 # cross-compile host
50     # set this only if you want to crosscompile
51     # you need also a cross-compile toolchain installed
52     #CTARGET="i486-pc-linux-gnu"
53    
54 niro 1543 # Strip options
55     STRIP_DYN_LIB="--strip-unneeded"
56     STRIP_DYN_BIN="--strip-all"
57     STRIP_STATIC_LIB="--strip-debug"
58    
59 niro 1555 # Extension defaults
60 niro 2045 # Do not modify these settings unless you know what you are doing
61 niro 1555 PKGSUFFIX="mpk"
62     SRCPKGSUFFIX="mpks"
63     MAGESUFFIX="mage"
64     SMAGESUFFIX="smage2"
65    
66 niro 1583 # Purge targets
67     # Array with all files which shall be removed from every package on build-time
68     # Do not touch these settings if you don't know what you are doing
69 niro 1612 PURGE_TARGETS=( usr/share/info/dir usr/share/info/dir.gz )
70 niro 1583
71 niro 1542 # Distcc specific settings
72 niro 226 #DISTCC_HOSTS=""
73     DISTCC_DIR="${BUILDDIR}/.distcc"
74     DISTCC_VERBOSE="0"
75     DISTCC_LOG="/var/log/distcc.log"
76    
77 niro 1553 # Default mirrors and download options
78 niro 226 MIRRORS="http://magellan-linux.de/magellan"
79 niro 438 GNU_MIRRORS="ftp://ftp.gnu.org/pub/gnu ftp://ftp.cs.tu-berlin.de/pub/gnu"
80 niro 1676 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 "
81 niro 459 GNOME_MIRRORS="http://ftp.gnome.org/pub/gnome/sources/ ftp://ftp.gnome.org/pub/gnome/sources/"
82 niro 761 KDE_MIRRORS="ftp://ftp.kde.org/pub/kde/stable ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.kde.org/pub/kde/stable"
83 niro 226 RSYNC="rsync://magellan-linux.de/mage-ix86"
84     SMAGE2RSYNC="rsync://magellan-linux.de/smage-cvs"
85 niro 1556 PACKAGES_SERVER_PATH="packages/${ARCH}"
86 niro 288
87 niro 1556 # Default fetch options for rsync
88     RSYNC_FETCH_OPTIONS="--recursive --links --perms --times --devices --timeout=600 --verbose --compress --progress --stats --delete --delete-after"
89     # Default fetch options for wget
90     WGET_FETCH_OPTIONS="--passive-ftp --tries 3 --continue --progress bar"
91 niro 2273 # Default update method for the package database - 'rsync' or 'tarball' method can be selected
92     MAGE_UPDATE_METHOD="tarball"
93 niro 1556
94 niro 1584 # All supported global features in mage/smage:
95     # You can negate any feature with a ! in front
96     # Please use the MAGE_FEATURES array to override these settings in local mage.rc
97     #
98     # autosvc|!autosvc
99     # * Automatically start/stop/restarts services on installation
100     # buildlog|!buildlog
101     # * Enables logging of smage builds
102     # * Currently for src_pepare, src_compile, src_install functions only
103     # * For developers only
104     # ccache|!ccache
105     # * Enable ccache support in smage
106     # * ccache must be installed to use this feature
107     # * For developers only
108     # check|!check
109     # * Runs the check function src_check() after completing src_compile()
110     # * For developers only
111     # compressdoc|!compressdoc
112     # * Enables compression of man, info and other doc files for minimizing diskspace usage
113     # * For developers only
114     # debug|!debug
115     # * Enables or disables debug mode
116     # * Do not touch this feature if you don't know what you are doing
117     # * The debug mode may break things like resolving dependencies
118     # * For developers only
119     # distcc|!distcc
120     # * Enable distcc support in smage
121     # * distcc must be installed to use this feature
122     # * For developers only
123 niro 2159 # icecc|!icecc
124     # * Enable icecc support in smage
125     # * icecream must be installed to use this feature
126     # * For developers only
127 niro 1584 # kernelsrcunpack|!kernelsrcunpack
128 niro 1677 # * Automatically unpacks any kernel-source tarballs to /usr/src
129 niro 1584 # libtool|!libtool
130     # * Includes .la libtool archives in builded packages, to remove them set !libtool
131     # * For developers only
132     # linuxsymlink|!linuxsymlink
133     # * Automatically updates the /usr/src/linux symlink to the installed kernel-sources version
134     # * Requires the kernelsrcunpack feature to be activated
135     # pkgbuild|!pkgbuild
136     # * Enables or disables the package build process
137 niro 2044 # * !pkgbuild feature is only intended to be used for special-cases,
138 niro 1584 # * like virtuals and not to be a global feature. Use this with care.
139     # * Only disable this feature, if you know what you are doing!
140     # * For developers only
141 niro 1649 # pkgdistrotag|!pkgdistrotag
142     # * Appends the distribution codename-tag to the builded packages
143     # * Do not touch this feature, for internal use only!!
144     # * For developers only
145 niro 1584 # purge|!purge
146     # * Purges files specified by PURGE_TARGETS array from every package build
147     # * Do not touch this feature if you don't know what you are doing
148     # * For developers only
149     # qalint|!qalint
150     # * Quality assurance checks will be run while building a package
151     # * Magellan lint utilities must be installed to use this feature
152     # * Only enable this feature for QA purposes only,
153     # * pkgbuild may fail even on non-fatal errors and warnings
154     # * For developers only
155     # regentree|!regentree
156     # * Automatically import packages in the mage-tree after building with smage
157     # * The target mage-tree can be defined with the MAGE_TREE_DEST variable
158     # * For developers only
159 niro 1617 # resume|!resume
160     # * resumes a build from the last successful step
161     # * Do not touch this feature, for internal use only!!
162     # * For developers only
163 niro 1584 # srcpkgbuild|!srcpkgbuild
164     # * Enable this to create source-tarballs on-the-fly when building packages
165     # * For developers only
166     # srcpkgtarball|!srcpkgtarball
167 niro 1629 # * Let smage build the package from a src tarball .mpks
168 niro 1584 # * Do not touch this feature, for internal use only!!
169 niro 1629 # static|!static
170     # * Let mconfigure() enable or disable compilation of static libraries
171     # * For developers only
172     # stepbystep|!stepbystep
173     # * Enables step-by-step execution of the smage-file for debugging
174     # * Currently for src_pepare(), src_compile(), src_check(), src_install() functions
175     # * For developers only
176 niro 1584 # strip|!strip
177     # * Enables stripping to remove debugging symbols of resulting binaries
178     # * For developers only
179     # verbose|!verbose
180     # * Enables or disables verbose mode
181     #
182     # To individually change these features within a smage file, you can use the msetfeature() function
183     #
184 niro 2173 MAGE_FEATURES_GLOBAL=( "autosvc" "buildlog" "ccache" "check" "compressdoc" "!debug" "!distcc" "!icecc" "kernelsrcunpack" "!libtool" "linuxsymlink" "pkgbuild" "!pkgdistrotag" "purge" "!qalint" "regentree" "!resume" "!srcpkgbuild" "!srcpkgtarball" "!static" "!stepbystep" "strip" "!verbose" )