]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - make.sh
uClibc haengt...
[people/pmueller/ipfire-2.x.git] / make.sh
diff --git a/make.sh b/make.sh
index 3fd8fa041d3e82e2a886de4a7f23c42d923e403d..fd279d8a49bcf64c9e055433492d0969b88c07a2 100644 (file)
--- a/make.sh
+++ b/make.sh
@@ -66,7 +66,13 @@ mkdir $BASEDIR/log/ 2>/dev/null
 if [ -f .config ]; then
        . .config
 else
-       make_config
+       echo -e  "${BOLD}No configuration found!${NORMAL}"
+       echo -ne "Do you want to create one (y/N)?"
+       read CREATE_CONFIG
+       echo ""
+       if [ "$CREATE_CONFIG" == "y" ]; then
+               make_config
+       fi
 fi
 
 prepareenv() {
@@ -194,7 +200,9 @@ prepareenv() {
     mount --bind $BASEDIR/src    $BASEDIR/build/usr/src/src
 
     # This is a temporary hack!!!
-    cp -f /bin/hostname /tools/bin/hostname 2>/dev/null
+    if [ ! -f /tools/bin/hostname ]; then
+      cp -f /bin/hostname /tools/bin/hostname 2>/dev/null
+    fi
 
     # Run LFS static binary creation scripts one by one
     export CCACHE_DIR=$BASEDIR/ccache
@@ -248,7 +256,6 @@ buildbase() {
     LOGFILE="$BASEDIR/log/_build.base.log"
     export LOGFILE
     lfsmake2 stage2
-#    lfsmake2 makedev
     lfsmake2 linux-libc-header
     lfsmake2 man-pages
     lfsmake2 glibc
@@ -318,8 +325,8 @@ buildipfire() {
   ipfiremake ppp
   ipfiremake rp-pppoe
   ipfiremake unzip
-  ipfiremake linux                     PASS=installer
-  ipfiremake linux                     PASS=SMP
+#  ipfiremake linux                    PASS=I # Can we remove the installer kernel?
+  ipfiremake linux                     PASS=S
 #  ipfiremake 3cp4218          PASS=SMP
 #  ipfiremake amedyn                   PASS=SMP
 #  ipfiremake cxacru                   PASS=SMP
@@ -335,55 +342,58 @@ buildipfire() {
 #  ipfiremake pulsar                   PASS=SMP
 #  ipfiremake unicorn          PASS=SMP
 #  ipfiremake promise-sata-300-tx      PASS=SMP
+  ipfiremake zaptel                    PASS=S
   ipfiremake linux
-#  ipfiremake 3cp4218  
-#  ipfiremake amedyn   
-#  ipfiremake cxacru   
-#  ipfiremake eciadsl  
-#  ipfiremake eagle    
-#  ipfiremake speedtouch       
-#  ipfiremake cnx_pci  
-#  ipfiremake fcdsl    
-#  ipfiremake fcdsl2   
-#  ipfiremake fcdslsl  
-#  ipfiremake fcdslusb         
-#  ipfiremake fcdslslusb 
+#  ipfiremake 3cp4218
+#  ipfiremake amedyn
+#  ipfiremake cxacru
+#  ipfiremake eciadsl
+#  ipfiremake eagle
+#  ipfiremake speedtouch
+#  ipfiremake cnx_pci
+#  ipfiremake fcdsl
+#  ipfiremake fcdsl2
+#  ipfiremake fcdslsl
+#  ipfiremake fcdslusb
+#  ipfiremake fcdslslusb
 #  ipfiremake fcpci
 #  ipfiremake fcclassic
-#  ipfiremake pulsar   
+#  ipfiremake pulsar
 #  ipfiremake unicorn
 #  ipfiremake promise-sata-300-tx
-  ipfiremake pcmcia-cs
+  ipfiremake zaptel
+#  ipfiremake pcmciautils
   ipfiremake expat
   ipfiremake gdbm
   ipfiremake gmp
+  ipfiremake pam
   ipfiremake openssl
   ipfiremake python
   ipfiremake libnet
+  ipfiremake libjpeg
   ipfiremake libpng
   ipfiremake libtiff
-  ipfiremake libjpeg
   ipfiremake lcms
   ipfiremake libmng
   ipfiremake freetype
+  ipfiremake libart
   ipfiremake gd
   ipfiremake popt
+  ipfiremake pcre
   ipfiremake slang
   ipfiremake newt
   ipfiremake libcap
   ipfiremake pciutils
-  ipfiremake pcre
-  ipfiremake readline
   ipfiremake libxml2
-  ipfiremake berkeley
-  ipfiremake BerkeleyDB ## The Perl module
+  ipfiremake BerkeleyDB
   ipfiremake mysql
-  ipfiremake saslauthd PASS=1
+  ipfiremake cyrus-sasl
   ipfiremake openldap
+#  ipfiremake cyrus-sasl PASS=L # Doesn't work yet. Thereby there's the question: Do we really need this?
   ipfiremake apache2
   ipfiremake php
   ipfiremake subversion
-  ipfiremake apache2 PASS=CONFIG
+  ipfiremake apache2 PASS=C
   ipfiremake arping
   ipfiremake beep
   ipfiremake bind
@@ -394,7 +404,7 @@ buildipfire() {
   ipfiremake ethtool
   ipfiremake ez-ipupdate
   ipfiremake fcron
-  ipfiremake perl-GD
+  ipfiremake GD
   ipfiremake gnupg
   ipfiremake hdparm
   ipfiremake ibod
@@ -402,13 +412,12 @@ buildipfire() {
   ipfiremake iptables
   ipfiremake ipac-ng
   ipfiremake ipaddr
-  ipfiremake iproute2
   ipfiremake iptstate
   ipfiremake iputils
   ipfiremake l7-protocols
-  ipfiremake isapnptools
-  ipfiremake isdn4k-utils
-  ipfiremake kudzu
+#  ipfiremake isapnptools # ERROR :(
+#  ipfiremake isdn4k-utils # What about mISDN???
+#  ipfiremake kudzu # ERROR :(
   ipfiremake logrotate
   ipfiremake logwatch
   ipfiremake mingetty
@@ -417,6 +426,7 @@ buildipfire() {
   ipfiremake nano
   ipfiremake nash
   ipfiremake nasm
+### The Perl Modules have to be updated! I will skip this now!
   ipfiremake URI
   ipfiremake HTML-Tagset
   ipfiremake HTML-Parser
@@ -440,6 +450,7 @@ buildipfire() {
   ipfiremake Text-Tabs+Wrap
   ipfiremake Locale-Country
   ipfiremake GeoIP
+###
   ipfiremake fwhits
   ipfiremake noip_updater
   ipfiremake ntp
@@ -454,7 +465,7 @@ buildipfire() {
   ipfiremake squid
   ipfiremake squid-graph
   ipfiremake squidguard
-  ipfiremake tcpdump
+#  ipfiremake tcpdump
   ipfiremake traceroute
   ipfiremake vlan
   ipfiremake wireless
@@ -469,9 +480,7 @@ buildipfire() {
   ipfiremake openvpn
   ipfiremake pkg-config
   ipfiremake glib
-  ipfiremake pam
   ipfiremake pammysql
-  ipfiremake saslauthd PASS=2
   ipfiremake xinetd
   ipfiremake ghostscript
   ipfiremake cups
@@ -495,11 +504,10 @@ buildipfire() {
   ipfiremake clamav
   ipfiremake razor
   ipfiremake spamassassin
-#  ipfiremake amavisd
+  ipfiremake amavisd
   ipfiremake stund
-  ipfiremake zaptel
   ipfiremake libpri
-  ipfiremake bristuff
+# ipfiremake bristuff
   ipfiremake asterisk
   ipfiremake mpg123
   ipfiremake libmad
@@ -654,7 +662,6 @@ ipfirepackages() {
   ipfiredist lame
   ipfiredist libmad
   ipfiredist libogg
-  ipfiredist libtiff
   ipfiredist libvorbis
   ipfiredist mailx
   ipfiredist mldonkey
@@ -810,7 +817,7 @@ newpak)
        fi
        exit 0
        ;;
-prefetch)
+downloadsrc)
        if [ ! -d $BASEDIR/cache ]; then
                mkdir $BASEDIR/cache
        fi
@@ -944,15 +951,23 @@ svn)
          ;;
          commit|ci)
                clear
+               if [ -f /usr/bin/mcedit ]; then
+                       export EDITOR=/usr/bin/mcedit
+               else
+                       if [ -f /usr/bin/nano ]; then
+                               export EDITOR=/usr/bin/nano
+                       fi
+               fi
+               echo -ne "Selecting editor $EDITOR..."
+               beautify message DONE
                if [ -e /sbin/yast ]; then
                        if [ "`echo $SVN_REVISION | cut -c 3`" -eq "0" ]; then
                                $0 changelog
                        fi
                fi
-               echo "Upload the changed files..."
-               sleep 1
                svn commit
                $0 svn up
+               $0 uploadsrc
          ;;
          dist)
                if [ $3 ]; then
@@ -1085,14 +1100,14 @@ batch)
 watch)
        watch_screen
        ;;
-*)
+"")
        clear
        svn info
-       select name in "Exit" "IPFIRE: Prefetch" "IPFIRE: Build (silent)" "IPFIRE: Watch Build" "IPFIRE: Batch" "IPFIRE: Clean" "SVN: Commit" "SVN: Update" "SVN: Status" "SVN: Diff" "LOG: Tail" "Help"
+       select name in "Exit" "IPFIRE: Downloadsrc" "IPFIRE: Build (silent)" "IPFIRE: Watch Build" "IPFIRE: Batch" "IPFIRE: Clean" "SVN: Commit" "SVN: Update" "SVN: Status" "SVN: Diff" "LOG: Tail" "Help"
        do
        case $name in
-       "IPFIRE: Prefetch")
-               $0 prefetch
+       "IPFIRE: Downloadsrc")
+               $0 downloadsrc
                ;;
        "IPFIRE: Build (silent)")
                $0 build-silent
