Semi-automated scripts that I threw together

Ingo Blechschmidt iblech at web.de
Sun Nov 11 02:20:22 PST 2001


On Sat, Nov 03, 2001 at 04:03:05PM -0800, Thien Vu wrote:
> I haven't actually look at the work put into naLFS, but I just wanted to 
> throw some stuff out that I put together that semi-automates LFS.
> 
> The basic premise is pretty simple some initial variables such as
> PROG, VER, FILE, DIR are set.
> 
> Then the LFS stuff is run.
> 
> Then the source and/or compilation directories are erased.
> 
> Installtion is not all automatic yet, but I can't imagine things being too 
> far from it. To run it, it goes something like:
> 
> $ bash 001create-dirs
> $ bash 002copying-source
> $ bash 003bash
> 
> There are a couple of version changes that I would like to put out:
> linux-2.4.13
> man-pages-1.42
> bison-1.30
> shadow-4.0.0
> lilo-22.1
> 
> Since this is hosted on DSL, I'm only including the scripts and 
> configuration files. The package changes above, you have to get on your own.
> 
> http://thien-vu.dyndns.org/~thien/commands.tar.bz2
> 
> Feedback for this would be great!
> 
> 
> Thien Vu
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> -- 
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe alfs-discuss' in the subject header of the message

Great! With this I have a running LFS!

Ok, I had to do some changes, a patch generated with diff -u $LFS/commands
commands is attached.

The following packets I had to download:

insgesamt 84631
-rw-r--r--    1 iblech   root        32992 Nov  9 14:55 biew530.tar.bz2
-rw-r--r--    1 iblech   root       521621 Nov 10 16:36 bison-1.30.tar.bz2
-rw-r--r--    1 iblech   root     79636480 Nov  9 21:09 lfs-packages-3.0.tar
-rw-r--r--    1 iblech   root      1184578 Sep 23 01:14 libtool_1.4.2.orig.tar.gz
-rw-r--r--    1 iblech   root       319754 Nov  1 00:15 lilo-22.1.tar.gz
-rw-r--r--    1 iblech   root       251909 Jul 19 03:34 reiserfsprogs-3.x.0j.tar.gz
-rw-r--r--    1 iblech   root       767458 Jul 16 16:36 shadow-4.0.0.tar.gz
-rw-r--r--    1 iblech   root      2776551 Sep 27 06:54 vim-6.0.tar.bz2

And, a (silly?) question: It is (with LILO) possible, to load
an Linux system NOT from a partition, but a directory (e.g)
/lfs? Probably I should ask this question in BLFS...

Greetings from Bavaria,

	Ingo Blechschmidt!

-- 
Written by Ingo Blechschmidt, iblech at web.de or +49 / 821 882955.  .~.
Time sharing - the use of many people by the computer.            /V\
See http://linide.sourceforge.net/. Registered Linuxer #232173,  /( )\
registered Linux machine #111789 + #117739, see                  ^`~'^
http://counter.li.org/.

-------------- next part --------------
diff -u /mnt/lfs/commands/008gcc commands/008gcc
--- /mnt/lfs/commands/008gcc	Sat Nov 10 10:31:49 2001
+++ commands/008gcc	Sun Nov  4 01:00:15 2001
@@ -10,7 +10,7 @@
 tar jxf $FILE
 cd $DIR
 
-#patch -Np1 -i ../gcc-2.95.3-2.patch &&
+patch -Np1 -i ../gcc-2.95.3-2.patch &&
 mkdir ../gcc-build &&
 cd ../gcc-build &&
 ../gcc-2.95.3/configure --prefix=/usr --enable-languages=c,c++ \
@@ -25,7 +25,7 @@
 ln -sf gcc cc
 
 cd ..
-#rm -rf $DIR/../gcc-build
-#rm -rf $DIR
+rm -rf $DIR/../gcc-build
+rm -rf $DIR
 
 cd $TOP
diff -u /mnt/lfs/commands/011linux commands/011linux
--- /mnt/lfs/commands/011linux	Sat Nov 10 13:24:46 2001
+++ commands/011linux	Sun Nov  4 01:00:15 2001
@@ -2,12 +2,12 @@
 
 PROG=linux
 VER=2.4.13
-EXT=tar.gz
+EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=$LFS/usr/src/$PROG
 
 cd $LFS/usr/src
-tar zxf $FILE
+tar jxf $FILE
 cd $DIR
 
 make mrproper &&
@@ -15,8 +15,10 @@
 make dep &&
 cd $LFS/usr/include &&
 cp -a ../src/linux/include/linux . &&
