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}
50 # We can't skip packages in toolchain stage
51 SAVE_SKIP_PACKAGE_LIST
=$SKIP_PACKAGE_LIST
55 #toolchain_make scripts
56 # make distcc first so that CCACHE_PREFIX works immediately
57 [ -z "$DISTCC_HOSTS" ] || toolchain_make distcc
59 toolchain_make binutils PASS
=1
60 toolchain_make gcc PASS
=1
61 toolchain_make linux-headers
63 toolchain_make adjust-toolchain
64 toolchain_make test-toolchain PASS
=1
66 toolchain_make gcc PASS
=2
67 toolchain_make binutils PASS
=2
68 toolchain_make test-toolchain PASS
=2
69 toolchain_make ncurses
72 toolchain_make coreutils
73 toolchain_make diffutils
74 toolchain_make e2fsprogs
75 toolchain_make findutils
77 toolchain_make
gettext
86 toolchain_make texinfo
89 toolchain_make util-linux-ng
91 export PATH
=$ORG_PATH SKIP_PACKAGE_LIST
=$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
133 ipfire_make pkg-config
141 ipfire_make diffutils
144 ipfire_make findutils
153 ipfire_make initd-tools
154 ipfire_make initscripts
160 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
196 ### Building some general stuff
201 ipfire_make dbus-glib
202 # ipfire_make openssl
203 ipfire_make perl
### We are building the modules here.
205 ipfire_make python-dbus
206 ipfire_make python-urlgrabber
207 ipfire_make python-iconv
208 ipfire_make python-IPy
213 ipfire_make libusb-compat
# Can be removed if usbutils supports libusb-1.0
217 ### Building some network stuff
220 ipfire_make linux-atm
225 ipfire_make libnfnetlink
226 ipfire_make libnetfilter_queue
227 ipfire_make libnetfilter_conntrack
228 ipfire_make libnetfilter_log
229 ipfire_make python-netfilter_conntrack
231 ipfire_make l7-protocols
232 ipfire_make bridge-utils
237 ### Building some general stuff
240 ipfire_make pam PASS
=1
241 ipfire_make shadow-pam
242 ipfire_make pam PASS
=2
245 ipfire_make cyrus-sasl
258 ipfire_make fontconfig
264 ipfire_make br2684ctl
265 ipfire_make etherwake
270 ### Building vpn stuff
272 ipfire_make strongswan
275 ### Building filesystem stuff
277 ipfire_make reiserfsprogs
279 ipfire_make reiser4progs
281 ipfire_make sysfsutils
284 ### Building hardware utils
289 ipfire_make smartmontools
290 ipfire_make lm-sensors
294 ### Building some important tools
301 ipfire_make ntp
### Needs config.
303 ipfire_make ez-ipupdate
306 ipfire_make webinterface
308 ipfire_make logrotate
309 #ipfire_make logwatch
313 ipfire_make python-parted
314 ipfire_make memtest86
+
319 ### -------------------------------------------------------------------------
320 ### Tools that maybe not needed
327 #ipfire_make wireless
331 ################################################################################
332 # This builds the entire stage "misc" #
333 ################################################################################
336 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
340 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-misc.log"
343 build_spy stage
${STAGE}
347 ipfire_make miniupnpd
352 #ipfire_make traceroute
365 ipfire_make bootutils
366 ipfire_make mkinitramfs
369 #ipfire_make squidguard ## CAN THIS BE BANISHED BY ANYTHING BETTER?
370 #ipfire_make calamaris ## CAN THIS BE BANISHED BY ANYTHING BETTER?
382 #ipfire_make linux-igd
384 ### These will become addons as usual but will be integrated later
387 #ipfire_make oinkmaster
388 #ipfire_make centerim
389 #ipfire_make tripwire
392 #ipfire_make ghostscript
393 #ipfire_make foomatic
397 #ipfire_make fetchmail
398 #ipfire_make cyrus-imapd
402 #ipfire_make guardian
403 #ipfire_make libid3tag
406 #ipfire_make libvorbis
409 #ipfire_make libshout
411 #ipfire_make icegenerator
415 #ipfire_make libmpeg2
416 #ipfire_make videolan
418 #ipfire_make asterisk
419 #ipfire_make libsigc++
420 #ipfire_make applejuice
421 #ipfire_make libtorrent
422 #ipfire_make rtorrent
423 #ipfire_make ipfireseeder
426 # ---------------------------------------------------------------------------
434 ipfire_make pychecker
437 ################################################################################
438 # This builds the entire stage "installer" #
439 ################################################################################
442 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
446 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-installer.log"
449 build_spy stage
${STAGE}
455 ################################################################################
456 # This builds the entire stage "packages" #
457 ################################################################################
460 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
464 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-packages.log"
467 build_spy stage
${STAGE}
474 # Generate packages list
475 echo -n "Generating packages list"
476 software_list
> $BASEDIR/doc
/packages-list.txt
477 beautify message DONE
479 if [ ${EMB} -eq 0 ]; then
480 ipfire_make initramfs
486 : #ipfire_make usb-key
488 echo -n "Can't build usb-key images on this machine"
489 beautify message WARN
491 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
494 # We put here the code that is done when
495 # we do an embedded build
501 for i
in $
(ls -1 $BASEDIR/src
/rootfiles
/extras
); do
502 package
=$
(cut
-d.
-f2 <<< $i)
503 if [ -e $BASEDIR/lfs
/$package ]; then
505 beautify message SKIP
508 beautify message SKIP
519 # See what we're supposed to do
520 .
$BASEDIR/tools
/make-interactive