cookutils view cook.conf @ rev 727
cook: pkgdb: download "mirrors" file from mirror1.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun May 03 19:43:46 2015 +0300 (2015-05-03) |
parents | a97af30760bd |
children | 0875b3f3ecc3 |
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
39 rsync dropbear tazlito"
41 # Target host architecture type (Glibc doesn't support i386 anymore).
42 ARCH="i486"
44 # Build and host. These options are for cross-compiling. If you specify
45 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
46 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
47 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
48 BUILD_SYSTEM="$ARCH-slitaz-linux"
49 HOST_SYSTEM="$ARCH-slitaz-linux"
51 # SliTaz uses the sysroot method, this tells GCC to consider dir as the root
52 # of a tree that contains a (subset of) the root filesystem of the target
53 # operating system. Target system headers, libraries and run-time object
54 # files will be searched in there. Cook will use the tools and sysroot in
55 # the CROSS_TREE for cross compiling. Example: CROSS_TREE="/cross/$ARCH"
56 CROSS_TREE=""
58 # List of packages installed in chroot by cook or the Cooker setup.
59 # When cross compiling we need some build system tools installed and
60 # some cross-compiled bdeps installed in: $PREFIX (cross host root)
61 CROSS_SETUP="slitaz-toolchain zlib-dev bzip2 aufs-utils aufs bash m4 \
62 autoconf automake libtool gettext bison texinfo"
64 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
65 #
66 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
67 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
68 #
69 # ARM: don't use -0s but -02
70 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
71 # x86_64: CFLAGS="-march=nocona -Os -pipe"
72 #
73 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
74 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
75 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
76 CXXFLAGS="$CFLAGS"
78 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
79 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
81 # Default tool prefix for Binutils.
82 TOOLPREFIX="${HOST_SYSTEM}-"
84 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
85 # packages since --build and --host is not set at all by cook.site (bug ?).
86 CONFIG_SITE=/etc/slitaz/cook.site
87 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
89 # Mirrors URLs. To download sources near your location.
90 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
91 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
92 XORG_MIRROR="http://ftp.x.org/pub/individual"
93 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
95 # List of filesystems into the aufs chroot (to protect / against modifications)
96 # Default tank config:
97 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
98 /home /home/slitaz/src /home/slitaz/packages"
100 # Old way/tazwok compatibility.
101 BUILD_HOST="$HOST_SYSTEM"
102 SOURCES_REPOSITORY=$SRC
104 # Maximum log size in MB per receipt function call (unset it to disable)
105 DEFAULT_LOG_LIMIT=50