cookutils view cook.conf @ rev 586

cook: Add loglimit function.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Feb 08 03:25:37 2013 +0000 (2013-02-08)
parents 107db3bf62b2
children
line source
1 # Cook packages builder configuration file
2 #
4 # Use mirror.slitaz.org urls before $WGET_URL. This is useful for computers hosted
5 # on local lan with a computer that is using source dvd
6 LAN_MIRROR=""
7 # Auto install all depends and build depends. (aka. The Tazwok way)
8 AUTO_DEP=""
9 # Fully cook all packages in list without install any packages from packages folder
10 FULL_COOK=""
11 # Shrink png in lzma source tarballs
12 SHRINKPNG="0"
13 # Set lzma dictionary size
14 # -d24 = 16mb dictionary size
15 # -d25 = 32mb dictionary size
16 # -d26 = 64mb dictionary size
17 LZMA_SET_DIR="-d26"
18 # touch all files to fix new sources
19 TOUCH_FILES=""
20 # remove original tarball when making .tar.lzma
21 REMOVE_ORIG_TARBALL="0"
22 # auto update incoming database when using pkg option
23 AUTO_UPDATE_DB="0"
25 # auto purge old source tarball
26 AUTO_PURGE_SRC=""
27 # Enable recompressing to .tar.lzma
28 LZMA_SRC="0"
29 # Enable cooker pkg to cook wanted packages
30 COOK_WANTED="0"
31 # enable clean chroot
32 CLEAN_CHROOT="0"
33 # Enable using aufs
34 AUFS_MODE=""
35 # Rebuild cooklist the tazwok way
36 UPCOOKLIST="0"
37 # Update chroot
38 UPCHROOT="0"
40 # SliTaz working directory
41 # NOTE: $SLITAZ_HOME and $SLITAZ_RELEASE is in /etc/slitaz/slitaz.conf
42 SLITAZ="$SLITAZ_HOME/$SLITAZ_RELEASE"
43 # Source tarball mirror
44 ONLINE_SRC_REPOSITORY="$MIRROR_URL/sources/packages/"
46 # Directory paths for cookutils DB and files.
47 WOK="$SLITAZ/wok"
48 PKGS="$SLITAZ/packages"
49 WOKHG="$SLITAZ/wok-hg"
50 SRC="$SLITAZ/src"
51 CACHE="$SLITAZ/cache"
52 LOGS="$SLITAZ/log"
53 FEEDS="$SLITAZ/xml"
54 INCOMING="$SLITAZ/incoming"
55 DATA="/usr/share/cook"
57 # System packages DB.
58 DB="/var/lib/tazpkg"
59 INSTALLED="$DB/installed"
61 # Quality Assurance (empty to disable receipt_quality).
62 QA="0"
64 # Automatically cook missing build dependencies (empty to disable).
65 AUTO_COOK=""
67 # Hg wok for setup and flavors URL for the Cooker.
68 WOK_URL="http://hg.slitaz.org/wok"
69 FLAVORS_URL="http://hg.slitaz.org/flavors"
71 # Cooker URL for RSS feed link (http://localhost/cgi-bin/cooker/cooker.cgi)
72 COOKER_URL="http://cook.slitaz.org/"
74 # Translation files to be included in packages.
75 LOCALE=""
77 # Target host architecture type (Glibc doesn't support i386 anymore).
78 ARCH="i486"
80 # Build and host. These options are for cross-compiling. If you specify
81 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
82 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
83 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
84 BUILD_SYSTEM="$ARCH-slitaz-linux"
85 HOST_SYSTEM="$ARCH-slitaz-linux"
87 # SliTaz uses the sysroot method, this tells GCC to consider dir as the root
88 # of a tree that contains a (subset of) the root filesystem of the target
89 # operating system. Target system headers, libraries and run-time object
90 # files will be searched in there. Cook will use the tools and sysroot in
91 # the CROSS_TREE for cross compiling. Example: CROSS_TREE="/cross/$ARCH"
92 CROSS_TREE=""
94 # List of packages installed in chroot by cook or the Cooker setup.
95 # When cross compiling we need some build system tools installed and
96 # some cross-compiled bdeps installed in: $PREFIX (cross host root)
97 CROSS_SETUP="slitaz-toolchain zlib-dev bzip2 aufs-utils aufs bash m4 \
98 autoconf automake libtool gettext"
100 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
101 #
102 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
103 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
104 #
105 # ARM: don't use -0s but -02
106 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
107 # x86_64: CFLAGS="-march=nocona -Os -pipe"
108 #
109 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
110 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
111 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
112 CXXFLAGS="$CFLAGS"
114 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
115 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
117 # Default tool prefix for Binutils.
118 TOOLPREFIX="${HOST_SYSTEM}-"
120 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
121 # packages since --build and --host is not set at all by cook.site (bug ?).
122 CONFIG_SITE=/etc/slitaz/cook.site
123 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
125 # Timeout for connection
126 TIMEOUT="12"
128 # Mirrors URLs. To download sources near your location.
129 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
130 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
131 XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
132 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
134 TOOLCHAIN="slitaz-toolchain
135 busybox
136 ncurses
137 bash
138 bzip2
139 gawk
140 gettext
141 m4
142 make
143 patch
144 db
145 gdbm
146 zlib-dev
147 perl
148 texinfo
149 autoconf
150 automake
151 lzma
152 tar
153 kmod
154 xorg-dev"
156 TOOLCHAIN_EXTRA="tazpkg
157 cookutils
158 glib
159 pkg-config
160 libtool
161 libpthread-stubs
162 mercurial
163 rsync
164 wget"
166 AUFS_PKGS="aufs-utils
167 aufs"
169 # List of packages installed by cook or the Cooker setup.
170 SETUP_PKGS="$TOOLCHAIN
171 $TOOLCHAIN_EXTRA
172 intltool
173 gettext
174 bzip2"
176 # List of filesystems into the aufs chroot (to protect / against modifications)
177 # Default tank config:
178 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
179 /home /home/slitaz/src /home/slitaz/packages"
181 if [ "$AUFS_MODE" ]; then
182 INSTALL_PKGS="$SETUP_PKGS $AUFS_PKGS"
183 else
184 INSTALL_PKGS="$SETUP_PKGS"
185 fi
187 # Old way/tazwok compatibility.
188 BUILD_HOST="$HOST_SYSTEM"
189 SOURCES_REPOSITORY=$SRC
191 # Maximum log size in MB per receipt function call (unset it to disable)
192 DEFAULT_LOG_LIMIT=50