source: BLFS/envars.conf@ df97e68

2.4 ablfs-more legacy trunk
Last change on this file since df97e68 was 342c862, checked in by Pierre Labastie <pierre@…>, 7 years ago

Merge new_feature branch r3884 to3886:

  • Adapt BLFS/envars.conf to modern BLFS books
  • Fix try order for downloading BLFS packages
  • Fixes to use the XORG Legacy page in BLFS
  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[6d0dbc3]1#####
2#
3# Configuration file for the BLFS module
4#
5# $Id$
6#
[f65d3cb]7# Set default envars used in the build scripts
[6d0dbc3]8#
9#####
10
[ecdc3b6]11#======== Common envars ==========
[6d0dbc3]12
[342c862]13#--- The sources directory.
14# This directory contains sub directories (one for each package), where
15# packages are stored, unpacked, and compiled.
16export SRC_DIR=/sources
[4a33ef0]17
[6d0dbc3]18#--- The local repository for packages/file
19# Any missing file will be downloaded and archived here,
[342c862]20# if the user has the right priviledges. Can be the same as SRC_DIR
[e576789]21export SRC_ARCHIVE=/sources
[6d0dbc3]22
[342c862]23#--- Set a well-known working locale when building software
24# Note that an UTF-8 locale may be needed for some packages,
25# but normally it is set in the package instructions.
26# Furthermore, LANG may be set in /etc/profile, which is
27# sourced at the end of this file.
28export LC_ALL=C
29
30#--- Server used if the file isn't found in SRC_ARCHIVE or SRC_DIR,
31# and cannot be downloaded from upstream.
[6d0dbc3]32#
33# The server path MUST be set as listed in
[342c862]34# http://www.linuxfromscratch.org/blfs/download.html.
35# Note that despite the name of the variable, it can be an http url.
36export FTP_SERVER=http://ftp.osuosl.org/pub/blfs/
[f65d3cb]37
[342c862]38### Currently not used in scripts ###
[e576789]39# Use a server close to you for Xorg (see http://wiki.x.org/wiki/Mirrors)
[342c862]40# export FTP_X_SERVER=ftp://mirror.cict.fr/x.org/
[6f48f76]41
[fdd3b04]42#======== Optimizations =============
43
44# Global optimization settings can be placed here. This settings can be
[342c862]45# overriden by settings in the packages build scripts.
[fdd3b04]46
47# WARNING: The use of build optimizations may be dangerous.
48# You should know what you are doing and be sure that the
49# optimization settings placed below are what you want.
50# It there are build issues or the system doesn't work as
51# expected, please rebuild without optimizations before
52# asking for support.
53
[e576789]54export MAKEFLAGS="-j5"
[fdd3b04]55
[4a33ef0]56#export CFLAGS="-O3 -pipe"
57#export CXXFLAGS=$CFLAGS
58#export LDFLAGS="-s"
[fdd3b04]59
[4a33ef0]60#export OTHER_CFLAGS=$CFLAGS
61#export OTHER_CXXFLAGS=$CXXFLAGS
62#export OTHER_LDFLAGS=$LDFLAGS
[fdd3b04]63
[e576789]64#======== Environment settings ========
65
[342c862]66# The prefered way to setup environment variables nowadays
67# is to set them in /etc/profile{,.d/*.sh}.
68# It is recommended to source /etc/profile in this file
69# since a package may add some new variables in there,
70# which may be needed later in dependant packages.
[e576789]71
72if [ -r /etc/profile ]; then source /etc/profile; fi
[342c862]73
74#======== Package management ========
75
76# We need the functions in "packInstall.sh" when installing a package,
77# if package management is requested. Note that we have no way to know
78# whether package management is requested for a given build.
79# Furthermore, "sudo -E" exports variables, but not functions from
80# the environment, and sudo needs to be called before porg, due
81# to porg limitations. So we just export the location of the file
82# where the functions are defined, and we'll source it just before
83# installing.
84
85export PACK_INSTALL=/blfs_root/packInstall.sh # change as needed
Note: See TracBrowser for help on using the repository browser.