@@ -1106,27 +1121,11 @@ watch)
        "IPFIRE: Clean")
                $0 clean
                ;;
-       "SVN: Commit")
-               if [ -f /usr/bin/mcedit ]; then
-                       export EDITOR=/usr/bin/mcedit
-               fi
-               if [ -f /usr/bin/nano ]; then
-                       export EDITOR=/usr/bin/nano
-               fi
-               $0 svn commit
-               $0 uploadsrc
-               ;;
        "SVN: Update")
                $0 svn update
                ;;
-       "SVN: Status")
-               svn status # | grep -v ^?
-               ;;
-       "SVN: Diff")
-               $0 svn diff
-               ;;
        "Help")
-               echo "Usage: $0 {build|changelog|clean|gettoolchain|newpak|prefetch|shell|sync|toolchain}"
+               echo "Usage: $0 {build|changelog|clean|gettoolchain|newpak|downloadsrc|shell|sync|toolchain}"
                cat doc/make.sh-usage
                ;;
        "LOG: Tail")
@@ -1138,4 +1137,8 @@ watch)
        esac
        done
        ;;
+*)
+       echo "Usage: $0 {build|changelog|clean|gettoolchain|newpak|downloadsrc|shell|sync|toolchain}"
+       cat doc/make.sh-usage
+       ;;
 esac