cookutils view cook.conf @ rev 512

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