File: options

package info (click to toggle)
pgi 0.9.6.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,792 kB
  • ctags: 801
  • sloc: sh: 4,540; python: 3,069; xml: 1,895; makefile: 1,727; perl: 1,080; ansic: 647; lisp: 151
file content (208 lines) | stat: -rw-r--r-- 5,894 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# $Progeny: options,v 1.40 2002/04/15 16:58:02 branden Exp $

# This file contains variables that need to be set for your build of the
# Debian release

# username; used mostly just for temporary directory naming
: ${USERID:=$(whoami)}
export USERID

# builder; used to identify the person who built the installer in its internal
# documentation
for ID in "$DEBEMAIL" "$EMAIL" "$USERID"; do
    if [ -n "$ID" ]; then
        FALLBACK_BUILDER="$ID"
        break
    fi
done

: ${BUILDER:=$FALLBACK_BUILDER}
export BUILDER

# path to use while building ISOs
PATH=${PGI_PATH:-/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin}
export PATH

# NOTE: Tune these parameters to meet the needs of your local setup.

# where PGI finds its own infrastructure
: ${PGI_DIR:=/usr/share/pgi}
export PGI_DIR

# customizable files keyed to each release
ETC_DIR=/etc/pgi/$CODENAME
export ETC_DIR

# the base temporary directory from which others are created (by default)
: ${BASETMPDIR:=${TMPDIR:-.}/pgi-$USERID}

# where to stuff miscellaneous temporary files
# Loopback mounts are placed here, among other things.
: ${TDIR:=$BASETMPDIR/misc}
export TDIR

# where to dump the ISO images
: ${OUT:=$BASETMPDIR/out}
export OUT

# boolean indicating whether to clean the temporary directories by default
: ${CLEAN:=0}
export CLEAN

# boolean indicating whether to clean the temporary directories after the build
# is finished; overrides the behavior of CLEAN when the build process is
# complete
: ${POST_CLEAN:=0}
export POST_CLEAN

# kernel to use for boot floppies and initrd creation
: ${KERNEL_VERSION:=$(uname -r)}
export KERNEL_VERSION

# whether to create a CD image that contains only the installer
# if set to a non-zero value, see the archive options below
: ${INSTALLER_ONLY:=0}
if [ $INSTALLER_ONLY -eq 1 ]; then
    export INSTALLER_ONLY
fi

# whether to use the system's debootstrap or not; if not, PGI's own forked
# version is used
: ${DEBIAN_DEBOOTSTRAP:=0}
if [ $DEBIAN_DEBOOTSTRAP -ne 0 ]; then
    export DEBIAN_DEBOOTSTRAP
fi

# name of PGI vendor
: ${VENDOR:=Debian}
export VENDOR

# name of PGI-based product by vendor
: ${PRODUCT:=GNU/Linux}
export PRODUCT

# name of distribution suite; e.g., for Debian, "potato", "woody", "sarge", etc.
: ${SUITE:=woody}
export SUITE

# OS release version
: ${VERSION:=3.0}
export VERSION

# string designating release's official status
: ${OFFICIAL:=Unofficial}
export OFFICIAL

# the installer uses this as a reference to the Debian package archive
: ${PGI_MIRROR:=http://archive.progeny.com/debian}
export PGI_MIRROR

# the installer uses this as an HTTP proxy server
: ${PGI_HTTP_PROXY:=}
export PGI_HTTP_PROXY

# loopback mounts (typically) require root privileges
: ${SU_CMD:=sudo}
export SU_CMD

# arguments to pass to syslinux (only used on i386)
# The example below passes the "safe, slow, and stupid" option to syslinux, but
# in our experience the "slow" is only too accurate, even on CD-ROM devices and
# despite the syslinux author's assertions to the contrary in the syslinux
# manual page.  Therefore, it is commented out by default.  You will want to
# uncomment this if your target systems have lobotomized optical drives.
# : ${SYSLINUX_OPTIONS:=-s}
export SYSLINUX_OPTIONS

# (internal use) sets environment variable RELEASE_dirname=/path/to/dir
#   This can then be used to navigate around... it's hackish, but it's needed
#   to do some stuff with the woody.hook script in cdrom/tools
#   XXX: these needs to go away or be generalized properly
for DIR in live minimal tools; do
    if [ -d /usr/share/pgi/$DIR ] ; then
        eval RELEASE_$DIR=/usr/share/pgi/$DIR
        eval export RELEASE_$DIR
    fi
done

###############################################################################
# variables controlling behavior of the package archive generation code

# CD build process uses this to locate mirror of Debian archive
: ${PGI_BUILD_MIRROR:=/archive}
export PGI_BUILD_MIRROR

# locations of additional package repositories to place in ISO image(s)
# It is assumed that this directory has a Packages.gz file directly inside.
# NOTE: This variable is presently unused.
: ${OTHER_ARCHIVES:=}
export OTHER_ARCHIVES

# whether to create archives of source packages
: ${INCLUDE_SOURCE_PACKAGES:=1}
export INCLUDE_SOURCE_PACKAGES

###############################################################################
# variables used only by debian-cd code

# This section replaces the use of debian-cd's CONF.sh, see there for
# documentation.

# where to put retrieved package files
APTTMP=$TDIR/apt
export APTTMP

# boolean indicating whether to include all packages in the archive, or just
# those included in the "tasks"
: ${COMPLETE:=0}
export COMPLETE

# boolean indicating whether to include non-free software in the ISO image(s)
: ${NONFREE:=0}
export NONFREE

: ${DEBVERSION:=$VERSION}
export DEBVERSION

: ${BASEDIR:=/usr/share/pgi/archive/debian-cd}
export BASEDIR

: ${COPYLINK:=1}
export COPYLINK

: ${VERBOSE_MAKE:=1}
export VERBOSE_MAKE

###############################################################################

: ${ARCH:=$(dpkg --print-installation-architecture)}
export ARCH

# flag indicating that this script has run to completion
export OPTIONS_FILE_SOURCED=true

###############################################################################
# These guys are private, but shared variables.  We really need a separate,
# non-configurable file for them but they can go here for now.

BUSYBOX=busybox-0.60.0
export BUSYBOX

if [ -e /lib/modules/$KERNEL_VERSION/pcmcia ]; then
    DO_PCMCIA_ARCHIVE=1
    export DO_PCMCIA_ARCHIVE
fi

# filesystem type to use for initrd (must be a writable filesystem type; i.e.,
# not cramfs)
INITRD_FS=ext2

# size of initrd filesystem, in kB
INITRD_FS_SIZE=8192

export INITRD_FS INITRD_FS_SIZE

# Local variables:
# mode: sh
# End:
# vim:ai:et:sts=4:sw=4:tw=80: