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}-18" # 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 # 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
93 ################################################################################
94 # This builds the entire stage "base" #
95 ################################################################################
98 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:$TOOLS_DIR/bin
102 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-base.log"
105 build_spy stage
${STAGE}
109 ipfire_make linux-headers
110 ipfire_make man-pages
112 ipfire_make adjust-toolchain
113 ipfire_make test-toolchain
119 ipfire_make e2fsprogs
120 ipfire_make coreutils
132 ipfire_make pkg-config
140 ipfire_make diffutils
143 ipfire_make findutils
152 ipfire_make initd-tools
153 ipfire_make initscripts
159 ipfire_make module-init-tools
164 ipfire_make syslog-ng
169 ipfire_make util-linux-ng
173 ################################################################################
174 # This builds the entire stage "ipfire" #
175 ################################################################################
177 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
181 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-ipfire.log"
184 build_spy stage
${STAGE}
186 ### Building the configuration dirs and files
194 ### Building some general stuff
199 ipfire_make dbus-glib
201 ipfire_make perl-xml-parser
203 ipfire_make python-dbus
204 ipfire_make python-urlgrabber
205 ipfire_make python-IPy
210 ipfire_make libusb-compat
# Can be removed if usbutils supports libusb-1.0
214 ### Building some network stuff
217 ipfire_make linux-atm
222 ipfire_make libnfnetlink
223 ipfire_make libnetfilter_queue
224 ipfire_make libnetfilter_conntrack
225 ipfire_make libnetfilter_log
226 ipfire_make python-netfilter_conntrack
228 ipfire_make l7-protocols
229 ipfire_make bridge-utils
234 ### Building some general stuff
237 ipfire_make libassuan
238 ipfire_make libgpg-error
239 ipfire_make libgcrypt
242 ipfire_make pam PASS
=1
243 ipfire_make shadow-pam
244 ipfire_make pam PASS
=2
247 ipfire_make cyrus-sasl
261 ipfire_make fontconfig
267 ipfire_make br2684ctl
268 ipfire_make etherwake
273 ### Building vpn stuff
275 ipfire_make strongswan
278 ### Building filesystem stuff
280 ipfire_make reiserfsprogs
282 ipfire_make reiser4progs
284 ipfire_make sysfsutils
287 ### Building hardware utils
292 ipfire_make smartmontools
293 ipfire_make lm-sensors
298 ### Building some important tools
305 ipfire_make ntp
### Needs config.
307 ipfire_make ez-ipupdate
310 ipfire_make webinterface
312 ipfire_make logrotate
313 #ipfire_make logwatch
316 ipfire_make python-parted
317 ipfire_make memtest86
+
323 ### -------------------------------------------------------------------------
324 ### Tools that maybe not needed
331 #ipfire_make wireless
335 ################################################################################
336 # This builds the entire stage "misc" #
337 ################################################################################
340 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
344 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-misc.log"
347 build_spy stage
${STAGE}
351 ipfire_make miniupnpd
356 #ipfire_make traceroute
369 ipfire_make bootutils
370 ipfire_make mkinitramfs
373 #ipfire_make squidguard ## CAN THIS BE BANISHED BY ANYTHING BETTER?
374 #ipfire_make calamaris ## CAN THIS BE BANISHED BY ANYTHING BETTER?
386 #ipfire_make linux-igd
388 ### These will become addons as usual but will be integrated later
391 #ipfire_make oinkmaster
392 #ipfire_make centerim
393 #ipfire_make tripwire
396 #ipfire_make ghostscript
397 #ipfire_make foomatic
401 #ipfire_make fetchmail
402 #ipfire_make cyrus-imapd
406 #ipfire_make guardian
407 #ipfire_make libid3tag
410 #ipfire_make libvorbis
413 #ipfire_make libshout
415 #ipfire_make icegenerator
419 #ipfire_make libmpeg2
420 #ipfire_make videolan
422 #ipfire_make asterisk
423 #ipfire_make libsigc++
424 #ipfire_make applejuice
425 #ipfire_make libtorrent
426 #ipfire_make rtorrent
427 #ipfire_make ipfireseeder
430 # ---------------------------------------------------------------------------
438 ipfire_make pychecker
441 ################################################################################
442 # This builds the entire stage "installer" #
443 ################################################################################
446 PATH
=${TOOLS_DIR}/usr
/bin
:/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/usr
/${MACHINE_REAL}-linux/bin
450 LOGFILE
="$BASEDIR/log_${TARGET}/_build.${STAGE_ORDER}-installer.log"
453 build_spy stage
${STAGE}
459 ################################################################################
460 # This builds the entire stage "packages" #
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}-packages.log"
471 build_spy stage
${STAGE}
478 # Generate packages list
479 echo -n "Generating packages list"
480 software_list
> $BASEDIR/doc
/packages-list.txt
481 beautify message DONE
483 if [ ${EMB} -eq 0 ]; then
484 ipfire_make initramfs
490 : #ipfire_make usb-key
492 echo -n "Can't build usb-key images on this machine"
493 beautify message WARN
495 mv $LFS/$IMAGES_DIR/{*.iso
,*.
tar.gz
,*.img.gz
} $BASEDIR >>$LOGFILE 2>&1
498 # We put here the code that is done when
499 # we do an embedded build
505 for i
in $
(ls -1 $BASEDIR/src
/rootfiles
/extras
); do
506 package
=$
(cut
-d.
-f2 <<< $i)
507 if [ -e $BASEDIR/lfs
/$package ]; then
509 beautify message SKIP
512 beautify message SKIP
523 # See what we're supposed to do
524 .
$BASEDIR/tools
/make-interactive