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-prealpha2" # Version number
28 TOOLCHAINVERSION
="${VERSION}-4" # Toolchain
29 SLOGAN
="Gluttony" # 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}
50 # We can't skip packages in toolchain stage
51 SAVE_SKIP_PACKAGE_LIST
=$SKIP_PACKAGE_LIST
55 # make distcc first so that CCACHE_PREFIX works immediately
58 toolchain_make binutils PASS
=1
59 toolchain_make gcc PASS
=1
60 toolchain_make linux-headers
62 toolchain_make adjust-toolchain
63 toolchain_make test-toolchain PASS
=1
65 toolchain_make gcc PASS
=2
66 toolchain_make binutils PASS
=2
67 toolchain_make test-toolchain PASS
=2
68 toolchain_make ncurses
71 toolchain_make coreutils
72 toolchain_make diffutils
73 toolchain_make e2fsprogs
74 toolchain_make findutils
76 toolchain_make
gettext
85 toolchain_make texinfo
88 toolchain_make util-linux-ng
90 export PATH
=$ORG_PATH SKIP_PACKAGE_LIST
=$SAVE_SKIP_PACKAGE_LIST
91 unset SAVE_SKIP_PACKAGE_LIST
94 ################################################################################
95 # This builds the entire stage "base" #
96 ################################################################################
99 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
103 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-base.log"
106 build_spy stage
${STAGE}
110 ipfire_make linux-headers
111 ipfire_make man-pages
113 ipfire_make adjust-toolchain
114 ipfire_make test-toolchain
120 ipfire_make e2fsprogs
121 ipfire_make coreutils
135 ipfire_make pkg-config
142 ipfire_make diffutils
145 ipfire_make findutils
154 ipfire_make initd-tools
155 ipfire_make initscripts
161 ipfire_make module-init-tools
166 ipfire_make syslog-ng
171 ipfire_make util-linux-ng
175 ################################################################################
176 # This builds the entire stage "ipfire" #
177 ################################################################################
179 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
183 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-ipfire.log"
186 build_spy stage
${STAGE}
188 ### Building the configuration dirs and files
195 ### Building some general stuff
197 ipfire_make libdaemon
200 ipfire_make dbus-glib
202 ipfire_make perl-xml-parser
205 ipfire_make python-dbus
206 ipfire_make python-urlgrabber
207 ipfire_make python-IPy
212 ipfire_make libusb-compat
# Can be removed if usbutils supports libusb-1.0
218 ### Building some network stuff
221 ipfire_make linux-atm
227 ipfire_make libnfnetlink
228 ipfire_make libnetfilter_queue
229 ipfire_make libnetfilter_conntrack
230 ipfire_make libnetfilter_log
231 ipfire_make python-netfilter_conntrack
232 ipfire_make l7-protocols
233 ipfire_make bridge-utils
239 ### Building some general stuff
242 ipfire_make libassuan
243 ipfire_make libgpg-error
244 ipfire_make libgcrypt
247 ipfire_make pam PASS
=1
248 ipfire_make shadow-pam
249 ipfire_make pam PASS
=2
252 ipfire_make cyrus-sasl
267 ipfire_make fontconfig
273 ipfire_make br2684ctl
274 ipfire_make etherwake
279 ipfire_make pdns-recursor
281 ### Building vpn stuff
283 ipfire_make strongswan
286 ### Building filesystem stuff
288 ipfire_make btrfs-progs
289 ipfire_make reiserfsprogs
291 ipfire_make reiser4progs
293 ipfire_make sysfsutils
294 ipfire_make squashfs-tools
295 ipfire_make dosfstools
299 ipfire_make cryptsetup-luks
300 ipfire_make python-cryptsetup
302 ### Building hardware utils
307 ipfire_make smartmontools
308 ipfire_make lm-sensors
313 ### Building some important tools
322 ipfire_make ez-ipupdate
325 ipfire_make webinterface
327 ipfire_make logrotate
328 #ipfire_make logwatch
330 ipfire_make dvdrtools
331 ipfire_make python-parted
332 ipfire_make python-pyblock
333 ipfire_make libbdevid
334 ipfire_make memtest86
+
337 ipfire_make wireless-tools
344 ################################################################################
345 # This builds the entire stage "misc" #
346 ################################################################################
349 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
353 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-misc.log"
356 build_spy stage
${STAGE}
360 ipfire_make miniupnpd
365 ipfire_make
traceroute
382 ipfire_make bootutils
383 ipfire_make mkinitramfs
395 ### These will become addons as usual but will be integrated later
398 #ipfire_make oinkmaster
400 #ipfire_make ghostscript
401 #ipfire_make foomatic
404 #ipfire_make fetchmail
405 #ipfire_make cyrus-imapd
409 #ipfire_make guardian
410 #ipfire_make ipfireseeder
415 ipfire_make pax-utils
419 ipfire_make pychecker
422 ################################################################################
423 # This builds the entire stage "installer" #
424 ################################################################################
427 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
431 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-installer.log"
434 build_spy stage
${STAGE}
440 ################################################################################
441 # This builds the entire stage "packages" #
442 ################################################################################
445 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
449 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-packages.log"
452 build_spy stage
${STAGE}
455 ipfire_make quality-agent
460 # Generate packages list
461 echo -n "Generating packages list"
462 pkg_list_packages
> $BASEDIR/doc
/packages-list.txt
463 beautify message DONE
467 for package
in $BASEDIR/lfs
/*; do
468 package_make $
(basename $package)
471 if [ ${EMB} -eq 0 ]; then
472 ipfire_make initramfs
478 : #ipfire_make usb-key
480 echo -n "Can't build usb-key images on this machine"
481 beautify message WARN
483 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
486 # We put here the code that is done when
487 # we do an embedded build
499 # See what we're supposed to do
500 .
$BASEDIR/tools
/make-interactive