cookutils view cook.conf @ rev 521

cook: Add --flavors option back in to pkgdb option. Also added add stand alone flavors option so you don't need to rebuild package list to rebuild the flavor files.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Aug 15 22:21:53 2012 +0000 (2012-08-15)
parents 031b095ab711 c3e5084142d5
children 107db3bf62b2
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 SLITAZ="$SLITAZ_HOME/$SLITAZ_RELEASE"
42 # Source tarball mirror
43 ONLINE_SRC_REPOSITORY="$MIRROR_URL/sources/packages/"
45 # Directory paths for cookutils DB and files.
46 WOK="$SLITAZ/wok"
47 PKGS="$SLITAZ/packages"
48 WOKHG="$SLITAZ/wok-hg"
49 SRC="$SLITAZ/src"
50 CACHE="$SLITAZ/cache"
51 LOGS="$SLITAZ/log"
52 FEEDS="$SLITAZ/xml"
53 INCOMING="$SLITAZ/incoming"
54 DATA="/usr/share/cook"
56 # System packages DB.
57 DB="/var/lib/tazpkg"
58 INSTALLED="$DB/installed"
60 # Quality Assurance (empty to disable receipt_quality).
61 QA="0"
63 # Automatically cook missing build dependencies (empty to disable).
64 AUTO_COOK=""
66 # Hg wok for setup and flavors URL for the Cooker.
67 WOK_URL="http://hg.slitaz.org/wok"
68 FLAVORS_URL="http://hg.slitaz.org/flavors"
70 # Cooker URL for RSS feed link (http://localhost/cgi-bin/cooker/cooker.cgi)
71 COOKER_URL="http://cook.slitaz.org/"
73 # Translation files to be included in packages.
74 LOCALE=""
76 # Target host architecture type (Glibc doesn't support i386 anymore).
77 ARCH="i486"
79 # Build and host. These options are for cross-compiling. If you specify
80 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
81 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
82 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
83 BUILD_SYSTEM="$ARCH-slitaz-linux"
84 HOST_SYSTEM="$ARCH-slitaz-linux"
86 # SliTaz uses the sysroot method, this tells GCC to consider dir as the root
87 # of a tree that contains a (subset of) the root filesystem of the target
88 # operating system. Target system headers, libraries and run-time object
89 # files will be searched in there. Cook will use the tools and sysroot in
90 # the CROSS_TREE for cross compiling. Example: CROSS_TREE="/cross/$ARCH"
91 CROSS_TREE=""
93 # List of packages installed in chroot by cook or the Cooker setup.
94 # When cross compiling we need some build system tools installed and
95 # some cross-compiled bdeps installed in: $PREFIX (cross host root)
96 CROSS_SETUP="slitaz-toolchain zlib-dev bzip2 aufs-utils aufs bash m4 \
97 autoconf automake libtool gettext"
99 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
100 #
101 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
102 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
103 #
104 # ARM: don't use -0s but -02
105 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
106 # x86_64: CFLAGS="-march=nocona -Os -pipe"
107 #
108 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
109 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
110 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
111 CXXFLAGS="$CFLAGS"
113 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
114 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
116 # Default tool prefix for Binutils.
117 TOOLPREFIX="${HOST_SYSTEM}-"
119 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
120 # packages since --build and --host is not set at all by cook.site (bug ?).
121 CONFIG_SITE=/etc/slitaz/cook.site
122 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
124 # Timeout for connection
125 TIMEOUT="12"
127 # Mirrors URLs. To download sources near your location.
128 GNU_MIRROR="ftp://sunsite.cnlab-switch.ch/mirror/gnu"
129 SF_MIRROR="http://switch.dl.sourceforge.net/sourceforge"
130 XORG_MIRROR="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
131 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
133 TOOLCHAIN="slitaz-toolchain
134 busybox
135 ncurses
136 bash
137 bzip2
138 gawk
139 gettext
140 m4
141 make
142 patch
143 db
144 gdbm
145 zlib-dev
146 perl
147 texinfo
148 autoconf
149 automake
150 lzma
151 tar
152 kmod
153 xorg-dev"
155 TOOLCHAIN_EXTRA="tazpkg
156 cookutils
157 glib
158 pkg-config
159 libtool
160 libpthread-stubs
161 mercurial
162 rsync
163 wget"
165 AUFS_PKGS="aufs-utils
166 aufs"
168 # List of packages installed by cook or the Cooker setup.
169 SETUP_PKGS="$TOOLCHAIN
170 $TOOLCHAIN_EXTRA
171 intltool
172 gettext
173 bzip2"
175 # List of filesystems into the aufs chroot (to protect / against modifications)
176 # Default tank config:
177 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
178 /home /home/slitaz/src /home/slitaz/packages"
180 if [ "$AUFS_MODE" ]; then
181 INSTALL_PKGS="$SETUP_PKGS $AUFS_PKGS"
182 else
183 INSTALL_PKGS="$SETUP_PKGS"
184 fi
186 # Old way/tazwok compatibility.
187 BUILD_HOST="$HOST_SYSTEM"
188 SOURCES_REPOSITORY=$SRC