Source File section

File deleted: DIFFS (Size: 1488, Created: Jul 20 21:20 )
File deleted: DIFFS.pl (Size: 796, Created: Jul 16 03:05 )
File created: DIFFS (Size: 1498, Created: Jul 28 16:40 )
File created: DIFFS.pl (Size: 964, Created: Jul 28 16:38 )
File created: changelogs/changes-20040728.html (Size: 6786, Created: Jul 28 08:10 )

Usermanager Section

File deleted: mylinux-usermanager-0.98/compile-scripts/x

#!/bin/bash
########################################################################
# File:           compile-scripts/MAIN-PACKAGE                         #
# myLinux Server: Copyright (c) 2004 Michael Oberg                     #
# Version:        0.98                                                 #
# Author:         Michael Oberg gt;      #
#                                                                      #
# 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 '^[^/]' >gt; /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|'`

cp $MYLINUXMGR/{COMPILE-*,STARTPACKAGE,CREATEPACKAGE} $LFS/MyLinux-Sources

##############################################################
# Package OpenOffice.org                                     #
##############################################################
echo "Unpacking OpenOffice.org Sources"
mkdir $LFS/OOO-Sources
cd $LFS/OOO-Sources
$MYLINUXMGR/UNPACK Versuche/OpenOffice

echo "Start Package"
chroot $LFS /usr/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/kde/bin:/usr/local/qt/bin \
    /bin/bash --login \
    -c "/MyLinux-Sources/STARTPACKAGE" || exit 1

echo "Compile OpenOffice.org"
chroot $LFS /usr/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/kde/bin:/usr/local/qt/bin \
    /bin/bash --login \
    -c /MyLinux-Sources/COMPILE-OOO || exit 1

echo "Create Package"
chroot $LFS /usr/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/kde/bin:/usr/local/qt/bin \
    /bin/bash --login \
    -c "/MyLinux-Sources/CREATEPACKAGE openoffice" || exit 1
##############################################################
# Package Compiler 340                                       #
##############################################################
#echo "Start Package"
#chroot $LFS /usr/bin/env -i \
#    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
#    PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/kde/bin:/usr/local/qt/bin \
#    /bin/bash --login \
#    -c "/MyLinux-Sources/STARTPACKAGE" || exit 1
#
#echo "Compile GCC 3.4.0"
#chroot $LFS /usr/bin/env -i \
#    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
#    PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/kde/bin:/usr/local/qt/bin \
#    /bin/bash --login \
#    -c /MyLinux-Sources/COMPILE-COMPILERS340 || exit 1
#
#echo "Create Package"
#chroot $LFS /usr/bin/env -i \
#    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
#    PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/kde/bin:/usr/local/qt/bin \
#    /bin/bash --login \
#    -c "/MyLinux-Sources/CREATEPACKAGE gcc340" || exit 1
##############################################################
# End Installation                                           #
##############################################################

# since .profile sets a PATH, it has to be moved while compiling -
# restoring it now
mv $LFS/root/profile-backup $LFS/root/.profile

# reactivate ldap in nsswitch.conf
mv $LFS/etc/nsswitch.bak $LFS/etc/nsswitch.conf