cookutils view cook.conf @ rev 610

cook: get source from mirror too
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 22 12:57:55 2013 +0200 (2013-09-22)
parents f764974d085e
children 61cdcd51454d
line source
1 # Cook packages builder configuration file
2 #
4 # SliTaz working directory
5 SLITAZ="/home/slitaz"
7 # Directory paths for cookutils DB and files.
8 WOK="$SLITAZ/wok"
9 PKGS="$SLITAZ/packages"
10 SRC="$SLITAZ/src"
11 CACHE="$SLITAZ/cache"
12 LOGS="$SLITAZ/log"
13 FEEDS="$SLITAZ/xml"
14 DATA="/usr/share/cook"
16 # System packages DB.
17 DB="/var/lib/tazpkg"
18 INSTALLED="$DB/installed"
20 # Quality Assurance (empty to disable receipt_quality).
21 QA="0"
23 # Automatically cook missing build dependencies (empty to disable).
24 AUTO_COOK=""
26 # Hg wok for setup and flavors URL for the Cooker.
27 WOK_URL="http://hg.slitaz.org/wok"
28 FLAVORS_URL="http://hg.slitaz.org/flavors"
30 # Cooker URL for RSS feed link (http://localhost/cgi-bin/cooker/cooker.cgi)
31 COOKER_URL="http://cook.slitaz.org/"
33 # Translation files to be included in packages.
34 LOCALE=""
36 # List of packages installed in build chroot by cook or the Cooker setup.
37 SETUP_PKGS="slitaz-toolchain pkg-config intltool gettext zlib-dev bzip2
38 aufs-utils aufs m4 syslinux-extra pcre pcre-dev bash xorg-dev mercurial"
40 # Target host architecture type (Glibc doesn't support i386 anymore).
41 ARCH="i486"
43 # Build and host. These options are for cross-compiling. If you specify
44 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
45 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
46 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
47 BUILD_SYSTEM="$ARCH-slitaz-linux"
48 HOST_SYSTEM="$ARCH-slitaz-linux"
50 # SliTaz uses the sysroot method, this tells GCC to consider dir as the root
51 # of a tree that contains a (subset of) the root filesystem of the target
52 # operating system. Target system headers, libraries and run-time object
53 # files will be searched in there. Cook will use the tools and sysroot in
54 # the CROSS_TREE for cross compiling. Example: CROSS_TREE="/cross/$ARCH"
55 CROSS_TREE=""
57 # List of packages installed in chroot by cook or the Cooker setup.
58 # When cross compiling we need some build system tools installed and
59 # some cross-compiled bdeps installed in: $PREFIX (cross host root)
60 CROSS_SETUP="slitaz-toolchain zlib-dev bzip2 aufs-utils aufs bash m4 \
61 autoconf automake libtool gettext"
63 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
64 #
65 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
66 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
67 #
68 # ARM: don't use -0s but -02
69 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
70 # x86_64: CFLAGS="-march=nocona -Os -pipe"
71 #
72 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
73 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
74 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
75 CXXFLAGS="$CFLAGS"
77 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
78 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
80 # Default tool prefix for Binutils.
81 TOOLPREFIX="${HOST_SYSTEM}-"
83 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
84 # packages since --build and --host is not set at all by cook.site (bug ?).
85 CONFIG_SITE=/etc/slitaz/cook.site
86 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
88 # Mirrors URLs. To download sources near your location.
89 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
90 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
91 XORG_MIRROR="http://ftp.x.org/pub/individual"
92 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
94 # List of filesystems into the aufs chroot (to protect / against modifications)
95 # Default tank config:
96 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
97 /home /home/slitaz/src /home/slitaz/packages"
99 # Old way/tazwok compatibility.
100 BUILD_HOST="$HOST_SYSTEM"
101 SOURCES_REPOSITORY=$SRC
103 # Maximum log size in MB per receipt function call (unset it to disable)
104 DEFAULT_LOG_LIMIT=50