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}-16" # 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
57 toolchain_make linux-headers
60 toolchain_make adjust-toolchain
61 toolchain_make test-toolchain PASS
=1
62 toolchain_make gcc PASS
=2
63 toolchain_make binutils PASS
=2
64 toolchain_make test-toolchain PASS
=2
65 toolchain_make ncurses
68 toolchain_make coreutils
69 toolchain_make diffutils
70 toolchain_make e2fsprogs
71 toolchain_make findutils
73 toolchain_make
gettext
82 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_${TARGET}/_build.${STAGE_ORDER}-base.log"
102 build_spy stage
${STAGE}
106 ipfire_make linux-headers
107 ipfire_make man-pages
109 ipfire_make adjust-toolchain
110 ipfire_make test-toolchain
116 ipfire_make e2fsprogs
117 ipfire_make coreutils
129 ipfire_make pkg-config
137 ipfire_make diffutils
140 ipfire_make findutils
149 ipfire_make initd-tools
150 ipfire_make initscripts
156 ipfire_make module-init-tools
162 ipfire_make syslog-ng
167 ipfire_make util-linux-ng
171 ################################################################################
172 # This builds the entire stage "ipfire" #
173 ################################################################################
175 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
179 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-ipfire.log"
182 build_spy stage
${STAGE}
184 ### Building the configuration dirs and files
192 ### Building some general stuff
197 ipfire_make dbus-glib
198 # ipfire_make openssl
199 ipfire_make perl
### We are building the modules here.
201 ipfire_make python-dbus
202 ipfire_make python-urlgrabber
203 ipfire_make python-iconv
204 ipfire_make python-IPy
209 ipfire_make libusb-compat
# Can be removed if usbutils supports libusb-1.0
213 ### Building some network stuff
216 ipfire_make linux-atm
221 ipfire_make libnfnetlink
222 ipfire_make libnetfilter_queue
223 ipfire_make libnetfilter_conntrack
224 ipfire_make libnetfilter_log
225 ipfire_make python-netfilter_conntrack
227 ipfire_make l7-protocols
228 ipfire_make bridge-utils
233 ### Building some general stuff
236 ipfire_make pam PASS
=1
237 ipfire_make shadow-pam
238 ipfire_make pam PASS
=2
241 ipfire_make cyrus-sasl
254 ipfire_make fontconfig
260 ipfire_make br2684ctl
261 ipfire_make etherwake
266 ### Building vpn stuff
268 ipfire_make strongswan
271 ### Building filesystem stuff
273 ipfire_make reiserfsprogs
275 ipfire_make reiser4progs
277 ipfire_make sysfsutils
280 ### Building hardware utils
285 ipfire_make smartmontools
286 ipfire_make lm-sensors
290 ### Building some important tools
297 ipfire_make ntp
### Needs config.
299 ipfire_make ez-ipupdate
302 ipfire_make webinterface
304 ipfire_make logrotate
305 #ipfire_make logwatch
309 ipfire_make python-parted
310 ipfire_make memtest86
+
315 ### -------------------------------------------------------------------------
316 ### Tools that maybe not needed
323 #ipfire_make wireless
327 ################################################################################
328 # This builds the entire stage "misc" #
329 ################################################################################
332 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
336 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-misc.log"
339 build_spy stage
${STAGE}
343 ipfire_make miniupnpd
348 #ipfire_make traceroute
361 ipfire_make bootutils
362 ipfire_make mkinitramfs
365 #ipfire_make squidguard ## CAN THIS BE BANISHED BY ANYTHING BETTER?
366 #ipfire_make calamaris ## CAN THIS BE BANISHED BY ANYTHING BETTER?
378 #ipfire_make linux-igd
380 ### These will become addons as usual but will be integrated later
383 #ipfire_make oinkmaster
384 #ipfire_make centerim
385 #ipfire_make tripwire
388 #ipfire_make ghostscript
389 #ipfire_make foomatic
393 #ipfire_make fetchmail
394 #ipfire_make cyrus-imapd
398 #ipfire_make guardian
399 #ipfire_make libid3tag
402 #ipfire_make libvorbis
405 #ipfire_make libshout
407 #ipfire_make icegenerator
411 #ipfire_make libmpeg2
412 #ipfire_make videolan
414 #ipfire_make asterisk
415 #ipfire_make libsigc++
416 #ipfire_make applejuice
417 #ipfire_make libtorrent
418 #ipfire_make rtorrent
419 #ipfire_make ipfireseeder
422 # ---------------------------------------------------------------------------
430 ipfire_make pychecker
433 ################################################################################
434 # This builds the entire stage "installer" #
435 ################################################################################
438 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
442 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-installer.log"
445 build_spy stage
${STAGE}
451 ################################################################################
452 # This builds the entire stage "packages" #
453 ################################################################################
456 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
460 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-packages.log"
463 build_spy stage
${STAGE}
470 # Generate packages list
471 echo -n "Generating packages list"
472 software_list
> $BASEDIR/doc
/packages-list.txt
473 beautify message DONE
475 if [ ${EMB} -eq 0 ]; then
476 ipfire_make initramfs
482 : #ipfire_make usb-key
484 echo -n "Can't build usb-key images on this machine"
485 beautify message WARN
487 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
490 # We put here the code that is done when
491 # we do an embedded build
497 for i
in $
(ls -1 $BASEDIR/src
/rootfiles
/extras
); do
498 package
=$
(cut
-d.
-f2 <<< $i)
499 if [ -e $BASEDIR/lfs
/$package ]; then
501 beautify message SKIP
504 beautify message SKIP
515 # See what we're supposed to do
516 .
$BASEDIR/tools
/make-interactive