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}-1" # Toolchain
29 SLOGAN
="www.ipfire.org" # Software slogan
35 ################################################################################
36 # This builds the entire stage "toolchain" #
37 ################################################################################
41 export PATH
=${CTOOLS_DIR}/bin:${TOOLS_DIR}/usr/bin:${TOOLS_DIR}/bin
:$PATH
45 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-toolchain.log"
48 # make distcc first so that CCACHE_PREFIX works immediately
49 [ -z "$DISTCC_HOSTS" ] || toolchain_make distcc
53 if [ "${MACHINE}" != "${MACHINE_REAL}" ]; then
54 toolchain_make binutils-x-compile
55 toolchain_make gcc-x-compile PASS
=1
56 toolchain_make glibc-x-compile
57 toolchain_make gcc-x-compile PASS
=2
61 toolchain_make binutils PASS
=1
62 toolchain_make gcc PASS
=1
64 toolchain_make adjust-toolchain
66 if [ "${MACHINE}" == "${MACHINE_REAL}" ]; then
69 toolchain_make dejagnu
70 toolchain_make gcc PASS
=2
71 toolchain_make binutils PASS
=2
74 toolchain_make ncurses
77 toolchain_make coreutils
78 toolchain_make diffutils
79 toolchain_make e2fsprogs
80 toolchain_make findutils
82 toolchain_make
gettext
90 toolchain_make texinfo
91 toolchain_make util-linux-ng
96 ################################################################################
97 # This builds the entire stage "base" #
98 ################################################################################
101 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
105 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-base.log"
110 ipfire_make man-pages
112 ipfire_make adjust-toolchain
117 ipfire_make e2fsprogs
118 ipfire_make coreutils
132 ipfire_make diffutils
134 ipfire_make findutils
142 ipfire_make inetutils
148 ipfire_make module-init-tools
156 ipfire_make udev
## NEED TO INSTALL CONFIG
157 ipfire_make util-linux-ng
161 ################################################################################
162 # This builds the entire stage "ipfire" #
163 ################################################################################
165 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
169 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-ipfire.log"
172 ### Building the configuration dirs and files
179 ### Building some general stuff
181 ipfire_make pkg-config
186 ipfire_make perl
### We are building the modules here.
188 ipfire_make python-modules
192 #ipfire_make libidn ### Do we need this?
197 ### Building some network stuff
200 ipfire_make linux-atm
205 ipfire_make libnfnetlink
206 ipfire_make libnetfilter_queue
207 ipfire_make libnetfilter_conntrack
208 ipfire_make libnetfilter_log
210 ipfire_make l7-protocols
212 ipfire_make bridge-utils
217 ### Building some general stuff
219 ipfire_make pam PASS
=1
221 ipfire_make pam PASS
=2
224 ipfire_make cyrus-sasl
237 ipfire_make br2684ctl
238 ipfire_make etherwake
242 ### Building vpn stuff
244 ipfire_make strongswan
246 ### Building filesystem stuff
248 ipfire_make reiserfsprogs
250 ipfire_make reiser4progs
252 ipfire_make sysfsutils
254 ### Building hardware utils
260 ipfire_make smartmontools
261 ipfire_make lm-sensors
264 ### Building some important tools
272 ipfire_make ntp
### Needs config.
274 ipfire_make ez-ipupdate
278 #ipfire_make logrotate
279 #ipfire_make logwatch
283 ipfire_make memtest86
+
285 #ipfire_make initscripts
286 ipfire_make chkconfig
290 ### -------------------------------------------------------------------------
291 ### Tools that maybe not needed
299 #ipfire_make wireless
303 ################################################################################
304 # This builds the entire stage "misc" #
305 ################################################################################
308 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
312 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-misc.log"
320 #ipfire_make traceroute
332 #ipfire_make squidguard ## CAN THIS BE BANISHED BY ANYTHING BETTER?
333 #ipfire_make calamaris ## CAN THIS BE BANISHED BY ANYTHING BETTER?
336 ### Programs that are still for discussion
337 # package or in the standard system
349 #ipfire_make linux-igd
351 ### These will become addons as usual but will be integrated later
354 #ipfire_make oinkmaster
355 #ipfire_make centerim
356 #ipfire_make tripwire
359 #ipfire_make ghostscript
360 #ipfire_make foomatic
364 #ipfire_make fetchmail
365 #ipfire_make cyrus-imapd
370 #ipfire_make guardian
371 #ipfire_make libid3tag
374 #ipfire_make libvorbis
377 #ipfire_make libshout
379 #ipfire_make icegenerator
383 #ipfire_make libmpeg2
384 #ipfire_make videolan
386 #ipfire_make asterisk
387 #ipfire_make libsigc++
388 #ipfire_make applejuice
389 #ipfire_make libtorrent
390 #ipfire_make rtorrent
391 #ipfire_make ipfireseeder
394 # ---------------------------------------------------------------------------
399 ################################################################################
400 # This builds the entire stage "installer" #
401 ################################################################################
404 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
408 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-installer.log"
413 ipfire_make installer
414 ipfire_make initramfs
417 ################################################################################
418 # This builds the entire stage "packages" #
419 ################################################################################
422 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
426 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-packages.log"
431 # Generating list of packages used
436 # Check if there is a loop device for building in virtual environments
437 #if [ -e /dev/loop/0 ] || [ -e /dev/loop0 ]; then
438 # ipfire_make usb-stick
440 mv $LFS/$IMAGES_DIR/{*.iso
,*.tgz
,*.img.gz
} $BASEDIR >> $LOGFILE 2>&1
442 #ipfire_make core-updates
445 for i
in $
(ls -1 $BASEDIR/src
/rootfiles
/extras
); do
446 if [ -e $BASEDIR/lfs
/$i ]; then
448 ### Do nothing at the moment, we are gonna use a new packager
451 beautify message SKIP
462 # See what we're supposed to do
463 .
$BASEDIR/tools
/make-interactive