cookutils view cook.conf @ rev 475
libcook.sh: Add strip_blocked function.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 09 14:10:51 2012 +0000 (2012-06-09) |
parents | b75b26c696d0 |
children | 165f297e69f5 |
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 INCOMING="$SLITAZ/incoming"
15 DATA="/usr/share/cook"
17 # System packages DB.
18 DB="/var/lib/tazpkg"
19 INSTALLED="$DB/installed"
21 # Quality Assurance (empty to disable receipt_quality).
22 QA="0"
24 # Automatically cook missing build dependencies (empty to disable).
25 AUTO_COOK=""
27 # Hg wok for setup and flavors URL for the Cooker.
28 WOK_URL="http://hg.slitaz.org/wok"
29 FLAVORS_URL="http://hg.slitaz.org/flavors"
31 # Cooker URL for RSS feed link (http://localhost/cgi-bin/cooker/cooker.cgi)
32 COOKER_URL="http://cook.slitaz.org/"
34 # Translation files to be included in packages.
35 LOCALE=""
37 # Target host architecture type (Glibc doesn't support i386 anymore).
38 ARCH="i486"
40 # Build and host. These options are for cross-compiling. If you specify
41 # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
42 # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
43 #BUILD_SYSTEM="$(uname -m)-slitaz-linux"
44 BUILD_SYSTEM="$ARCH-slitaz-linux"
45 HOST_SYSTEM="$ARCH-slitaz-linux"
47 # SliTaz uses the sysroot method, this tells GCC to consider dir as the root
48 # of a tree that contains a (subset of) the root filesystem of the target
49 # operating system. Target system headers, libraries and run-time object
50 # files will be searched in there. Cook will use the tools and sysroot in
51 # the CROSS_TREE for cross compiling. Example: CROSS_TREE="/cross/$ARCH"
52 CROSS_TREE=""
54 # List of packages installed in chroot by cook or the Cooker setup.
55 # When cross compiling we need some build system tools installed and
56 # some cross-compiled bdeps installed in: $PREFIX (cross host root)
57 CROSS_SETUP="slitaz-toolchain zlib-dev bzip2 aufs-utils aufs bash m4 \
58 autoconf automake libtool gettext"
60 # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
61 #
62 # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
63 # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
64 #
65 # ARM: don't use -0s but -02
66 # ARM: -mcpu=name [arm9|xscale|...] or -march=name [armv4|armv6|...]
67 # x86_64: CFLAGS="-march=nocona -Os -pipe"
68 #
69 #MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
70 MAKEFLAGS="-j$(grep processor /proc/cpuinfo | wc -l)"
71 CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
72 CXXFLAGS="$CFLAGS"
74 # Binutils 2.22 breaks many packages built without LDFLAGS set correctly.
75 #LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
77 # Default tool prefix for Binutils.
78 TOOLPREFIX="${HOST_SYSTEM}-"
80 # Default arguments for GNU configure. CONFIGURE_ARGS is needed for some
81 # packages since --build and --host is not set at all by cook.site (bug ?).
82 CONFIG_SITE=/etc/slitaz/cook.site
83 CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM"
85 # Timeout for connection
86 TIMEOUT="12"
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="ftp://ftp.solnet.ch/mirror/x.org/pub/individual"
92 GNOME_MIRROR="http://ftp.gnome.org/pub/GNOME/sources"
94 TOOLCHAIN="slitaz-toolchain
95 busybox
96 ncurses
97 bash
98 bzip2
99 gawk
100 gettext
101 m4
102 make
103 patch
104 db
105 gdbm
106 zlib-dev
107 perl
108 texinfo
109 autoconf
110 automake
111 lzma
112 tar
113 kmod
114 xorg-dev"
116 TOOLCHAIN_EXTRA="tazpkg
117 cookutils
118 glib
119 pkg-config
120 libtool
121 libpthread-stubs
122 mercurial
123 rsync
124 wget"
126 AUFS_PKGS="aufs-utils
127 aufs"
129 # List of packages installed by cook or the Cooker setup.
130 SETUP_PKGS="$TOOLCHAIN
131 $TOOLCHAIN_EXTRA
132 intltool
133 gettext
134 bzip2"
136 # List of filesystems into the aufs chroot (to protect / against modifications)
137 # Default tank config:
138 AUFS_MOUNTS="/ /proc /sys /dev/shm /dev/pts /var/cache/tazpkg \
139 /home /home/slitaz/src /home/slitaz/packages"
141 if [ "$AUFS_MODE" ]; then
142 INSTALL_PKGS="$SETUP_PKGS $AUFS_PKGS"
143 else
144 INSTALL_PKGS="$SETUP_PKGS"
145 fi
147 # Old way/tazwok compatibility.
148 BUILD_HOST="$HOST_SYSTEM"
149 SOURCES_REPOSITORY=$SRC