2 ############################################################################
4 # This file is part of the IPFire Firewall. #
6 # IPFire is free software; you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation; either version 2 of the License, or #
9 # (at your option) any later version. #
11 # IPFire is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with IPFire; if not, write to the Free Software #
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
20 # Copyright (C) 2008 IPFire-Team <info@ipfire.org>. #
22 ############################################################################
25 NAME
="IPFire" # Software name
26 SNAME
="ipfire" # Short name
27 VERSION
="3.0-prealpha2" # Version number
28 TOOLCHAINVERSION
="${VERSION}-5" # Toolchain
29 SLOGAN
="Gluttony" # Software slogan
35 ################################################################################
36 # This builds the entire stage "toolchain" #
37 ################################################################################
41 export PATH
=${TOOLS_DIR}/usr
/bin
:${TOOLS_DIR}/bin
:$PATH
45 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-toolchain.log"
48 build_spy stage
${STAGE}
50 # We can't skip packages in toolchain stage
51 SAVE_SKIP_PACKAGE_LIST
=$SKIP_PACKAGE_LIST
55 # make distcc first so that CCACHE_PREFIX works immediately
58 toolchain_make binutils PASS
=1
59 toolchain_make gcc PASS
=1
60 toolchain_make linux-headers
62 toolchain_make adjust-toolchain
63 toolchain_make test-toolchain PASS
=1
65 toolchain_make gcc PASS
=2
66 toolchain_make binutils PASS
=2
67 toolchain_make test-toolchain PASS
=2
68 toolchain_make ncurses
71 toolchain_make coreutils
72 toolchain_make diffutils
73 toolchain_make e2fsprogs
74 toolchain_make findutils
76 toolchain_make
gettext
85 toolchain_make texinfo
88 toolchain_make util-linux-ng
90 export PATH
=$ORG_PATH SKIP_PACKAGE_LIST
=$SAVE_SKIP_PACKAGE_LIST
91 unset SAVE_SKIP_PACKAGE_LIST
94 ################################################################################
95 # This builds the entire stage "base" #
96 ################################################################################
99 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
103 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-base.log"
106 build_spy stage
${STAGE}
110 ipfire_make system-release
111 ipfire_make linux-headers
112 ipfire_make man-pages
114 ipfire_make adjust-toolchain
115 ipfire_make test-toolchain
122 ipfire_make pkg-config
135 ipfire_make util-linux-ng
136 ipfire_make e2fsprogs
137 ipfire_make coreutils
148 ipfire_make diffutils
151 ipfire_make findutils
159 ipfire_make initd-tools
165 ipfire_make module-init-tools
169 ipfire_make syslog-ng
175 ipfire_make initscripts
178 ################################################################################
179 # This builds the entire stage "ipfire" #
180 ################################################################################
182 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
186 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-ipfire.log"
189 build_spy stage
${STAGE}
191 ### Building the configuration dirs and files
198 ### Building some general stuff
200 ipfire_make libdaemon
203 ipfire_make dbus-glib
205 ipfire_make perl-xml-parser
208 ipfire_make python-cracklib
209 ipfire_make python-dbus
210 ipfire_make python-urlgrabber
211 ipfire_make python-IPy
216 ipfire_make libusb-compat
# Can be removed if usbutils supports libusb-1.0
221 ### Building some network stuff
224 ipfire_make linux-atm
230 ipfire_make libnfnetlink
231 ipfire_make libnetfilter_queue
232 ipfire_make libnetfilter_conntrack
233 ipfire_make libnetfilter_log
234 ipfire_make python-netfilter_conntrack
235 ipfire_make l7-protocols
236 ipfire_make bridge-utils
244 ### Building some general stuff
247 ipfire_make libassuan
248 ipfire_make libgpg-error
249 ipfire_make libgcrypt
253 ipfire_make cyrus-sasl
259 ipfire_make python-sqlite2
269 ipfire_make fontconfig
275 ipfire_make br2684ctl
276 ipfire_make etherwake
282 ipfire_make pdns-recursor
284 ipfire_make libnfsidmap
285 ipfire_make libgssglue
286 ipfire_make librpcsecgss
288 ### Building vpn stuff
290 ipfire_make strongswan
293 ### Building filesystem stuff
295 ipfire_make btrfs-progs
296 ipfire_make reiserfsprogs
298 ipfire_make reiser4progs
300 ipfire_make sysfsutils
301 ipfire_make squashfs-tools
302 ipfire_make dosfstools
306 ipfire_make cryptsetup-luks
307 ipfire_make python-cryptsetup
310 ### Building hardware utils
315 ipfire_make smartmontools
316 ipfire_make lm-sensors
321 ### Building some important tools
330 ipfire_make ez-ipupdate
333 ipfire_make webinterface
335 ipfire_make logrotate
336 #ipfire_make logwatch
338 ipfire_make dvdrtools
339 ipfire_make python-parted
340 ipfire_make python-pyblock
341 ipfire_make libbdevid
342 ipfire_make memtest86
+
345 ipfire_make wireless-tools
353 ################################################################################
354 # This builds the entire stage "misc" #
355 ################################################################################
358 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
362 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-misc.log"
365 build_spy stage
${STAGE}
369 ipfire_make miniupnpd
374 ipfire_make
traceroute
391 ipfire_make bootutils
392 ipfire_make mkinitramfs
403 ### These will become addons as usual but will be integrated later
406 #ipfire_make oinkmaster
408 #ipfire_make ghostscript
409 #ipfire_make foomatic
412 #ipfire_make fetchmail
413 #ipfire_make cyrus-imapd
417 #ipfire_make guardian
418 #ipfire_make ipfireseeder
420 ipfire_make nfs-utils
424 ipfire_make pax-utils
428 ipfire_make pychecker
431 ################################################################################
432 # This builds the entire stage "installer" #
433 ################################################################################
436 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
440 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-installer.log"
443 build_spy stage
${STAGE}
449 ################################################################################
450 # This builds the entire stage "packages" #
451 ################################################################################
454 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
458 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-packages.log"
461 build_spy stage
${STAGE}
464 ipfire_make quality-agent
469 # Generate packages list
470 echo -n "Generating packages list"
471 pkg_list_packages
> $BASEDIR/doc
/packages-list.txt
472 beautify message DONE
476 echo -n "Building packages"
477 for package
in $BASEDIR/lfs
/*; do
478 package_make $
(basename $package) >/dev
/null
480 beautify message DONE
482 if [ ${EMB} -eq 0 ]; then
483 ipfire_make images-core
484 ipfire_make images-info
485 ipfire_make images-initramfs
486 ipfire_make images-overlays
491 : #ipfire_make usb-key
493 echo -n "Can't build usb-key images on this machine"
494 beautify message WARN
496 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
499 # We put here the code that is done when
500 # we do an embedded build
512 # See what we're supposed to do
513 .
$BASEDIR/tools
/make-interactive