Source File section
File deleted: LFS-Packages/e2fsprogs-1.32.tar.gz (Size: 2894603, Created: Jul 3 2003 )
File deleted: Graphic-Packages/ImageMagick-6.0.0-3.tar.gz (Size: 6690351, Created: May 6 18:35 )
File deleted: Graphic-Packages/freetype-2.1.8.tar.bz2 (Size: 976821, Created: May 6 18:35 )
File deleted: Old-Packages/cups/cups-samba-5.0rc3.tar.gz (Size: 199167, Created: May 6 20:25 )
File deleted: Old-Packages/linux-2.4.26.tar.bz2 (Size: 30772389, Created: May 6 18:32 )
File created: LFS-Packages/e2fsprogs-1.35.tar.gz (Size: 3152299, Created: Nov 4 17:23 )
File created: Graphic-Packages/ImageMagick-6.0.0-3.tar.gz (Size: 6690351, Created: May 6 2004 )
File created: Graphic-Packages/freetype-2.1.8.tar.bz2 (Size: 976821, Created: May 6 2004 )
File created: Old-Packages/cups/cups-samba-5.0rc3.tar.gz (Size: 199167, Created: May 6 2004 )
File created: Old-Packages/linux-2.4.26.tar.bz2 (Size: 30772389, Created: May 6 2004 )
File created: Old-Packages/e2fsprogs-1.32.tar.gz (Size: 2894603, Created: Jul 3 2003 )
Usermanager Section
File created: mylinux-usermanager-0.98/compile-scripts/MAKEKERNEL-PATCH
#!/static/bin/bash
########################################################################
# File: compile-scripts/MAKEKERNEL-PATCH #
# myLinux Server: Copyright (c) 2003 Michael Oberg #
# Version: 0.98 #
# Author: Michael Oberg <michael.oberg@mylinuxproject.de> #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU Public License along #
# with this package; if not, write to the Free Software Foundation, #
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
########################################################################
# This script contains code segments extracted from the book "Linux #
# from Scratch" by Gerard Beekmans. Have a look on COPYRIGHT.LFS for #
# this. The "Linux from Scratch" project is hosted on #
# http://www.linuxfromscratch.org/. #
########################################################################
cd /usr/src/linux-2.6.9/
make mrproper
cp FullInstallKernel .config && make oldconfig && make prepare || exit 1
patch -Np1 -i /MyLinux-Patches/kernel26-headers.patch
cp -HR include/asm /usr/include
cp -R include/asm-generic /usr/include
cp -R include/linux /usr/include
touch /usr/include/linux/autoconf.h
File created: mylinux-usermanager-0.98/compile-scripts/x
#!/bin/bash
########################################################################
# File: compile-scripts/MAIN #
# myLinux Server: Copyright (c) 2003 Michael Oberg #
# Version: 0.97 #
# Author: Michael Oberg <michael.oberg@mylinuxproject.de> #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU Public License along #
# with this package; if not, write to the Free Software Foundation, #
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
########################################################################
# Warning: You have to make sure that setup/mylinux.conf is correct.
MYLINUXMGR=`dirname $0`
if echo $MYLINUXMGR | grep '^[^/]' > /dev/null
then
# MYLINUXMGR is not an absolute path, but relative to pwd;
# change it into an absolute path
MYLINUXMGR=`pwd`/`dirname $0`
fi
MYLINUXPACKAGE=`echo $MYLINUXMGR | sed 's|/compile-scripts||'`
MYLINUXPACKAGENAME=`echo $MYLINUXPACKAGE | sed 's|.*/\([^/]*\)|\1|'`
echo "Compile MyLinux"
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login \
-c /MyLinux-Sources/COMPILE-MYLINUX || exit 1
echo "Updating apropos man page index"
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login \
-c makewhatis
echo "Create an example /etc/exports file"
cat << EOF > $LFS/etc/exports
# See exports(5) for a description.
# This file contains a list of all directories exported to other
# computers.
# It is used by rpc.nfsd and rpc.mountd.
#/ 192.168.0.2(no_root_squash,rw) 192.168.0.1(rw)
EOF
echo "Configure PDF printer for CUPS"
cp -dp $MYLINUXPACKAGE/publicfiles/pdf $LFS/usr/lib/cups/backend/
cp -dp $MYLINUXPACKAGE/MyLinux-Patches/destiller.ppd $LFS/usr/share/cups/model/
echo "Copying Apple printer drivers for NT/2000"
mkdir $LFS/var/lib/samba/printers/W32X86
cp -dp $MYLINUXPACKAGE/laserwriter/* $LFS/var/lib/samba/printers/W32X86/
echo "Update paths in /etc/login.defs"
cat $LFS/etc/login.defs | sed \
-e 's|PATH=/sbin:/bin:/usr/sbin:/usr/bin$|&:/usr/local/sbin:/usr/local/bin|' \
-e 's|PATH=/bin:/usr/bin$|&:/usr/local/bin|' \
> $LFS/etc/login.defs-new
mv $LFS/etc/login.defs-new $LFS/etc/login.defs
echo "Install myLinux usermanager"
cp -Rdp $MYLINUXPACKAGE $LFS/MyLinux-Sources
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login \
-c /MyLinux-Sources/$MYLINUXPACKAGENAME/install.pl || exit 1
echo "Starting full setup"
CONFIG=/MyLinux-Sources/mylinux.conf
if [ ! -d $LFS/root/usermanager/setup ]
then
echo "$LFS/root/usermanager/setup doesn't exist!"
exit 1
fi
if [ ! -f $LFS/$CONFIG ]
then
echo "$LFS/$CONFIG doesn't exist!"
exit 1
fi
# copying config file into destination system
cp $LFS/$CONFIG $LFS/root/usermanager/setup/mylinux.conf
chmod 700 $LFS/root/usermanager/setup/mylinux.conf
# create the setup control script
$MYLINUXMGR/../setup/createcontrolscript.sh $LFS
# delete existing mysql password file - after compiling no password is set
rm $LFS/root/usermanager/data/mysqlpasswd
touch $LFS/root/usermanager/data/mysqlpasswd
# executing control script
chroot $LFS /usr/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/root/usermanager/bin \
/root/install.sh
# deleting control script
rm -f $LFS/root/install.sh
echo "Copying Windows scripts into software directory"
cp -dp $MYLINUXPACKAGE/winsoftware/* $LFS/var/lib/samba/software/Windows/
cat << EOF
If you want to start your new myLinux System directly,
you have to run lilo first. This was not done automatically
during setup, because it would destroy your existing boot
loader configuration.
However it is possible to create a bootable CD without
setting up lilo, but then the runonce-scripts are copied to
the CD too.
If you don't want the runonce-scripts on the CD, you have
to start the LDAP, BIND and mySQL daemons (which is done
automatically on boot time) and then log in as root.
Without booting (which means you have to use chroot) you
can start the login procedure by "cd /root; sh ./.profile".
EOF
File changed: mylinux-usermanager-0.98/MyLinux-Patches/kernel26-headers.patch
10c10
< #include <linux-2.6.9/include/asm/thread_info.h>
---
> #include <asm/thread_info.h>
19c19
< #include <linux-2.6.9/include/asm/mpspec_def.h>
---
> #include <asm/mpspec_def.h>
21c21
< +#include <linux-2.6.9/include/asm/mach-default/mach_mpspec.h>
---
> +#include <asm/mach-default/mach_mpspec.h>
33c33
< +#include <linux-2.6.9/include/asm/mach-default/mach_apicdef.h>
---
> +#include <asm/mach-default/mach_apicdef.h>
59c59
< @@ -140,6 +140,13 @@
---
> @@ -140,13 +140,6 @@
73c73
< @@ -153,13 +160,6 @@
---
> @@ -160,6 +153,13 @@
File changed: mylinux-usermanager-0.98/compile-scripts/MAIN
85c85
< cp $MYLINUXMGR/COMPILE-{RUNTIME*,BLFS,MYLINUX} $MYLINUXMGR/{MAKETREE,MAKEKERNEL-HEADERS,MAKEKERNEL} $MYLINUXPACKAGE/publicfiles/{htsearch.*,ldap2html.pl} $LFS/MyLinux-Sources
---
> cp $MYLINUXMGR/COMPILE-{RUNTIME*,BLFS,MYLINUX} $MYLINUXMGR/{MAKETREE,MAKEKERNEL*} $MYLINUXPACKAGE/publicfiles/{htsearch.*,ldap2html.pl} $LFS/MyLinux-Sources
99,101d98
< echo "Copying default kernel configuration"
< cp $MYLINUXMGR/FullInstallKernel $LFS/LFS-Sources/linux-2.6.9/
<
158a156,165
> cp $MYLINUXMGR/FullInstallKernel $LFS/usr/src/linux-2.6.9/
> #cp $MYLINUXMGR/OldNCRInstallKernel $LFS/usr/src/linux-2.6.9/
>
> echo "Creating kernel header files, with patches"
> chroot $LFS /static/bin/env -i \
> HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
> /static/bin/bash --login \
> -c /MyLinux-Sources/MAKEKERNEL-PATCH || exit 1
>
169d175
< #cp $MYLINUXMGR/OldNCRInstallKernel $LFS/usr/src/linux-2.6.9/
File changed: mylinux-usermanager-0.98/compile-scripts/MAKEKERNEL-HEADERS
30,31c30,31
< cp FullInstallKernel .config && make oldconfig && make prepare || exit 1
< patch -Np1 -i /MyLinux-Patches/kernel26-headers.patch
---
> make include/linux/version.h
> make include/asm