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 dejagnu # Maybe this can be dropped
64 toolchain_make ncurses
67 toolchain_make coreutils
68 toolchain_make diffutils
69 toolchain_make e2fsprogs
70 toolchain_make findutils
72 toolchain_make
gettext
81 toolchain_make texinfo
85 toolchain_make util-linux-ng
90 ################################################################################
91 # This builds the entire stage "base" #
92 ################################################################################
95 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
99 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-base.log"
102 build_spy
set stage
${STAGE} &
106 ipfire_make initscripts
110 ipfire_make man-pages
112 ipfire_make adjust-toolchain
117 ipfire_make e2fsprogs
118 ipfire_make coreutils
137 ipfire_make diffutils
139 ipfire_make findutils
146 ipfire_make inetutils
151 ipfire_make module-init-tools
159 ipfire_make udev
## NEED TO INSTALL CONFIG
160 ipfire_make util-linux-ng
164 ################################################################################
165 # This builds the entire stage "ipfire" #
166 ################################################################################
168 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
172 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-ipfire.log"
175 build_spy
set stage
${STAGE} &
177 ### Building the configuration dirs and files
184 ### Building some general stuff
186 ipfire_make pkg-config
190 ipfire_make dbus-glib
192 ipfire_make perl
### We are building the modules here.
194 ipfire_make python-dbus
195 ipfire_make python-urlgrabber
196 ipfire_make python-iconv
199 #ipfire_make libidn ### Do we need this?
205 ### Building some network stuff
208 ipfire_make linux-atm
213 ipfire_make libnfnetlink
214 ipfire_make libnetfilter_queue
215 ipfire_make libnetfilter_conntrack
216 ipfire_make libnetfilter_log
218 ipfire_make l7-protocols
219 ipfire_make bridge-utils
224 ### Building some general stuff
226 ipfire_make pam PASS
=1
228 ipfire_make pam PASS
=2
231 ipfire_make cyrus-sasl
242 ipfire_make fontconfig
248 ipfire_make br2684ctl
249 ipfire_make etherwake
253 ### Building vpn stuff
255 ipfire_make strongswan
258 ### Building filesystem stuff
260 ipfire_make reiserfsprogs
262 ipfire_make reiser4progs
264 ipfire_make sysfsutils
266 ### Building hardware utils
271 ipfire_make smartmontools
272 ipfire_make lm-sensors
276 ### Building some important tools
283 ipfire_make ntp
### Needs config.
285 ipfire_make ez-ipupdate
289 #ipfire_make logrotate
290 #ipfire_make logwatch
294 ipfire_make memtest86
+
296 ipfire_make chkconfig
300 ### -------------------------------------------------------------------------
301 ### Tools that maybe not needed
308 #ipfire_make wireless
312 ################################################################################
313 # This builds the entire stage "misc" #
314 ################################################################################
317 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
321 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-misc.log"
324 build_spy
set stage
${STAGE} &
331 #ipfire_make traceroute
346 #ipfire_make squidguard ## CAN THIS BE BANISHED BY ANYTHING BETTER?
347 #ipfire_make calamaris ## CAN THIS BE BANISHED BY ANYTHING BETTER?
359 #ipfire_make linux-igd
361 ### These will become addons as usual but will be integrated later
364 #ipfire_make oinkmaster
365 #ipfire_make centerim
366 #ipfire_make tripwire
369 #ipfire_make ghostscript
370 #ipfire_make foomatic
374 #ipfire_make fetchmail
375 #ipfire_make cyrus-imapd
379 #ipfire_make guardian
380 #ipfire_make libid3tag
383 #ipfire_make libvorbis
386 #ipfire_make libshout
388 #ipfire_make icegenerator
392 #ipfire_make libmpeg2
393 #ipfire_make videolan
395 #ipfire_make asterisk
396 #ipfire_make libsigc++
397 #ipfire_make applejuice
398 #ipfire_make libtorrent
399 #ipfire_make rtorrent
400 #ipfire_make ipfireseeder
403 # ---------------------------------------------------------------------------
412 ################################################################################
413 # This builds the entire stage "installer" #
414 ################################################################################
417 PATH
=${TOOLS_DIR}/usr/bin:${UCLIBC_DIR}/bin:${UCLIBC_DIR}/usr
/bin
418 PATH
=$PATH:${UCLIBC_CC_CORE_STATIC_DIR}/bin
:/bin
:/usr
/bin
419 PATH
=$PATH:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
423 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-installer.log"
426 build_spy
set stage
${STAGE} &
434 ipfire_make uClibc PASS
=1
435 ipfire_make gcc PASS
=1
436 ipfire_make uClibc PASS
=2
437 ipfire_make
gettext PASS
=1
438 ipfire_make gcc PASS
=2
439 ipfire_make
gettext PASS
=2
448 ipfire_make e2fsprogs
449 #ipfire_make xfsprogs
450 ipfire_make util-linux-ng
454 ipfire_make dbus-glib
459 ipfire_make python-dbus
460 ipfire_make python-parted
461 ipfire_make python-urlgrabber
462 ipfire_make python-iconv
471 ipfire_make reiserfsprogs
477 ################################################################################
478 # This builds the entire stage "packages" #
479 ################################################################################
482 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
486 LOGFILE
="$BASEDIR/log_${MACHINE}/_build.${STAGE_ORDER}-packages.log"
489 build_spy
set stage
${STAGE} &
496 if [ ${EMB} -eq 0 ]; then
497 ipfire_make initramfs
503 : #ipfire_make usb-key
505 echo -n "Can't build usb-key images on this machine"
506 beautify message WARN
508 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
511 # We put here the code that is done when
512 # we do an embedded build
518 for i
in $
(ls -1 $BASEDIR/src
/rootfiles
/extras
); do
519 package
=$
(cut
-d.
-f2 <<< $i)
520 if [ -e $BASEDIR/lfs
/$package ]; then
522 beautify message SKIP
525 beautify message SKIP
536 # See what we're supposed to do
537 .
$BASEDIR/tools
/make-interactive