2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
23 NAME
="IPFire" # Software name
24 SNAME
="ipfire" # Short name
25 VERSION
="3.0-prealpha2" # Version number
26 TOOLCHAINVERSION
="${VERSION}-12" # Toolchain
27 SLOGAN
="Gluttony" # Software slogan
33 ################################################################################
34 # This builds the entire stage "toolchain" #
35 ################################################################################
39 export PATH
=${TOOLS_DIR}/usr/bin:${TOOLS_DIR}/usr/sbin:${TOOLS_DIR}/bin:${TOOLS_DIR}/sbin
:$PATH
43 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-toolchain.log"
46 build_spy stage
${STAGE}
48 # We can't skip packages in toolchain stage
49 SAVE_SKIP_PACKAGE_LIST
=$SKIP_PACKAGE_LIST
56 toolchain_make binutils PASS
=1
57 toolchain_make gcc PASS
=1
58 toolchain_make linux-headers
60 toolchain_make adjust-toolchain
61 toolchain_make test-toolchain PASS
=1
63 toolchain_make gcc PASS
=2
64 toolchain_make binutils PASS
=2
65 toolchain_make test-toolchain PASS
=2
66 toolchain_make ncurses
71 toolchain_make coreutils
73 toolchain_make diffutils
74 toolchain_make e2fsprogs
77 icecc_use toolchain
# Use the fresh gcc
79 toolchain_make findutils
81 toolchain_make
gettext
87 toolchain_make pax-utils
91 toolchain_make texinfo
95 toolchain_make autoconf
96 toolchain_make automake
99 export PATH
=$ORG_PATH SKIP_PACKAGE_LIST
=$SAVE_SKIP_PACKAGE_LIST
100 unset SAVE_SKIP_PACKAGE_LIST
103 ################################################################################
104 # This builds the entire stage "base" #
105 ################################################################################
108 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
112 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-base.log"
115 build_spy stage
${STAGE}
117 # Start distributed compiling with toolchain
123 ipfire_make system-release
124 ipfire_make linux-headers
125 ipfire_make man-pages
127 ipfire_make adjust-toolchain
128 ipfire_make test-toolchain
133 # Change to self-built gcc
139 ipfire_make pkg-config
153 ipfire_make util-linux-ng
154 ipfire_make e2fsprogs
155 ipfire_make coreutils
167 ipfire_make diffutils
170 ipfire_make findutils
183 ipfire_make module-init-tools
186 ipfire_make pax-utils
188 ipfire_make syslog-ng
195 ################################################################################
196 # This builds the entire stage "ipfire" #
197 ################################################################################
199 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
203 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-ipfire.log"
206 build_spy stage
${STAGE}
208 ### Building the configuration dirs and files
215 ### Building some general stuff
217 ipfire_make libdaemon
220 ipfire_make dbus-glib
222 ipfire_make initscripts
224 ipfire_make perl-xml-parser
227 ipfire_make python-cracklib
228 ipfire_make python-dbus
229 ipfire_make python-urlgrabber
230 ipfire_make python-IPy
235 ipfire_make libusb-compat
# Can be removed if usbutils supports libusb-1.0
240 ### Building some network stuff
243 ipfire_make linux-atm
248 ipfire_make libnfnetlink
249 ipfire_make libnetfilter_queue
250 ipfire_make libnetfilter_conntrack
251 ipfire_make libnetfilter_log
252 ipfire_make python-netfilter_conntrack
253 ipfire_make l7-protocols
254 ipfire_make bridge-utils
265 ### Building some general stuff
268 ipfire_make libassuan
269 ipfire_make libgpg-error
270 ipfire_make libgcrypt
275 ipfire_make cyrus-sasl
281 ipfire_make python-sqlite2
291 ipfire_make fontconfig
297 ipfire_make br2684ctl
298 ipfire_make etherwake
304 ipfire_make pdns-recursor
306 ipfire_make libnfsidmap
307 ipfire_make libgssglue
308 ipfire_make librpcsecgss
311 ### Building vpn stuff
313 ipfire_make strongswan
316 ### Building filesystem stuff
318 ipfire_make btrfs-progs
319 ipfire_make reiserfsprogs
321 ipfire_make reiser4progs
323 ipfire_make sysfsutils
324 ipfire_make squashfs-tools
325 ipfire_make dosfstools
329 ipfire_make cryptsetup-luks
330 ipfire_make python-cryptsetup
333 ### Building hardware utils
338 ipfire_make smartmontools
339 ipfire_make lm-sensors
345 ### Building some important tools
353 ipfire_make ez-ipupdate
356 ipfire_make webinterface
358 ipfire_make logrotate
359 #ipfire_make logwatch
360 ipfire_make dvdrtools
361 ipfire_make python-parted
362 ipfire_make python-pyblock
363 ipfire_make libbdevid
364 ipfire_make memtest86
+
367 ipfire_make wireless-tools
375 ################################################################################
376 # This builds the entire stage "misc" #
377 ################################################################################
380 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
384 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-misc.log"
387 build_spy stage
${STAGE}
391 ipfire_make miniupnpd
396 ipfire_make
traceroute
414 ipfire_make mkinitramfs
423 # ipfire_make net-snmp
426 ### These will become addons as usual but will be integrated later
429 #ipfire_make oinkmaster
431 #ipfire_make ghostscript
432 #ipfire_make foomatic
435 #ipfire_make fetchmail
436 #ipfire_make cyrus-imapd
440 #ipfire_make guardian
441 #ipfire_make ipfireseeder
443 ipfire_make nfs-utils
450 ipfire_make pychecker
459 ################################################################################
460 # This builds the entire stage "installer" #
461 ################################################################################
464 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
468 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-installer.log"
471 build_spy stage
${STAGE}
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_${TARGET}/_build.${STAGE_ORDER}-packages.log"
489 build_spy stage
${STAGE}
494 # Generate packages list
495 echo -n "Generating packages list"
496 pkg_list_packages
> $BASEDIR/doc
/packages-list.txt
497 beautify message DONE
499 if [ ${EMB} -eq 0 ]; then
500 ipfire_make images-core
501 ipfire_make images-info
502 ipfire_make images-initramfs
503 ipfire_make images-overlays
508 : #ipfire_make usb-key
510 echo -n "Can't build usb-key images on this machine"
511 beautify message WARN
513 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
516 # We put here the code that is done when
517 # we do an embedded build
529 # See what we're supposed to do
530 .
$BASEDIR/tools
/make-interactive