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-prealpha" # Version number
28 TOOLCHAINVERSION
="${VERSION}-5" # Toolchain
29 SLOGAN
="www.ipfire.org" # 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_${MACHINE}/_build.${STAGE_ORDER}-toolchain.log"
48 build_spy
set stage
${STAGE} &
51 # make distcc first so that CCACHE_PREFIX works immediately
52 [ -z "$DISTCC_HOSTS" ] || toolchain_make distcc
57 toolchain_make binutils PASS
=1
58 toolchain_make gcc PASS
=1
60 toolchain_make adjust-toolchain
61 toolchain_make binutils PASS
=2
62 toolchain_make gcc PASS
=2
63 #toolchain_make tcl # Maybe this can be dropped
64 #toolchain_make expect # Maybe this can be dropped
65 #toolchain_make dejagnu # Maybe this can be dropped
66 toolchain_make ncurses
69 toolchain_make coreutils
70 toolchain_make diffutils
71 toolchain_make e2fsprogs
72 toolchain_make findutils
74 toolchain_make
gettext
83 toolchain_make texinfo
87 toolchain_make util-linux-ng
92 ################################################################################
93 # This builds the entire stage "base" #
94 ################################################################################
97 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
101 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-base.log"
104 build_spy
set stage
${STAGE} &
110 ipfire_make man-pages
112 ipfire_make adjust-toolchain
117 ipfire_make e2fsprogs
118 ipfire_make coreutils
136 ipfire_make diffutils
138 ipfire_make findutils
145 ipfire_make inetutils
150 ipfire_make module-init-tools
158 ipfire_make udev
## NEED TO INSTALL CONFIG
159 ipfire_make util-linux-ng
163 ################################################################################
164 # This builds the entire stage "ipfire" #
165 ################################################################################
167 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
171 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-ipfire.log"
174 build_spy
set stage
${STAGE} &
176 ### Building the configuration dirs and files
183 ### Building some general stuff
185 ipfire_make pkg-config
190 ipfire_make perl
### We are building the modules here.
192 ipfire_make python-modules
196 #ipfire_make libidn ### Do we need this?
202 ### Building some network stuff
205 ipfire_make linux-atm
210 ipfire_make libnfnetlink
211 ipfire_make libnetfilter_queue
212 ipfire_make libnetfilter_conntrack
213 ipfire_make libnetfilter_log
215 ipfire_make l7-protocols
216 ipfire_make bridge-utils
221 ### Building some general stuff
223 ipfire_make pam PASS
=1
225 ipfire_make pam PASS
=2
228 ipfire_make cyrus-sasl
241 ipfire_make br2684ctl
242 ipfire_make etherwake
245 ### Building vpn stuff
247 ipfire_make strongswan
250 ### Building filesystem stuff
252 ipfire_make reiserfsprogs
254 ipfire_make reiser4progs
256 ipfire_make sysfsutils
258 ### Building hardware utils
264 ipfire_make smartmontools
265 ipfire_make lm-sensors
268 ### Building some important tools
275 ipfire_make ntp
### Needs config.
277 ipfire_make ez-ipupdate
281 #ipfire_make logrotate
282 #ipfire_make logwatch
286 ipfire_make memtest86
+
288 #ipfire_make initscripts
289 ipfire_make chkconfig
293 ### -------------------------------------------------------------------------
294 ### Tools that maybe not needed
301 #ipfire_make wireless
305 ################################################################################
306 # This builds the entire stage "misc" #
307 ################################################################################
310 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
314 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-misc.log"
317 build_spy
set stage
${STAGE} &
324 #ipfire_make traceroute
337 #ipfire_make squidguard ## CAN THIS BE BANISHED BY ANYTHING BETTER?
338 #ipfire_make calamaris ## CAN THIS BE BANISHED BY ANYTHING BETTER?
350 #ipfire_make linux-igd
352 ### These will become addons as usual but will be integrated later
355 #ipfire_make oinkmaster
356 #ipfire_make centerim
357 #ipfire_make tripwire
360 #ipfire_make ghostscript
361 #ipfire_make foomatic
365 #ipfire_make fetchmail
366 #ipfire_make cyrus-imapd
371 #ipfire_make guardian
372 #ipfire_make libid3tag
375 #ipfire_make libvorbis
378 #ipfire_make libshout
380 #ipfire_make icegenerator
384 #ipfire_make libmpeg2
385 #ipfire_make videolan
387 #ipfire_make asterisk
388 #ipfire_make libsigc++
389 #ipfire_make applejuice
390 #ipfire_make libtorrent
391 #ipfire_make rtorrent
392 #ipfire_make ipfireseeder
395 # ---------------------------------------------------------------------------
404 ################################################################################
405 # This builds the entire stage "installer" #
406 ################################################################################
409 PATH
=${TOOLS_DIR}/usr/bin:${UCLIBC_DIR}/bin:${UCLIBC_DIR}/usr
/bin
410 PATH
=$PATH:${UCLIBC_CC_CORE_STATIC_DIR}/bin
:/bin
:/usr
/bin
411 PATH
=$PATH:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
415 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-installer.log"
418 build_spy
set stage
${STAGE} &
426 ipfire_make uClibc PASS
=1
427 ipfire_make gcc PASS
=1
428 ipfire_make uClibc PASS
=2
429 ipfire_make gcc PASS
=2
437 #ipfire_make readline
438 ipfire_make e2fsprogs
439 ipfire_make util-linux-ng
445 ipfire_make python-modules
458 ################################################################################
459 # This builds the entire stage "packages" #
460 ################################################################################
463 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
467 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-packages.log"
470 build_spy
set stage
${STAGE} &
473 ipfire_make initramfs
478 # Generating list of packages used
482 # Check if there is a loop device for building in virtual environments
483 #if [ -e /dev/loop/0 ] || [ -e /dev/loop0 ]; then
484 # ipfire_make usb-stick
486 mv $LFS/$IMAGES_DIR/{*.iso
,*.tgz
,*.img.gz
} $BASEDIR >> $LOGFILE 2>&1
488 for i
in $
(ls -1 $BASEDIR/src
/rootfiles
/extras
); do
489 if [ -e $BASEDIR/lfs
/$i ]; then
491 beautify message SKIP
494 beautify message SKIP
505 # See what we're supposed to do
506 .
$BASEDIR/tools
/make-interactive