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-prealpha1" # Version number
28 TOOLCHAINVERSION
="${VERSION}-13" # Toolchain
29 SLOGAN
="Lechery" # 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}
51 #toolchain_make scripts
52 # make distcc first so that CCACHE_PREFIX works immediately
53 [ -z "$DISTCC_HOSTS" ] || toolchain_make distcc
55 toolchain_make binutils PASS
=1
56 toolchain_make gcc PASS
=1
59 toolchain_make adjust-toolchain
60 toolchain_make test-toolchain PASS
=1
61 toolchain_make gcc PASS
=2
62 toolchain_make binutils PASS
=2
63 toolchain_make test-toolchain PASS
=2
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
84 toolchain_make util-linux-ng
89 ################################################################################
90 # This builds the entire stage "base" #
91 ################################################################################
94 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
98 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-base.log"
101 build_spy stage
${STAGE}
106 ipfire_make man-pages
108 ipfire_make adjust-toolchain
109 ipfire_make test-toolchain
114 ipfire_make e2fsprogs
115 ipfire_make coreutils
135 ipfire_make diffutils
137 ipfire_make findutils
145 ipfire_make initd-tools
146 ipfire_make initscripts
152 ipfire_make module-init-tools
161 ipfire_make util-linux-ng
165 ################################################################################
166 # This builds the entire stage "ipfire" #
167 ################################################################################
169 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
173 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-ipfire.log"
176 build_spy stage
${STAGE}
178 ### Building the configuration dirs and files
186 ### Building some general stuff
188 ipfire_make pkg-config
193 ipfire_make dbus-glib
195 ipfire_make perl
### We are building the modules here.
197 ipfire_make python-dbus
198 ipfire_make python-urlgrabber
199 ipfire_make python-iconv
200 ipfire_make python-IPy
204 ipfire_make syslog-ng
210 ### Building some network stuff
213 ipfire_make linux-atm
218 ipfire_make libnfnetlink
219 ipfire_make libnetfilter_queue
220 ipfire_make libnetfilter_conntrack
221 ipfire_make libnetfilter_log
222 ipfire_make python-netfilter_conntrack
224 ipfire_make l7-protocols
225 ipfire_make bridge-utils
230 ### Building some general stuff
233 ipfire_make pam PASS
=1
235 ipfire_make pam PASS
=2
238 ipfire_make cyrus-sasl
251 ipfire_make fontconfig
257 ipfire_make br2684ctl
258 ipfire_make etherwake
263 ### Building vpn stuff
265 ipfire_make strongswan
268 ### Building filesystem stuff
270 ipfire_make reiserfsprogs
272 ipfire_make reiser4progs
274 ipfire_make sysfsutils
277 ### Building hardware utils
282 ipfire_make smartmontools
283 ipfire_make lm-sensors
287 ### Building some important tools
294 ipfire_make ntp
### Needs config.
296 ipfire_make ez-ipupdate
299 ipfire_make webinterface
301 ipfire_make logrotate
302 #ipfire_make logwatch
306 ipfire_make python-parted
307 ipfire_make memtest86
+
312 ### -------------------------------------------------------------------------
313 ### Tools that maybe not needed
320 #ipfire_make wireless
324 ################################################################################
325 # This builds the entire stage "misc" #
326 ################################################################################
329 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
333 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-misc.log"
336 build_spy stage
${STAGE}
340 #ipfire_make miniupnpd
345 #ipfire_make traceroute
358 ipfire_make bootutils
359 ipfire_make mkinitramfs
362 #ipfire_make squidguard ## CAN THIS BE BANISHED BY ANYTHING BETTER?
363 #ipfire_make calamaris ## CAN THIS BE BANISHED BY ANYTHING BETTER?
375 #ipfire_make linux-igd
377 ### These will become addons as usual but will be integrated later
380 #ipfire_make oinkmaster
381 #ipfire_make centerim
382 #ipfire_make tripwire
385 #ipfire_make ghostscript
386 #ipfire_make foomatic
390 #ipfire_make fetchmail
391 #ipfire_make cyrus-imapd
395 #ipfire_make guardian
396 #ipfire_make libid3tag
399 #ipfire_make libvorbis
402 #ipfire_make libshout
404 #ipfire_make icegenerator
408 #ipfire_make libmpeg2
409 #ipfire_make videolan
411 #ipfire_make asterisk
412 #ipfire_make libsigc++
413 #ipfire_make applejuice
414 #ipfire_make libtorrent
415 #ipfire_make rtorrent
416 #ipfire_make ipfireseeder
419 # ---------------------------------------------------------------------------
429 ################################################################################
430 # This builds the entire stage "installer" #
431 ################################################################################
434 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
438 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-installer.log"
441 build_spy stage
${STAGE}
447 ################################################################################
448 # This builds the entire stage "packages" #
449 ################################################################################
452 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
456 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-packages.log"
459 build_spy stage
${STAGE}
466 if [ ${EMB} -eq 0 ]; then
467 ipfire_make initramfs
473 : #ipfire_make usb-key
475 echo -n "Can't build usb-key images on this machine"
476 beautify message WARN
478 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
481 # We put here the code that is done when
482 # we do an embedded build
488 for i
in $
(ls -1 $BASEDIR/src
/rootfiles
/extras
); do
489 package
=$
(cut
-d.
-f2 <<< $i)
490 if [ -e $BASEDIR/lfs
/$package ]; then
492 beautify message SKIP
495 beautify message SKIP
506 # See what we're supposed to do
507 .
$BASEDIR/tools
/make-interactive