Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3034 - (show annotations) (download)
Fri Jun 30 12:09:53 2017 UTC (6 years, 9 months ago) by niro
File size: 8013 byte(s)
-updated and hardened default compiler flags, not using -mtune= but always 'generic
1 # mage.rc.global - global configuration file for mage
2 # $Id$
3 #
4 # !! Do not edit this file, it will be overwritten on update. !!
5 # !! Use /etc/mage.rc instead to override any settings. !!
6 #
7
8 ## Default locations
9 PKGDIR="/var/cache/mage/packages"
10 SRCPKGDIR="/var/cache/mage/packages/sources"
11 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 SMAGELOGDIR="/var/log/smage"
21
22 # Set default install root to /
23 : ${MROOT=""}
24
25 # Set default user mage.rc
26 : ${MAGERC="/etc/mage.rc"}
27
28 # Distribution settings
29 # Internal default: MAGE_DISTRIBUTION=stable
30 # stable | testing | unstable
31 : ${MAGE_DISTRIBUTION="stable"}
32
33 # Default options
34 : ${MAGE_UNINSTALL_TIMEOUT="3"}
35
36 # 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 MAGE_TREE_DEST="${MAGEDIR}"
39
40 # Arch specific options and build flags
41 ARCH="@@ARCH@@"
42 CHOST="@@ARCH@@-pc-linux-gnu"
43 CPPFLAGS="-D_FORTIFY_SOURCE=2"
44 CFLAGS="-march=@@MARCH@@ -mtune=@@MTUNE@@ -O2 -pipe -fstack-protector-strong"
45 CXXFLAGS="${CFLAGS}"
46 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
47 MAKEOPTS="-j2"
48
49 # 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 # Strip options
55 STRIP_DYN_LIB="--strip-unneeded"
56 STRIP_DYN_BIN="--strip-all"
57 STRIP_STATIC_LIB="--strip-debug"
58
59 # Extension defaults
60 # Do not modify these settings unless you know what you are doing
61 PKGSUFFIX="mpk"
62 SRCPKGSUFFIX="mpks"
63 MAGESUFFIX="mage"
64 SMAGESUFFIX="smage2"
65
66 # 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 PURGE_TARGETS=( usr/share/info/dir usr/share/info/dir.gz )
70
71 # Distcc specific settings
72 #DISTCC_HOSTS=""
73 DISTCC_DIR="${BUILDDIR}/.distcc"
74 DISTCC_VERBOSE="0"
75 DISTCC_LOG="/var/log/distcc.log"
76
77 # Default mirrors and download options
78 MIRRORS="http://magellan-linux.de/magellan"
79 GNU_MIRRORS="ftp://ftp.gnu.org/pub/gnu ftp://ftp.cs.tu-berlin.de/pub/gnu"
80 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 GNOME_MIRRORS="http://ftp.gnome.org/pub/gnome/sources/ ftp://ftp.gnome.org/pub/gnome/sources/"
82 KDE_MIRRORS="ftp://ftp.kde.org/pub/kde/stable ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.kde.org/pub/kde/stable"
83 RSYNC="rsync://magellan-linux.de/mage-ix86"
84 SMAGE2RSYNC="rsync://magellan-linux.de/smage-cvs"
85 PACKAGES_SERVER_PATH="packages/${ARCH}"
86
87 # 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 # Default update method for the package database - 'rsync' or 'tarball' method can be selected
92 MAGE_UPDATE_METHOD="tarball"
93
94 # 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 # icecc|!icecc
124 # * Enable icecc support in smage
125 # * icecream must be installed to use this feature
126 # * For developers only
127 # kernelsrcunpack|!kernelsrcunpack
128 # * Automatically unpacks any kernel-source tarballs to /usr/src
129 # 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 # * !pkgbuild feature is only intended to be used for special-cases,
138 # * 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 # 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 # 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 # 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 # srcpkgbuild|!srcpkgbuild
164 # * Enable this to create source-tarballs on-the-fly when building packages
165 # * For developers only
166 # srcpkgtarball|!srcpkgtarball
167 # * Let smage build the package from a src tarball .mpks
168 # * Do not touch this feature, for internal use only!!
169 # 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 # 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 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" )