| 1 |
# |
| 2 |
# This file will have to be sourced where needed |
| 3 |
# |
| 4 |
|
| 5 |
# Unset all optional variables first to start from a clean state |
| 6 |
unset NONUS || true |
| 7 |
unset FORCENONUSONCD1 || true |
| 8 |
unset NONFREE || true |
| 9 |
unset CONTRIB || true |
| 10 |
unset EXTRANONFREE || true |
| 11 |
unset LOCAL || true |
| 12 |
unset LOCALDEBS || true |
| 13 |
unset SECURED || true |
| 14 |
unset SECURITY || true |
| 15 |
unset BOOTDIR || true |
| 16 |
unset BOOTDISKS || true |
| 17 |
unset SYMLINK || true |
| 18 |
unset COPYLINK || true |
| 19 |
unset MKISOFS || true |
| 20 |
unset MKISOFS_OPTS || true |
| 21 |
unset ISOLINUX || true |
| 22 |
unset EXCLUDE || true |
| 23 |
unset SRCEXCLUDE || true |
| 24 |
unset NORECOMMENDS || true |
| 25 |
unset NOSUGGESTS || true |
| 26 |
unset IMAGESUMS || true |
| 27 |
unset JIGDOCMD || true |
| 28 |
unset JIGDOTEMPLATEURL || true |
| 29 |
#unset JIGDOFALLBACKURLS || true |
| 30 |
unset JIGDOINCLUDEURLS || true |
| 31 |
unset JIGDOSCRIPT || true |
| 32 |
unset JIGDO_OPTS || true |
| 33 |
#unset DEFBINSIZE || true |
| 34 |
#unset DEFSRCSIZE || true |
| 35 |
unset FASTSUMS || true |
| 36 |
unset PUBLISH_URL || true |
| 37 |
unset PUBLISH_NONUS_URL || true |
| 38 |
unset PUBLISH_PATH || true |
| 39 |
unset UDEB_INCLUDE || true |
| 40 |
unset UDEB_EXCLUDE || true |
| 41 |
unset BASE_INCLUDE || true |
| 42 |
unset BASE_EXCLUDE || true |
| 43 |
#unset INSTALLER_CD || true |
| 44 |
#under FORCE_FIRMWARE || true |
| 45 |
|
| 46 |
# The debian-cd dir |
| 47 |
# Where I am (hoping I'm in the debian-cd dir) |
| 48 |
export BASEDIR=`pwd` |
| 49 |
|
| 50 |
# Building trixie image set ... |
| 51 |
export CODENAME=trixie |
| 52 |
|
| 53 |
if [ ! "$DI_CODENAME" ] |
| 54 |
then |
| 55 |
export DI_CODENAME=$CODENAME |
| 56 |
fi |
| 57 |
|
| 58 |
# Version number, "2.2 r0", "2.2 r1" etc. |
| 59 |
#export DEBVERSION="Lenny-DI-rc2" |
| 60 |
export DEBVERSION="testing" |
| 61 |
|
| 62 |
# Official or non-official set. |
| 63 |
# NOTE: THE "OFFICIAL" DESIGNATION IS ONLY ALLOWED FOR IMAGES AVAILABLE |
| 64 |
# ON THE OFFICIAL DEBIAN CD WEBSITE http://cdimage.debian.org |
| 65 |
#export OFFICIAL="Unofficial" |
| 66 |
export OFFICIAL="Official Snapshot" |
| 67 |
#export OFFICIAL="Official RC" |
| 68 |
#export OFFICIAL="Official" |
| 69 |
|
| 70 |
# ... for arch |
| 71 |
if [ ! "$ARCH" ] |
| 72 |
then |
| 73 |
export ARCH=`dpkg --print-architecture` |
| 74 |
fi |
| 75 |
|
| 76 |
# IMPORTANT : The 4 following paths must be on the same partition/device. |
| 77 |
# If they aren't then you must set COPYLINK below to 1. This |
| 78 |
# takes a lot of extra room to create the sandbox for the ISO |
| 79 |
# images, however. Also, if you are using an NFS partition for |
| 80 |
# some part of this, you must use this option. |
| 81 |
# Paths to the mirrors |
| 82 |
if [ "$MIRROR"x = ""x ] ; then |
| 83 |
export MIRROR=/srv/cdbuilder.debian.org/src/ftp/debian |
| 84 |
fi |
| 85 |
|
| 86 |
NUM_ARCHES=`echo $ARCH | wc -w` |
| 87 |
if [ "$NUM_ARCHES"x = "1"x ] ; then |
| 88 |
OUTARCH=$ARCH |
| 89 |
else |
| 90 |
OUTARCH=multi-arch |
| 91 |
fi |
| 92 |
|
| 93 |
# Path of the temporary directory |
| 94 |
export TDIR=/srv/cdbuilder.debian.org/src/deb-cd/tmp/"$INSTALLER_CD""$DI""$OUTARCH" |
| 95 |
|
| 96 |
# Path where the images will be written |
| 97 |
if [ "$OUT"x = ""x ] ; then |
| 98 |
export OUT=/srv/cdbuilder.debian.org/dst/deb-cd/out/"$INSTALLER_CD""$DI""$OUTARCH" |
| 99 |
fi |
| 100 |
|
| 101 |
# Where we keep the temporary apt stuff. |
| 102 |
# This cannot reside on an NFS mount. |
| 103 |
export APTTMP=$TDIR/apt |
| 104 |
|
| 105 |
# Do I want to have NONFREE merged in the CD set |
| 106 |
# export NONFREE=1 |
| 107 |
|
| 108 |
# Do I want to have CONTRIB merged in the CD set |
| 109 |
export CONTRIB=1 |
| 110 |
|
| 111 |
# Where should I look for non-free packages? |
| 112 |
export NONFREE_COMPONENTS="non-free-firmware" |
| 113 |
|
| 114 |
# Do I want to have NONFREE on a separate CD (the last CD of the CD set) |
| 115 |
# WARNING: Don't use NONFREE and EXTRANONFREE at the same time ! |
| 116 |
# export EXTRANONFREE=1 |
| 117 |
|
| 118 |
# Do I want to force (potentially non-free) firmware packages to be |
| 119 |
# placed on disc 1? Will make installation much easier if systems |
| 120 |
# contain hardware that depends on this firmware |
| 121 |
export FORCE_FIRMWARE=1 |
| 122 |
|
| 123 |
# If we have non-free stuff included, |
| 124 |
if [ "$NONFREE"x = "1"x ]; then |
| 125 |
export OFFICIAL="Unofficial" |
| 126 |
fi |
| 127 |
|
| 128 |
# If you have a $MIRROR/dists/$CODENAME/local/binary-$ARCH dir with |
| 129 |
# local packages that you want to put on the CD set then |
| 130 |
# uncomment the following line |
| 131 |
# export LOCAL=1 |
| 132 |
|
| 133 |
# If your local packages are not under $MIRROR, but somewhere else, |
| 134 |
# you can uncomment this line and edit to to point to a directory |
| 135 |
# containing dists/$CODENAME/local/binary-$ARCH |
| 136 |
# export LOCALDEBS=/home/joey/debian/va/debian |
| 137 |
|
| 138 |
# If you want a <codename>-secured tree with a copy of the signed |
| 139 |
# Release.gpg and files listed by this Release file, then |
| 140 |
# uncomment this line |
| 141 |
# export SECURED=1 |
| 142 |
|
| 143 |
# Where to find the security patches. This directory should be the |
| 144 |
# top directory of a security.debian.org mirror. |
| 145 |
#export SECURITY="$TOPDIR"/debian/debian-security |
| 146 |
|
| 147 |
# Sparc only : bootdir (location of cd.b and second.b) |
| 148 |
# export BOOTDIR=/boot |
| 149 |
|
| 150 |
# Symlink farmers should uncomment this line : |
| 151 |
# export SYMLINK=1 |
| 152 |
|
| 153 |
# Use this to force copying the files instead of symlinking or hardlinking |
| 154 |
# them. This is useful if your destination directories are on a different |
| 155 |
# partition than your source files. |
| 156 |
# export COPYLINK=1 |
| 157 |
|
| 158 |
# Choose the checksum algorithm used in jigdo and template |
| 159 |
# files. Older jigdo tools can only support md5; but we want to move |
| 160 |
# to sha256 as a better checksum. Depends on xorriso 1.5.3+ to support |
| 161 |
# sha256 |
| 162 |
export JIGDO_CHECKSUM="sha256" |
| 163 |
|
| 164 |
# Options |
| 165 |
#export MKISOFS="$BASEDIR/../mkisofs/usr/bin/mkisofs" |
| 166 |
#export MKISOFS="$BASEDIR/../genisoimage/usr/bin/genisoimage" |
| 167 |
#export MKISOFS="$BASEDIR/../genisoimage" |
| 168 |
#export MKISOFS_OPTS="-jigdo-template-compress bzip2 -r -checksum_algorithm_iso md5,sha1,sha256,sha512" |
| 169 |
#export MKISOFS_OPTS="-joliet-long -jigdo-template-compress bzip2 -r -checksum_algorithm_iso md5,sha1,sha256,sha512" #-checksum_algorithm_iso md5,sha1" |
| 170 |
# export MKISOFS_OPTS="-r" #For normal users |
| 171 |
# export MKISOFS_OPTS="-r -F ." #For symlink farmers |
| 172 |
export MKISOFS="xorriso" |
| 173 |
export MKISOFS_OPTS="-as mkisofs -r -checksum_algorithm_iso sha256,sha512" |
| 174 |
|
| 175 |
# Override specifically for powerpc builds |
| 176 |
export powerpc_MKISOFS="$BASEDIR/../genisoimage" |
| 177 |
export powerpc_MKISOFS_OPTS="-joliet-long -jigdo-template-compress bzip2 -r -checksum_algorithm_iso sha256,sha512" #-checksum_algorithm_iso md5,sha1" |
| 178 |
|
| 179 |
# ISOLinux support for multiboot on CD1 for i386 |
| 180 |
export ISOLINUX=1 |
| 181 |
|
| 182 |
# uncomment this to if you want to see more of what the Makefile is doing |
| 183 |
export VERBOSE_MAKE=1 |
| 184 |
|
| 185 |
# The maximum size allowed for an individual package, in bytes; if |
| 186 |
# larger than this, it will be excluded (and all dependents, of |
| 187 |
# course) |
| 188 |
#export MAX_PKG_SIZE=600000000 |
| 189 |
|
| 190 |
# uncoment this to make build_all.sh try to build a simple CD image if |
| 191 |
# the proper official CD run does not work |
| 192 |
#ATTEMPT_FALLBACK=yes |
| 193 |
|
| 194 |
if [ "$DISKTYPE"x = ""x ] ; then |
| 195 |
DISKTYPE=CD |
| 196 |
fi |
| 197 |
export DISKTYPE |
| 198 |
|
| 199 |
# List of languages for which language tasks from tasksel should be |
| 200 |
# included. See tasks/README.tasksel for further info. |
| 201 |
export TASK_LANGLIST=tasksel_d-i.languages |
| 202 |
|
| 203 |
# We don't want certain packages to take up space on CD1... |
| 204 |
#export EXCLUDE1=exclude |
| 205 |
# ...but they are okay for other CDs (UNEXCLUDEx == will be included on CD x if not already covered) |
| 206 |
#export UNEXCLUDE2=unexclude-CD2 |
| 207 |
# Any packages listed in EXCLUDE but not in any UNEXCLUDE will be |
| 208 |
# excluded completely. |
| 209 |
|
| 210 |
# We also exclude some source packages |
| 211 |
#export SRCEXCLUDE=exclude-src |
| 212 |
|
| 213 |
# Set this if the recommended packages should be skipped when adding |
| 214 |
# package on the CD. The default is 'false'. |
| 215 |
export NORECOMMENDS=0 |
| 216 |
|
| 217 |
# Set this if the suggested packages should be skipped when adding |
| 218 |
# package on the CD. The default is 'true'. |
| 219 |
#export NOSUGGESTS=1 |
| 220 |
|
| 221 |
# Set to 1 to generate checksum files for generated images |
| 222 |
export IMAGESUMS=1 |
| 223 |
|
| 224 |
# We may have to extract files from packages to put them onto the CD |
| 225 |
# (e.g. bootloader files). If you make those packages (and their |
| 226 |
# sources) available somewhere, list it here so that README.source |
| 227 |
# can point to it |
| 228 |
export ARCHIVE_EXTRACTED_SOURCES="http://cdimage.debian.org/cdimage/cd-sources/" |
| 229 |
|
| 230 |
# Produce iso/jigdo files: specify how many iso/jigdo files should be |
| 231 |
# produced in your set. If not set or when the value is "ALL" they will |
| 232 |
# be created for all images. One of the variables can be set to zero if |
| 233 |
# either iso or jigdo files are not wanted, but not both. |
| 234 |
# Replaces the old "DOJIGDO" setting with something much more flexible. |
| 235 |
#export MAXISOS=0 |
| 236 |
#export MAXJIGDOS=0 |
| 237 |
|
| 238 |
# Space-separated list of "include URLs" to add to the .jigdo file. |
| 239 |
# The included files are used to provide an up-to-date list of Debian |
| 240 |
# mirrors to the jigdo _GUI_application_ (_jigdo-lite_ doesn't support |
| 241 |
# "[Include ...]"). |
| 242 |
export JIGDOINCLUDEURLS="http://cdimage.debian.org/debian-cd/debian-servers.jigdo" |
| 243 |
# |
| 244 |
# $JIGDOTEMPLATEURL and $JIGDOINCLUDEURLS are passed to |
| 245 |
# "tools/jigdo_header", which is used by default to generate the |
| 246 |
# [Image] and [Servers] sections of the .jigdo file. You can provide |
| 247 |
# your own script if you need the .jigdo file to contain different |
| 248 |
# data. |
| 249 |
#export JIGDOSCRIPT="myscript" |
| 250 |
|
| 251 |
# If set, use the md5sums from the main archive, rather than calculating |
| 252 |
# them locally |
| 253 |
export FASTSUMS=1 |
| 254 |
|
| 255 |
# A couple of things used only by publish_cds, so it can tweak the |
| 256 |
# jigdo files, and knows where to put the results. |
| 257 |
# You need to run publish_cds manually, it is not run by the Makefile. |
| 258 |
#export PUBLISH_URL="http://cdimage.debian.org/jigdo-area" |
| 259 |
#export PUBLISH_NONUS_URL="http://non-US.cdimage.debian.org/jigdo-area" |
| 260 |
#export PUBLISH_PATH="/home/jigdo-area/" |
| 261 |
|
| 262 |
# Specify files and directories to *exclude* from jigdo processing. These |
| 263 |
# files on each CD are expected to be different to those on the mirror, or |
| 264 |
# are often subject to change. Any files matching entries in this list will |
| 265 |
# simply be placed straight into the template file. |
| 266 |
export JIGDO_EXCLUDE="'README*' /doc/ /md5sum.txt /.disk/ /pics/ 'Release*' 'Packages*' 'Sources*'" |
| 267 |
|
| 268 |
# Specify the minimum file size to consider for jigdo processing. Any files |
| 269 |
# smaller than this will simply be placed straight into the template file. |
| 270 |
export JIGDO_OPTS="-jigdo-min-file-size 1024" |
| 271 |
|
| 272 |
for EXCL in $JIGDO_EXCLUDE |
| 273 |
do |
| 274 |
JIGDO_OPTS="$JIGDO_OPTS -jigdo-exclude $EXCL" |
| 275 |
done |
| 276 |
|
| 277 |
export IGNORE_MISSING_BOOT_SCRIPT=0 |
| 278 |
|
| 279 |
# Where to find the boot disks |
| 280 |
#export BOOTDISKS=$TOPDIR/ftp/skolelinux/boot-floppies |
| 281 |
|
| 282 |
# File with list of packages to include when fetching modules for the |
| 283 |
# first stage installer (debian-installer). One package per line. |
| 284 |
# Lines starting with '#' are comments. The package order is |
| 285 |
# important, as the packages will be installed in the given order. |
| 286 |
#export UDEB_INCLUDE="$BASEDIR"/data/$CODENAME/udeb_include |
| 287 |
|
| 288 |
# File with list of packages to exclude as above. |
| 289 |
#export UDEB_EXCLUDE="$BASEDIR"/data/$CODENAME/udeb_exclude |
| 290 |
|
| 291 |
# File with list of packages to include when running debootstrap from |
| 292 |
# the first stage installer (currently only supported in |
| 293 |
# debian-installer). One package per line. Lines starting with '#' |
| 294 |
# are comments. The package order is important, as the packages will |
| 295 |
# be installed in the given order. |
| 296 |
#export BASE_INCLUDE="$BASEDIR"/data/$CODENAME/base_include |
| 297 |
|
| 298 |
# File with list of packages to exclude as above. |
| 299 |
#export BASE_EXCLUDE="$BASEDIR"/data/$CODENAME/base_exclude |
| 300 |
|
| 301 |
# Only put the installer onto the cd (set NORECOMMENDS,... as well). |
| 302 |
# INSTALLER_CD=0: nothing special (default) |
| 303 |
# INSTALLER_CD=1: just add debian-installer (use TASK=debian-installer) |
| 304 |
# INSTALLER_CD=2: add d-i and base (use TASK=debian-installer+kernel) |
| 305 |
#export INSTALLER_CD=0 |
| 306 |
|
| 307 |
# Set to 1 to save space by omitting the release notes |
| 308 |
# If so we will link to them on the web site. |
| 309 |
export OMIT_RELEASE_NOTES=1 |
| 310 |
|
| 311 |
# Set this to override the defaul location |
| 312 |
#export RELEASE_NOTES_LOCATION="http://www.debian.org/releases/$CODENAME" |
| 313 |
|
| 314 |
case "$OFFICIAL"x in |
| 315 |
"Official"x) |
| 316 |
export OFFICIAL_VAL=2 |
| 317 |
;; |
| 318 |
"Official Beta"x|"Official Snapshot"x) |
| 319 |
export OFFICIAL_VAL=1 |
| 320 |
;; |
| 321 |
*) |
| 322 |
export OFFICIAL_VAL=0 |
| 323 |
;; |
| 324 |
esac |
| 325 |
|
| 326 |
# Base link for snapshot.debian.org or similar |
| 327 |
# "SNAPDATETIME" will be replaced at runtime with the correct data |
| 328 |
# Leave this unset to not add this entry |
| 329 |
export SNAPURL=Debian=http://snapshot.debian.org/archive/debian/SNAPDATETIME/ |
| 330 |
|
| 331 |
# Add options to wget to include support for the Debian CA, so |
| 332 |
# https://d-i.debian.org et al will work. |
| 333 |
# Add options to wget to include support for the Debian CA, so |
| 334 |
# https://d-i.debian.org et al will work. |
| 335 |
if [ -d "/etc/ssl/ca-debian" ]; then |
| 336 |
export WGET_OPTS="--ca-directory /etc/ssl/ca-debian/" |
| 337 |
fi |
| 338 |
export WGET="wget $WGET_OPTS" |
| 339 |
|
| 340 |
# Run the make_image step in parallel? Specify the number of calls to |
| 341 |
# use in parallel here if desired. Don't go too high - this *will* |
| 342 |
# thrash your IO! |
| 343 |
export PARALLEL_MAKE_IMAGE=4 |
| 344 |
|