Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3178 - (hide annotations) (download)
Mon Jul 31 09:05:47 2023 UTC (10 months, 2 weeks ago) by niro
File size: 8297 byte(s)
-new x86_64 lib layout lib/lib32 and honor abis specific libdir/chost with mlibdir() and CHOST
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 3178 # ABI specific libdir
41     ABI_X86_LIBDIR="@@ABI_X86_LIBDIR@@"
42     ABI_X86_64_LIBDIR="@@ABI_X86_64_LIBDIR@@"
43     ABI_DEFAULT_LIBDIR="@@ABI_DEFAULT_LIBDIR@@"
44    
45     # ABI specific CHOST
46     ABI_X86_CHOST="@@ABI_X86_CHOST@@"
47     ABI_X86_64_CHOST="@@ABI_X86_64_CHOST@@"
48     ABI_DEFAULT_CHOST="@@ABI_DEFAULT_CHOST@@"
49    
50 niro 1553 # Arch specific options and build flags
51 niro 1605 ARCH="@@ARCH@@"
52 niro 3178 CHOST="${ABI_DEFAULT_CHOST}"
53 niro 3034 CPPFLAGS="-D_FORTIFY_SOURCE=2"
54     CFLAGS="-march=@@MARCH@@ -mtune=@@MTUNE@@ -O2 -pipe -fstack-protector-strong"
55 niro 226 CXXFLAGS="${CFLAGS}"
56 niro 3034 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
57 niro 226 MAKEOPTS="-j2"
58    
59 niro 1613 # cross-compile host
60     # set this only if you want to crosscompile
61     # you need also a cross-compile toolchain installed
62     #CTARGET="i486-pc-linux-gnu"
63    
64 niro 1543 # Strip options
65     STRIP_DYN_LIB="--strip-unneeded"
66     STRIP_DYN_BIN="--strip-all"
67     STRIP_STATIC_LIB="--strip-debug"
68    
69 niro 1555 # Extension defaults
70 niro 2045 # Do not modify these settings unless you know what you are doing
71 niro 1555 PKGSUFFIX="mpk"
72     SRCPKGSUFFIX="mpks"
73     MAGESUFFIX="mage"
74     SMAGESUFFIX="smage2"
75    
76 niro 1583 # Purge targets
77     # Array with all files which shall be removed from every package on build-time
78     # Do not touch these settings if you don't know what you are doing
79 niro 1612 PURGE_TARGETS=( usr/share/info/dir usr/share/info/dir.gz )
80 niro 1583
81 niro 1542 # Distcc specific settings
82 niro 226 #DISTCC_HOSTS=""
83     DISTCC_DIR="${BUILDDIR}/.distcc"
84     DISTCC_VERBOSE="0"
85     DISTCC_LOG="/var/log/distcc.log"
86    
87 niro 1553 # Default mirrors and download options
88 niro 226 MIRRORS="http://magellan-linux.de/magellan"
89 niro 3177 GNU_MIRRORS="https://ftp.gnu.org/pub/gnu ftp://ftp.cs.tu-berlin.de/pub/gnu"
90 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 "
91 niro 459 GNOME_MIRRORS="http://ftp.gnome.org/pub/gnome/sources/ ftp://ftp.gnome.org/pub/gnome/sources/"
92 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"
93 niro 226 RSYNC="rsync://magellan-linux.de/mage-ix86"
94     SMAGE2RSYNC="rsync://magellan-linux.de/smage-cvs"
95 niro 1556 PACKAGES_SERVER_PATH="packages/${ARCH}"
96 niro 288
97 niro 1556 # Default fetch options for rsync
98     RSYNC_FETCH_OPTIONS="--recursive --links --perms --times --devices --timeout=600 --verbose --compress --progress --stats --delete --delete-after"
99     # Default fetch options for wget
100     WGET_FETCH_OPTIONS="--passive-ftp --tries 3 --continue --progress bar"
101 niro 2273 # Default update method for the package database - 'rsync' or 'tarball' method can be selected
102     MAGE_UPDATE_METHOD="tarball"
103 niro 1556
104 niro 1584 # All supported global features in mage/smage:
105     # You can negate any feature with a ! in front
106     # Please use the MAGE_FEATURES array to override these settings in local mage.rc
107     #
108     # autosvc|!autosvc
109     # * Automatically start/stop/restarts services on installation
110     # buildlog|!buildlog
111     # * Enables logging of smage builds
112     # * Currently for src_pepare, src_compile, src_install functions only
113     # * For developers only
114     # ccache|!ccache
115     # * Enable ccache support in smage
116     # * ccache must be installed to use this feature
117     # * For developers only
118     # check|!check
119     # * Runs the check function src_check() after completing src_compile()
120     # * For developers only
121     # compressdoc|!compressdoc
122     # * Enables compression of man, info and other doc files for minimizing diskspace usage
123     # * For developers only
124     # debug|!debug
125     # * Enables or disables debug mode
126     # * Do not touch this feature if you don't know what you are doing
127     # * The debug mode may break things like resolving dependencies
128     # * For developers only
129     # distcc|!distcc
130     # * Enable distcc support in smage
131     # * distcc must be installed to use this feature
132     # * For developers only
133 niro 2159 # icecc|!icecc
134     # * Enable icecc support in smage
135     # * icecream must be installed to use this feature
136     # * For developers only
137 niro 1584 # kernelsrcunpack|!kernelsrcunpack
138 niro 1677 # * Automatically unpacks any kernel-source tarballs to /usr/src
139 niro 1584 # libtool|!libtool
140     # * Includes .la libtool archives in builded packages, to remove them set !libtool
141     # * For developers only
142     # linuxsymlink|!linuxsymlink
143     # * Automatically updates the /usr/src/linux symlink to the installed kernel-sources version
144     # * Requires the kernelsrcunpack feature to be activated
145     # pkgbuild|!pkgbuild
146     # * Enables or disables the package build process
147 niro 2044 # * !pkgbuild feature is only intended to be used for special-cases,
148 niro 1584 # * like virtuals and not to be a global feature. Use this with care.
149     # * Only disable this feature, if you know what you are doing!
150     # * For developers only
151 niro 1649 # pkgdistrotag|!pkgdistrotag
152     # * Appends the distribution codename-tag to the builded packages
153     # * Do not touch this feature, for internal use only!!
154     # * For developers only
155 niro 1584 # purge|!purge
156     # * Purges files specified by PURGE_TARGETS array from every package build
157     # * Do not touch this feature if you don't know what you are doing
158     # * For developers only
159     # qalint|!qalint
160     # * Quality assurance checks will be run while building a package
161     # * Magellan lint utilities must be installed to use this feature
162     # * Only enable this feature for QA purposes only,
163     # * pkgbuild may fail even on non-fatal errors and warnings
164     # * For developers only
165     # regentree|!regentree
166     # * Automatically import packages in the mage-tree after building with smage
167     # * The target mage-tree can be defined with the MAGE_TREE_DEST variable
168     # * For developers only
169 niro 1617 # resume|!resume
170     # * resumes a build from the last successful step
171     # * Do not touch this feature, for internal use only!!
172     # * For developers only
173 niro 1584 # srcpkgbuild|!srcpkgbuild
174     # * Enable this to create source-tarballs on-the-fly when building packages
175     # * For developers only
176     # srcpkgtarball|!srcpkgtarball
177 niro 1629 # * Let smage build the package from a src tarball .mpks
178 niro 1584 # * Do not touch this feature, for internal use only!!
179 niro 1629 # static|!static
180     # * Let mconfigure() enable or disable compilation of static libraries
181     # * For developers only
182     # stepbystep|!stepbystep
183     # * Enables step-by-step execution of the smage-file for debugging
184     # * Currently for src_pepare(), src_compile(), src_check(), src_install() functions
185     # * For developers only
186 niro 1584 # strip|!strip
187     # * Enables stripping to remove debugging symbols of resulting binaries
188     # * For developers only
189     # verbose|!verbose
190     # * Enables or disables verbose mode
191     #
192     # To individually change these features within a smage file, you can use the msetfeature() function
193     #
194 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" )