+chown -R root.root $LFS/usr/include/linux &&
 mkdir asm &&
-cp -a ../src/linux/include/asm/* asm
+cp -a ../src/linux/include/asm/* asm &&
+chown -R root.root $LFS/usr/include/asm
 
 cd ..
 rm -rf $DIR
diff -u /mnt/lfs/commands/025glibc commands/025glibc
--- /mnt/lfs/commands/025glibc	Sat Nov 10 10:26:19 2001
+++ commands/025glibc	Sun Nov  4 01:00:15 2001
@@ -7,12 +7,12 @@
 DIR=/usr/src/$PROG-$VER
 
 cd /usr/src
-bunzip2 -c $FILE | tar x
+tar jxf $FILE
 cd $DIR
 
-bunzip2 -c ../glibc-linuxthreads-$VER.$EXT | tar x 
+tar jxf ../glibc-linuxthreads-$VER.$EXT
 
-# mknod -m 0666 /dev/null c 1 3 &&
+mknod -m 0666 /dev/null c 1 3 &&
 touch /etc/ld.so.conf &&
 cp malloc/Makefile malloc/Makefile.backup &&
 sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile > tmp~ &&
@@ -33,8 +33,8 @@
 make localedata/install-locales &&
 
 cd ..
-#rm -rf $DIR/../glibc-build
-#rm -rf $DIR
+rm -rf $DIR/../glibc-build
+rm -rf $DIR
 
 cd $TOP
 
diff -u /mnt/lfs/commands/027man-pages commands/027man-pages
--- /mnt/lfs/commands/027man-pages	Sat Nov 10 14:23:21 2001
+++ commands/027man-pages	Sun Nov  4 01:00:15 2001
@@ -1,20 +1,19 @@
 TOP=`pwd`
 
 PROG=man-pages
-VER=1.39
+VER=1.42
 EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
 
 cd /usr/src
-bunzip2 -c $FILE | tar x
+tar jxf $FILE
 cd $DIR
 
-bunzip2 /usr/src/man-pages-$VER.patch.bz2 | patch -Np1 -i - &&
+patch -Np1 -i ../man-pages-$VER.patch &&
 make install
 
 cd ..
 rm -rf $DIR
 
 cd $TOP
-
diff -u /mnt/lfs/commands/028findutils commands/028findutils
--- /mnt/lfs/commands/028findutils	Sat Nov 10 14:31:30 2001
+++ commands/028findutils	Sun Nov  4 01:00:15 2001
@@ -10,7 +10,7 @@
 tar jxf $FILE
 cd $DIR
 
-bunzip2 -c ../findutils-4.1.patch.bz2 | patch -Np1 -i - &&
+patch -Np1 -i ../findutils-4.1.patch &&
 ./configure --prefix=/usr &&
 make &&
 make libexecdir=/usr/bin install
diff -u /mnt/lfs/commands/032gcc commands/032gcc
--- /mnt/lfs/commands/032gcc	Sat Nov 10 14:52:36 2001
+++ commands/032gcc	Sun Nov  4 01:00:15 2001
@@ -7,10 +7,10 @@
 DIR=/usr/src/$PROG-$VER
 
 cd /usr/src
-bunzip2 -c $FILE | tar x
+tar jxf $FILE
 cd $DIR
 
-bunzip2 -c ../ggc-2.95.3-2.patch | patch -Np1 -i -  &&
+patch -Np1 -i ../gcc-2.95.3-2.patch &&
 mkdir ../gcc-build &&
 cd ../gcc-build &&
 ../gcc-2.95.3/configure --prefix=/usr --enable-shared \
diff -u /mnt/lfs/commands/045libtool commands/045libtool
--- /mnt/lfs/commands/045libtool	Sat Nov 10 16:59:56 2001
+++ commands/045libtool	Sun Nov  4 01:00:15 2001
@@ -2,12 +2,12 @@
 
 PROG=libtool
 VER=1.4.2
-EXT=tar.gz
-FILE=${PROG}_$VER.orig.$EXT
+EXT=tar.bz2
+FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
 
 cd /usr/src
-tar zxf $FILE
+tar jxf $FILE
 cd $DIR
 
 ./configure --prefix=/usr &&
diff -u /mnt/lfs/commands/050gettext commands/050gettext
--- /mnt/lfs/commands/050gettext	Sat Nov 10 16:54:59 2001
+++ commands/050gettext	Sun Nov  4 01:00:15 2001
@@ -1,7 +1,7 @@
 TOP=`pwd`
 
 PROG=gettext
-VER=0.10.39
+VER=0.10.40
 EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
diff -u /mnt/lfs/commands/053e2fsprogs commands/053e2fsprogs
--- /mnt/lfs/commands/053e2fsprogs	Sat Nov 10 16:56:49 2001
+++ commands/053e2fsprogs	Sun Nov  4 01:00:15 2001
@@ -1,7 +1,7 @@
 TOP=`pwd`
 
 PROG=e2fsprogs
-VER=1.24
+VER=1.25
 EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
diff -u /mnt/lfs/commands/057lilo commands/057lilo
--- /mnt/lfs/commands/057lilo	Sat Nov 10 17:04:07 2001
+++ commands/057lilo	Sun Nov  4 01:00:15 2001
@@ -2,12 +2,12 @@
 
 PROG=lilo
 VER=22.1
-EXT=tar.gz
+EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
 
 cd /usr/src
-tar zxf $FILE
+tar jxf $FILE
 cd $DIR
 
 make &&
diff -u /mnt/lfs/commands/059modutils commands/059modutils
--- /mnt/lfs/commands/059modutils	Sun Nov 11 10:20:21 2001
+++ commands/059modutils	Sun Nov  4 01:00:15 2001
@@ -1,7 +1,7 @@
 TOP=`pwd`
 
 PROG=modutils
-VER=2.4.7
+VER=2.4.10
 EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
diff -u /mnt/lfs/commands/065reiserfsprogs commands/065reiserfsprogs
--- /mnt/lfs/commands/065reiserfsprogs	Sun Nov 11 10:31:39 2001
+++ commands/065reiserfsprogs	Sun Nov  4 01:00:15 2001
@@ -2,12 +2,12 @@
 
 PROG=reiserfsprogs
 VER=3.x.0j
-EXT=tar.gz
+EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
 
 cd /usr/src
-tar zxf $FILE
+tar jxf $FILE
 cd $DIR
 
 ./configure --mandir=/usr/share/man &&
diff -u /mnt/lfs/commands/070shadow commands/070shadow
--- /mnt/lfs/commands/070shadow	Sun Nov 11 10:52:06 2001
+++ commands/070shadow	Sun Nov  4 01:00:15 2001
@@ -1,7 +1,7 @@
 TOP=`pwd`
 
 PROG=shadow
-VER=20001016
+VER=4.0.0
 EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
diff -u /mnt/lfs/commands/072sysvinit commands/072sysvinit
--- /mnt/lfs/commands/072sysvinit	Sun Nov 11 10:53:46 2001
+++ commands/072sysvinit	Sun Nov  4 01:00:15 2001
@@ -1,7 +1,7 @@
 TOP=`pwd`
 
 PROG=sysvinit
-VER=2.82
+VER=2.83
 EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
diff -u /mnt/lfs/commands/073tar commands/073tar
--- /mnt/lfs/commands/073tar	Sun Nov 11 10:55:27 2001
+++ commands/073tar	Sun Nov  4 01:00:15 2001
@@ -10,7 +10,7 @@
 tar jxf $FILE
 cd $DIR
 
-bunzip2 -c ../tar-1.13.patch.bz2 | patch -Np1 -i -
+patch -Np1 -i ../tar-1.13.patch
 
 ./configure --prefix=/usr --libexecdir=/usr/bin \
    --bindir=/bin &&
diff -u /mnt/lfs/commands/075util-linux commands/075util-linux
--- /mnt/lfs/commands/075util-linux	Sun Nov 11 10:57:15 2001
+++ commands/075util-linux	Sun Nov  4 01:00:15 2001
@@ -1,7 +1,7 @@
 TOP=`pwd`
 
 PROG=util-linux
-VER=2.11h
+VER=2.11l
 EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
diff -u /mnt/lfs/commands/079linux commands/079linux
--- /mnt/lfs/commands/079linux	Sun Nov 11 11:03:26 2001
+++ commands/079linux	Sun Nov  4 01:00:15 2001
@@ -2,12 +2,12 @@
 
 PROG=linux
 VER=2.4.13
-EXT=tar.gz
+EXT=tar.bz2
 FILE=$PROG-$VER.$EXT
 DIR=/usr/src/$PROG-$VER
 
 cd /usr/src
-tar zxf $FILE
+tar jxf $FILE
 
 mv linux linux-$VER
 ln -sf linux-$VER linux
Common subdirectories: /mnt/lfs/commands/bootscripts and commands/bootscripts
Common subdirectories: /mnt/lfs/commands/config and commands/config
Common subdirectories: /mnt/lfs/commands/packages and commands/packages


More information about the alfs-discuss mailing list