Compare commits
No commits in common. "23ed438166f63d3ff3a29d4bfb89b7f928c9c93a" and "59d757364227439c2db54bcd237fc20adfa7d760" have entirely different histories.
23ed438166
...
59d7573642
@ -310,7 +310,6 @@ make_boot() {
|
|||||||
mv /tmp/lilo.conf $INSTROOT/etc/lilo.conf
|
mv /tmp/lilo.conf $INSTROOT/etc/lilo.conf
|
||||||
print "Add $WINNTHD as WinNT boot to your lilo.conf"
|
print "Add $WINNTHD as WinNT boot to your lilo.conf"
|
||||||
fi
|
fi
|
||||||
if [ ! -f $INSTROOT/tmp/NOQUEST ]; then
|
|
||||||
print "You can now switch to the new System and edit your lilo.conf"
|
print "You can now switch to the new System and edit your lilo.conf"
|
||||||
print "by the way to install a new kernel, or build a new kernel"
|
print "by the way to install a new kernel, or build a new kernel"
|
||||||
print "if you say \"no\", this script will install the CD Boot Kernel"
|
print "if you say \"no\", this script will install the CD Boot Kernel"
|
||||||
@ -327,7 +326,6 @@ make_boot() {
|
|||||||
$DEBUG umount $INSTROOT/proc
|
$DEBUG umount $INSTROOT/proc
|
||||||
print "your System is now installed. please remove the CD/DVD"
|
print "your System is now installed. please remove the CD/DVD"
|
||||||
print "and reboot your System"
|
print "and reboot your System"
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_cluster() {
|
install_cluster() {
|
||||||
@ -367,8 +365,7 @@ install_cluster() {
|
|||||||
echo "chmod 1777 tmp" >>$INSTALLROOT/root/.bash_profile
|
echo "chmod 1777 tmp" >>$INSTALLROOT/root/.bash_profile
|
||||||
echo "if [ -d /tmp/afterinstall ]; then" >>$INSTALLROOT/root/.bash_profile
|
echo "if [ -d /tmp/afterinstall ]; then" >>$INSTALLROOT/root/.bash_profile
|
||||||
echo "for i in /tmp/afterinstall/*; do" >>$INSTALLROOT/root/.bash_profile
|
echo "for i in /tmp/afterinstall/*; do" >>$INSTALLROOT/root/.bash_profile
|
||||||
echo "chmod 755 \$i" >>$INSTALLROOT/root/.bash_profile
|
echo "source \$i /" >>$INSTALLROOT/root/.bash_profile
|
||||||
echo "bash -c \$i /" >>$INSTALLROOT/root/.bash_profile
|
|
||||||
echo "cd - >/dev/null" >>$INSTALLROOT/root/.bash_profile
|
echo "cd - >/dev/null" >>$INSTALLROOT/root/.bash_profile
|
||||||
echo "rm \$i" >>$INSTALLROOT/root/.bash_profile
|
echo "rm \$i" >>$INSTALLROOT/root/.bash_profile
|
||||||
echo "done" >>$INSTALLROOT/root/.bash_profile
|
echo "done" >>$INSTALLROOT/root/.bash_profile
|
||||||
@ -379,7 +376,7 @@ install_cluster() {
|
|||||||
mknod $INSTALLROOT/dev/null c 1 3
|
mknod $INSTALLROOT/dev/null c 1 3
|
||||||
mkdir $INSTALLROOT/media
|
mkdir $INSTALLROOT/media
|
||||||
mount -o bind /dev $INSTALLROOT/dev
|
mount -o bind /dev $INSTALLROOT/dev
|
||||||
mount -o bind /proc $INSTALLROOT/proc
|
mount -t proc none $INSTALLROOT/proc
|
||||||
chroot $INSTALLROOT /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash --login
|
chroot $INSTALLROOT /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash --login
|
||||||
if [ -f "$INSTALLROOT/root/.bash_profile" ]; then
|
if [ -f "$INSTALLROOT/root/.bash_profile" ]; then
|
||||||
mv $INSTALLROOT/root/.bash_profile.store $INSTALLROOT/root/.bash_profile
|
mv $INSTALLROOT/root/.bash_profile.store $INSTALLROOT/root/.bash_profile
|
||||||
|
@ -1 +1 @@
|
|||||||
PKGFNAMES="/etc/fstab /etc/passwd /etc/group /etc/shadow /etc/sysconfig/net/defaultrouter /etc/sysconfig/nodename /etc/hosts /etc/resolv.conf /etc/sysconfig/loadmods"
|
PKGFNAMES="/etc/fstab /etc/passwd etc/shadow /etc/sysconfig/net/defaultrouter /etc/sysconfig/nodename /etc/hosts /etc/resolv.conf /etc/sysconfig/loadmods"
|
||||||
|
241
GenInstallcfg
Normal file → Executable file
241
GenInstallcfg
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl
|
#!/bin/bash
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
#dieses Framework wird im CVS Repository
|
#dieses Framework wird im CVS Repository
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
||||||
@ -28,169 +28,90 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
export PKGLIST=.pkglist
|
||||||
use Getopt::Std;
|
|
||||||
|
|
||||||
my %ArgSwitches;
|
WDIR=`pwd`
|
||||||
my $DistTarget;
|
|
||||||
my $CfgFile;
|
|
||||||
my $PkgName;
|
|
||||||
my @PkgList;
|
|
||||||
my @CheckDependics;
|
|
||||||
|
|
||||||
getopts('d:f:',\%ArgSwitches);
|
PKGLISTING=$1
|
||||||
foreach (sort keys %ArgSwitches) {
|
TMPFILE=`mktemp`
|
||||||
( $_ eq "d" ) && ($DistTarget = $ArgSwitches{$_});
|
TMPFILE2=`mktemp`
|
||||||
( $_ eq "f" ) && ($CfgFile = $ArgSwitches{$_});
|
rm $TMPFILE
|
||||||
|
rm $TMPFILE2
|
||||||
|
NUMDEPSOLD=0
|
||||||
|
NUMDEPSNEW=0
|
||||||
|
|
||||||
|
GenDeps() {
|
||||||
|
PKGNAME=$1
|
||||||
|
echo >&2 "Generating Dependics for $PKGNAME"
|
||||||
|
PKGFILE=`grep "SN=$PKGNAME;" $DISTTARGET/$PKGLIST|\
|
||||||
|
awk -F";" '{print $2}'|sed -e "s/PF=//"`
|
||||||
|
PKGPATH=`grep "PF=$PKGFILE;" $DISTTARGET/$PKGLIST|\
|
||||||
|
awk -F";" '{print $3}'|\
|
||||||
|
sed -e "s/PP=//"`
|
||||||
|
extractvarchive $DISTTARGET/$PKGPATH/$PKGFILE dep >$TMPFILE
|
||||||
|
echo "WARN $PKGNAME" >>$TMPFILE
|
||||||
|
NUMDEPSOLD=`cat $TMPFILE|wc -l`
|
||||||
|
while [ ! $NUMDEPSOLD == $NUMDEPSNEW ]; do
|
||||||
|
NUMDEPSOLD=$NUMDEPSNEW
|
||||||
|
exec 3<$TMPFILE
|
||||||
|
while read <&3 FLAG SHNAME; do
|
||||||
|
grep "SN=$SHNAME;" $DISTTARGET/$PKGLIST|awk -F";" '{print $2}'|sed -e "s/PF=//"
|
||||||
|
done > $TMPFILE2
|
||||||
|
exec 3>&-
|
||||||
|
for i in `cat $TMPFILE2`; do
|
||||||
|
PKGPATH=`grep "PF=$i;" $DISTTARGET/$PKGLIST|\
|
||||||
|
awk -F";" '{print $3}'|\
|
||||||
|
sed -e "s/PP=//"`
|
||||||
|
extractvarchive $DISTTARGET/$PKGPATH/$i dep
|
||||||
|
done >>$TMPFILE
|
||||||
|
rm $TMPFILE2
|
||||||
|
cat $TMPFILE |sort -u >$TMPFILE2
|
||||||
|
mv $TMPFILE2 $TMPFILE
|
||||||
|
NUMDEPSNEW=`cat $TMPFILE|wc -l`
|
||||||
|
done
|
||||||
|
cat $TMPFILE
|
||||||
|
rm $TMPFILE
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ($ArgSwitches{f}) && ($ArgSwitches{d}) ) {
|
USAGE="Usage: $0 -d <Path to Distribution Packages> -f <Path to cfg in file>"
|
||||||
my @CfgFile;
|
while getopts :d:f: opt_char; do
|
||||||
my @Dependics;
|
case $opt_char in
|
||||||
open(CFG,"$CfgFile") or die "Could not open the in file: $!";
|
d)
|
||||||
@CfgFile=<CFG>;
|
DISTTARGET=$OPTARG
|
||||||
foreach(@CfgFile) {
|
;;
|
||||||
chomp($_);
|
f)
|
||||||
}
|
CFGFILE=$OPTARG
|
||||||
close CFG;
|
;;
|
||||||
open(PKGLIST,"$DistTarget/.pkglist") or die "Could no open pkglist: $!";
|
*)
|
||||||
@PkgList = <PKGLIST>;
|
echo $USAGE
|
||||||
close PKGLIST;
|
;;
|
||||||
@CheckDependics=@CfgFile;
|
esac
|
||||||
foreach ( @CheckDependics ) {
|
done
|
||||||
print STDERR "Generating Dependics for $_\n";
|
|
||||||
my @PkgFileInfo = &GetPkgInfoList($_);
|
|
||||||
if ( ! @PkgFileInfo ) {
|
|
||||||
print STDERR "Error in Config File: Shortname $_ not found!";
|
|
||||||
exit 10;
|
|
||||||
}
|
|
||||||
my $PkgFilePath="$DistTarget/$PkgFileInfo[1]/$PkgFileInfo[0]";
|
|
||||||
@Dependics=&GetDependicsList($PkgFilePath);
|
|
||||||
foreach ( @Dependics ) {
|
|
||||||
my $NotFound;
|
|
||||||
|
|
||||||
chomp($_);
|
if [ ! -d $DISTTARGET ]; then
|
||||||
$_ =~ s/^WARN\s(.*)$/$1/;
|
echo "$DISTTARGET ist not a directory"
|
||||||
$_ =~ s/^FORCE\s(.*)$/$1/;
|
echo $USAGE
|
||||||
my $DepName=$_;
|
exit 10
|
||||||
$DepName =~ s/\+/\\+/g;
|
fi
|
||||||
$NotFound=0;
|
|
||||||
foreach ( @CheckDependics ) {
|
|
||||||
if ( /^$DepName$/ ) {
|
|
||||||
$NotFound=1;
|
|
||||||
last;
|
|
||||||
} else {
|
|
||||||
$NotFound=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ( ! $NotFound ) {
|
|
||||||
push @CheckDependics,$_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
open (BASE,"$DistTarget/../install/BaseDevel.cfg") or die "BaseDevel.cfg not found - should be created first! :$!\n";
|
|
||||||
my @Cfg = <BASE>;
|
|
||||||
close BASE;
|
|
||||||
foreach ( @Cfg ) {
|
|
||||||
chomp($_);
|
|
||||||
my @CfgLine = split /\s/,$_;
|
|
||||||
my $NotFound;
|
|
||||||
my $DepName = $CfgLine[2];
|
|
||||||
$DepName=~ s/\+/\\+/g;
|
|
||||||
foreach ( @CheckDependics ) {
|
|
||||||
if ( /^$DepName$/ ) {
|
|
||||||
$NotFound=1;
|
|
||||||
last;
|
|
||||||
} else {
|
|
||||||
$NotFound=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ( ! $NotFound ) {
|
|
||||||
push @CheckDependics, $DepName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
open ( ALL,"$DistTarget/../install/All.cfg" ) or die "All.cfg must be created first!: $!\n";
|
|
||||||
@Cfg = <ALL>;
|
|
||||||
close ALL;
|
|
||||||
my @NewCfg;
|
|
||||||
foreach ( @Cfg ) {
|
|
||||||
chomp($_);
|
|
||||||
my @CfgLine = split /\s/,$_;
|
|
||||||
my $NotFound;
|
|
||||||
my $DepName = $CfgLine[2];
|
|
||||||
$DepName =~ s/\+/\\+/g;
|
|
||||||
foreach ( @CheckDependics ) {
|
|
||||||
if ( /^$DepName$/ ) {
|
|
||||||
$NotFound=1;
|
|
||||||
last;
|
|
||||||
} else {
|
|
||||||
$NotFound=0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ( $NotFound ) {
|
|
||||||
push @NewCfg, $_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach ( @NewCfg ) {
|
|
||||||
print "$_\n"
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
&HELP_MESSAGE();
|
|
||||||
}
|
|
||||||
|
|
||||||
sub DeBzip2() {
|
if [ ! -f $CFGFILE ]; then
|
||||||
open(UNCOMPRESS,"|bzip2 -d -c >/tmp/installpkg_bzip2_$$") or die "Can not start decompress: $!";
|
echo "$CFGFILE does not exist"
|
||||||
print UNCOMPRESS @_;
|
echo $USAGE
|
||||||
close UNCOMPRESS;
|
exit 10
|
||||||
open(DATA,"/tmp/installpkg_bzip2_$$") or die "Data File after decompression not found: $!";
|
fi
|
||||||
my @UnBzip2Data = <DATA>;
|
|
||||||
close DATA;
|
|
||||||
unlink("/tmp/installpkg_bzip2_$$");
|
|
||||||
return @UnBzip2Data;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub GetPkgInfoList() {
|
for i in `cat $CFGFILE`; do
|
||||||
my @PkgFile;
|
GenDeps $i >>/tmp/DepsList$$
|
||||||
my $SearchName=$_[0];
|
done
|
||||||
|
cat /tmp/DepsList$$|sort -u >/tmp/DepsListSort$$
|
||||||
$SearchName=~s/\+/\\+/g;
|
rm /tmp/DepsList$$
|
||||||
foreach ( @PkgList ) {
|
cat $DISTTARGET/../install/BaseDevel.cfg
|
||||||
if ( /SN=$SearchName;PF=(.*);PP=(.*)/ ) {
|
exec 3<$DISTTARGET/../install/All.cfg
|
||||||
$PkgFile[0]=$1;
|
while read <&3 CDROM PKGPATH MODNAME; do
|
||||||
$PkgFile[1]=$2;
|
if egrep -q " ${MODNAME}$" /tmp/DepsListSort$$; then
|
||||||
chomp($PkgFile[1]);
|
if ! egrep -q " ${MODNAME}$" $DISTTARGET/../install/BaseDevel.cfg; then
|
||||||
return @PkgFile;
|
echo "$CDROM $PKGPATH $MODNAME"
|
||||||
}
|
fi
|
||||||
}
|
fi
|
||||||
return();
|
done
|
||||||
}
|
rm /tmp/DepsListSort$$
|
||||||
|
|
||||||
sub GetDependicsList() {
|
|
||||||
my $PkgFile=@_[0];
|
|
||||||
my @StartFile;
|
|
||||||
|
|
||||||
open(ARCH,$PkgFile) or die "Could not open Archive File: $!";
|
|
||||||
my $ArchiveInfo=<ARCH>;
|
|
||||||
my @FileSizes = split /\s/,$ArchiveInfo;
|
|
||||||
unshift(@FileSizes,0);
|
|
||||||
$FileSizes[0]=tell(ARCH);
|
|
||||||
for ( my $j = 0; $j <= 11; $j++ ) {
|
|
||||||
for ( my $i=0; $i <= $j; $i++ ) {
|
|
||||||
$StartFile[$j]+=$FileSizes[$i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
shift @FileSizes;
|
|
||||||
if ( $FileSizes[0] > 0 ) {
|
|
||||||
read ARCH,my $Dependics, $FileSizes[0];
|
|
||||||
close ARCH;
|
|
||||||
return(&DeBzip2($Dependics));
|
|
||||||
} else {
|
|
||||||
close ARCH;
|
|
||||||
return () ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sub HELP_MESSAGE() {
|
|
||||||
printf("\nGenInstallcfg: Aus den *.in files *.cfg files für make_base_install erzeugen\n");
|
|
||||||
printf("usage: ./GenInstallcfg -d <Distributionbinarydir> -f <cfg.in file>\n");
|
|
||||||
}
|
|
||||||
|
117
GenInstallcfg.sh
117
GenInstallcfg.sh
@ -1,117 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
|
||||||
#dieses Framework wird im CVS Repository
|
|
||||||
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
|
|
||||||
#
|
|
||||||
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V962/ViitorMake/Scripts/GenInstallcfg $
|
|
||||||
#
|
|
||||||
#(c) 2003 Harald Kueller, Germany
|
|
||||||
#This program is free software; you can redistribute it and/or
|
|
||||||
#modify ist 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 General Public License
|
|
||||||
#along with this program; if not write to the Free Software Foundation,
|
|
||||||
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
#
|
|
||||||
#Script:
|
|
||||||
#
|
|
||||||
#Letzte Änderung von: $Author: kueller $
|
|
||||||
#Datum der letzten Änderung: $Date: 2010-01-19 12:27:40 +0100 (Di, 19 Jan 2010) $
|
|
||||||
#Version der Datei: $Revision: 5134 $
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
export PKGLIST=.pkglist
|
|
||||||
|
|
||||||
WDIR=`pwd`
|
|
||||||
|
|
||||||
PKGLISTING=$1
|
|
||||||
TMPFILE=`mktemp`
|
|
||||||
TMPFILE2=`mktemp`
|
|
||||||
rm $TMPFILE
|
|
||||||
rm $TMPFILE2
|
|
||||||
NUMDEPSOLD=0
|
|
||||||
NUMDEPSNEW=0
|
|
||||||
|
|
||||||
GenDeps() {
|
|
||||||
PKGNAME=$1
|
|
||||||
echo >&2 "Generating Dependics for $PKGNAME"
|
|
||||||
PKGFILE=`grep "SN=$PKGNAME;" $DISTTARGET/$PKGLIST|\
|
|
||||||
awk -F";" '{print $2}'|sed -e "s/PF=//"`
|
|
||||||
PKGPATH=`grep "PF=$PKGFILE;" $DISTTARGET/$PKGLIST|\
|
|
||||||
awk -F";" '{print $3}'|\
|
|
||||||
sed -e "s/PP=//"`
|
|
||||||
extractvarchive $DISTTARGET/$PKGPATH/$PKGFILE dep >$TMPFILE
|
|
||||||
echo "WARN $PKGNAME" >>$TMPFILE
|
|
||||||
NUMDEPSOLD=`cat $TMPFILE|wc -l`
|
|
||||||
while [ ! $NUMDEPSOLD == $NUMDEPSNEW ]; do
|
|
||||||
NUMDEPSOLD=$NUMDEPSNEW
|
|
||||||
exec 3<$TMPFILE
|
|
||||||
while read <&3 FLAG SHNAME; do
|
|
||||||
grep "SN=$SHNAME;" $DISTTARGET/$PKGLIST|awk -F";" '{print $2}'|sed -e "s/PF=//"
|
|
||||||
done > $TMPFILE2
|
|
||||||
exec 3>&-
|
|
||||||
for i in `cat $TMPFILE2`; do
|
|
||||||
PKGPATH=`grep "PF=$i;" $DISTTARGET/$PKGLIST|\
|
|
||||||
awk -F";" '{print $3}'|\
|
|
||||||
sed -e "s/PP=//"`
|
|
||||||
extractvarchive $DISTTARGET/$PKGPATH/$i dep
|
|
||||||
done >>$TMPFILE
|
|
||||||
rm $TMPFILE2
|
|
||||||
cat $TMPFILE |sort -u >$TMPFILE2
|
|
||||||
mv $TMPFILE2 $TMPFILE
|
|
||||||
NUMDEPSNEW=`cat $TMPFILE|wc -l`
|
|
||||||
done
|
|
||||||
cat $TMPFILE
|
|
||||||
rm $TMPFILE
|
|
||||||
}
|
|
||||||
|
|
||||||
USAGE="Usage: $0 -d <Path to Distribution Packages> -f <Path to cfg in file>"
|
|
||||||
while getopts :d:f: opt_char; do
|
|
||||||
case $opt_char in
|
|
||||||
d)
|
|
||||||
DISTTARGET=$OPTARG
|
|
||||||
;;
|
|
||||||
f)
|
|
||||||
CFGFILE=$OPTARG
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $USAGE
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ ! -d $DISTTARGET ]; then
|
|
||||||
echo "$DISTTARGET ist not a directory"
|
|
||||||
echo $USAGE
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f $CFGFILE ]; then
|
|
||||||
echo "$CFGFILE does not exist"
|
|
||||||
echo $USAGE
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in `cat $CFGFILE`; do
|
|
||||||
GenDeps $i >>/tmp/DepsList$$
|
|
||||||
done
|
|
||||||
cat /tmp/DepsList$$|sort -u >/tmp/DepsListSort$$
|
|
||||||
rm /tmp/DepsList$$
|
|
||||||
cat $DISTTARGET/../install/BaseDevel.cfg
|
|
||||||
exec 3<$DISTTARGET/../install/All.cfg
|
|
||||||
while read <&3 CDROM PKGPATH MODNAME; do
|
|
||||||
if egrep -q " ${MODNAME}$" /tmp/DepsListSort$$; then
|
|
||||||
if ! egrep -q " ${MODNAME}$" $DISTTARGET/../install/BaseDevel.cfg; then
|
|
||||||
echo "$CDROM $PKGPATH $MODNAME"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
rm /tmp/DepsListSort$$
|
|
@ -1,68 +0,0 @@
|
|||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
use Getopt::Std;
|
|
||||||
use File::Basename;
|
|
||||||
use File::Path;
|
|
||||||
use Cwd;
|
|
||||||
use Sys::Syslog;
|
|
||||||
|
|
||||||
#my $ShortName=&GetShortName($ARGV[0]);
|
|
||||||
my $DirPath=$ARGV[0];
|
|
||||||
|
|
||||||
if ( -d $DirPath ) {
|
|
||||||
open(FIND,"find $DirPath -name \"\*.vpg\"|");
|
|
||||||
my @FileList=<FIND>;
|
|
||||||
#print "@FileList";
|
|
||||||
foreach(@FileList) {
|
|
||||||
#print "$_\n";
|
|
||||||
my $ShortName=&GetShortName($_);
|
|
||||||
my $PkgName=basename($_);
|
|
||||||
my $FilePath=dirname($_);
|
|
||||||
chomp($PkgName);
|
|
||||||
(my $PkgPath = $FilePath) =~ s/$DirPath//;
|
|
||||||
chomp($PkgPath);
|
|
||||||
print "SN=$ShortName;PF=$PkgName;PP=$PkgPath\n";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
print "Usage: GenPkgList <Path to BINARY Distribution Files>";
|
|
||||||
}
|
|
||||||
|
|
||||||
sub GetShortName() {
|
|
||||||
my $PkgName = $_[0];
|
|
||||||
my @StartFile;
|
|
||||||
my $MetaInfo;
|
|
||||||
my @Contents;
|
|
||||||
my @MetaInfo;
|
|
||||||
|
|
||||||
open PACKAGE,$PkgName or die "Could ot open ViitorArchive: $! $PkgName\n";
|
|
||||||
my $FileSizes = <PACKAGE>;
|
|
||||||
my @FileSizes = split /\s/,$FileSizes;
|
|
||||||
unshift(@FileSizes,0);
|
|
||||||
$FileSizes[0]=tell(PACKAGE);
|
|
||||||
for ( my $j = 0; $j <= 12; $j++ ) {
|
|
||||||
for ( my $i=0; $i<=$j; $i++) {
|
|
||||||
$StartFile[$j]+=$FileSizes[$i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
shift @FileSizes;
|
|
||||||
seek PACKAGE,$StartFile[1],0;
|
|
||||||
if ( $FileSizes[1] > 0 ) {
|
|
||||||
read PACKAGE,$MetaInfo,$FileSizes[1];
|
|
||||||
@MetaInfo=&DeBzip2($MetaInfo);
|
|
||||||
}
|
|
||||||
(my $ShortName = $MetaInfo[0] ) =~ s/ModuleName: //;
|
|
||||||
chomp($ShortName);
|
|
||||||
return $ShortName;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub DeBzip2() {
|
|
||||||
open (UNCOMPRESS,"|bzip2 -d -c >/tmp/PkgList_bzip2_$$") or die "Can not start decompress: $!";
|
|
||||||
print UNCOMPRESS @_;
|
|
||||||
close UNCOMPRESS;
|
|
||||||
open(DATA,"/tmp/PkgList_bzip2_$$") or die "Data File after decompression not found: $!";
|
|
||||||
my @UnBzip2Data = <DATA>;
|
|
||||||
close DATA;
|
|
||||||
unlink("/tmp/PkgList_bzip2_$$");
|
|
||||||
return @UnBzip2Data;
|
|
||||||
}
|
|
@ -9,6 +9,7 @@ parted
|
|||||||
libmad
|
libmad
|
||||||
libid3tag
|
libid3tag
|
||||||
taglib
|
taglib
|
||||||
|
ram
|
||||||
libnet
|
libnet
|
||||||
svgalib
|
svgalib
|
||||||
openssl
|
openssl
|
||||||
@ -17,8 +18,8 @@ alsa-lib
|
|||||||
bluez-libs
|
bluez-libs
|
||||||
libsidplay
|
libsidplay
|
||||||
libraw1394
|
libraw1394
|
||||||
libiec61883
|
libiec61833
|
||||||
libsamplerate
|
libsamplerae
|
||||||
libao
|
libao
|
||||||
libogg
|
libogg
|
||||||
libvorbis
|
libvorbis
|
||||||
@ -95,7 +96,7 @@ tsocks
|
|||||||
tcp_wrappers
|
tcp_wrappers
|
||||||
nfs-utils
|
nfs-utils
|
||||||
traceroute
|
traceroute
|
||||||
freealut
|
freeealut
|
||||||
audiofile
|
audiofile
|
||||||
toolame
|
toolame
|
||||||
a52dec
|
a52dec
|
||||||
@ -254,6 +255,7 @@ xkbdata
|
|||||||
xkeyboard-config
|
xkeyboard-config
|
||||||
xorg-server
|
xorg-server
|
||||||
xf86-input-evdev
|
xf86-input-evdev
|
||||||
|
xf86-input-hyperpen
|
||||||
xf86-input-joystick
|
xf86-input-joystick
|
||||||
xf86-input-keyboard
|
xf86-input-keyboard
|
||||||
xf86-input-mouse
|
xf86-input-mouse
|
||||||
@ -430,8 +432,8 @@ Convert-ASN1
|
|||||||
Digest-HMAC
|
Digest-HMAC
|
||||||
Authen-SASL
|
Authen-SASL
|
||||||
IO-Socket-SSL
|
IO-Socket-SSL
|
||||||
Net-SSLeay
|
NET-SSLeay
|
||||||
Net-DBus
|
NET-DBus
|
||||||
Crypt-SmbHash
|
Crypt-SmbHash
|
||||||
GnuPG
|
GnuPG
|
||||||
yafc
|
yafc
|
||||||
@ -439,7 +441,7 @@ rsync
|
|||||||
sendmail
|
sendmail
|
||||||
mutt
|
mutt
|
||||||
htdig
|
htdig
|
||||||
lynx
|
linx
|
||||||
openobex
|
openobex
|
||||||
sane-backends
|
sane-backends
|
||||||
tiff
|
tiff
|
||||||
@ -516,7 +518,7 @@ libsexy
|
|||||||
lesstif
|
lesstif
|
||||||
efltk
|
efltk
|
||||||
unixODBC
|
unixODBC
|
||||||
qt-everywhere-opensource-src
|
qt-all-opensource
|
||||||
wxGTK
|
wxGTK
|
||||||
opal
|
opal
|
||||||
libglade
|
libglade
|
||||||
@ -567,6 +569,7 @@ xmms
|
|||||||
xmms-sid
|
xmms-sid
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
|
rm
|
||||||
alien
|
alien
|
||||||
sox
|
sox
|
||||||
gtkglarea
|
gtkglarea
|
||||||
@ -589,9 +592,6 @@ soprano
|
|||||||
akonadi
|
akonadi
|
||||||
qimageblitz
|
qimageblitz
|
||||||
oxygen-icons
|
oxygen-icons
|
||||||
shared-desktop-ontologies
|
|
||||||
attica
|
|
||||||
polkit-qt-1
|
|
||||||
kdelibs
|
kdelibs
|
||||||
kdelibs-experimental
|
kdelibs-experimental
|
||||||
kdepimlibs
|
kdepimlibs
|
||||||
@ -643,24 +643,6 @@ xfce4-appfinder
|
|||||||
xfce4-mixer
|
xfce4-mixer
|
||||||
xfmedia
|
xfmedia
|
||||||
xfce4-taskmanager
|
xfce4-taskmanager
|
||||||
lxde-common
|
|
||||||
menu-cache
|
|
||||||
lxmenu-data
|
|
||||||
lxsession
|
|
||||||
lxpanel
|
|
||||||
lxappearance
|
|
||||||
lxtask
|
|
||||||
lxterminal
|
|
||||||
lxrandr
|
|
||||||
lxsession-edit
|
|
||||||
lxdm
|
|
||||||
lxshortcut
|
|
||||||
lxinput
|
|
||||||
lxlauncher
|
|
||||||
lxnm
|
|
||||||
pcmanfm
|
|
||||||
gpicview
|
|
||||||
gtknetcat
|
|
||||||
swftools
|
swftools
|
||||||
amiwm
|
amiwm
|
||||||
icewm
|
icewm
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Backup/Restore Script für die unattendet Installation
|
|
||||||
# von RainMaker Linux
|
|
||||||
# (c) 2001 by RainMaker MultiMedia OHG
|
|
||||||
#
|
|
||||||
# Zur Funktion des Scriptes werden 2 Variablen vom aufrufenden
|
|
||||||
# Script exportiert:
|
|
||||||
# XPATH: Pfad ins basis Verzeichniss der Konfigurations Daten
|
|
||||||
# NAME: Name der Konfiguration
|
|
||||||
# Sprich die Eigentlichen Konfigurationsdaten sind unter:
|
|
||||||
# $XPATH/$NAME zu finden
|
|
||||||
# beim Restore muß das Zielverzeichniss (Root des neu installierten
|
|
||||||
# Systems) unter $2 übergeben werden
|
|
||||||
#
|
|
||||||
#$Author: kueller $
|
|
||||||
#$Date: 2008-03-19 11:34:26 +0100 (Mi, 19 Mär 2008) $
|
|
||||||
#$Revision: 4105 $
|
|
||||||
#
|
|
||||||
#$Log$
|
|
||||||
#Revision 1.1 2001/09/23 17:50:40 kueller
|
|
||||||
#Initial revision
|
|
||||||
#
|
|
||||||
#Revision 1.1.1.1 2001/08/06 22:09:47 kueller
|
|
||||||
#Aufnahme in CVS Überwachung
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
DO=$1
|
|
||||||
STOREPATH=$2
|
|
||||||
RESTOREPATH=$3
|
|
||||||
|
|
||||||
if [ -z ${STOREPATH} ]; then
|
|
||||||
echo "Es wird Mindestens ein Backupverzeichniss benoetigt."
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
|
|
||||||
case ${DO} in
|
|
||||||
b)
|
|
||||||
if [ ! -d ${STOREPATH}/PKGS/bacula ]; then
|
|
||||||
${DEBUG} mkdir -p ${STOREPATH}/PKGS/bacula/etc
|
|
||||||
tar -C /etc/bacula -cf - .\|
|
|
||||||
tar -C ${STOREPATH}/PKGS/bacula/etc -xvf -
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
r)
|
|
||||||
if [ -z ${RESTOREPATH} ]; then
|
|
||||||
echo "Restorefunction braucht Angabe des Install Root Pfades"
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
if [ ! -d ${RESTOREPATH} ]; then
|
|
||||||
echo "${RESTOREPATH} must exist!"
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
if [ -d ${STOREPATH}/PKGS/bacula ]; then
|
|
||||||
tar -C ${STOREPATH}/PKGS/bacula -cf -|tar -C ${RESTOREPATH}/ -xf -
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "$0 {b|r}"
|
|
||||||
exit 10
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
exit 0
|
|
@ -1,67 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Backup/Restore Script für die unattendet Installation
|
|
||||||
# von RainMaker Linux
|
|
||||||
# (c) 2001 by RainMaker MultiMedia OHG
|
|
||||||
#
|
|
||||||
# Zur Funktion des Scriptes werden 2 Variablen vom aufrufenden
|
|
||||||
# Script exportiert:
|
|
||||||
# XPATH: Pfad ins basis Verzeichniss der Konfigurations Daten
|
|
||||||
# NAME: Name der Konfiguration
|
|
||||||
# Sprich die Eigentlichen Konfigurationsdaten sind unter:
|
|
||||||
# $XPATH/$NAME zu finden
|
|
||||||
# beim Restore muß das Zielverzeichniss (Root des neu installierten
|
|
||||||
# Systems) unter $2 übergeben werden
|
|
||||||
#
|
|
||||||
#$Author: kueller $
|
|
||||||
#$Date: 2008-03-19 11:34:26 +0100 (Mi, 19 Mär 2008) $
|
|
||||||
#$Revision: 4105 $
|
|
||||||
#
|
|
||||||
#$Log$
|
|
||||||
#Revision 1.1 2001/09/23 17:50:40 kueller
|
|
||||||
#Initial revision
|
|
||||||
#
|
|
||||||
#Revision 1.1.1.1 2001/08/06 22:09:47 kueller
|
|
||||||
#Aufnahme in CVS Überwachung
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
DO=$1
|
|
||||||
STOREPATH=$2
|
|
||||||
RESTOREPATH=$3
|
|
||||||
|
|
||||||
if [ -z ${STOREPATH} ]; then
|
|
||||||
echo "Es wird Mindestens ein Backupverzeichniss benoetigt."
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
|
|
||||||
case ${DO} in
|
|
||||||
b)
|
|
||||||
if [ -d /etc/sysconfig/wlan ]; then
|
|
||||||
for i in /etc/sysconfig/wlan/*; do
|
|
||||||
if [ ! -d ${STOREPATH}/PKGS/wireless_tools/etc/sysconfig/wlan ]; then
|
|
||||||
mkdir -p ${STOREPATH}/PKGS/wireless_tools/etc/sysconfig/wlan
|
|
||||||
fi
|
|
||||||
cp $i ${STOREPATH}/PKGS/wireless_tools/etc/sysconfig/wlan/
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
r)
|
|
||||||
if [ -z ${RESTOREPATH} ]; then
|
|
||||||
echo "Restorefunction braucht Angabe des Install Root Pfades"
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
if [ ! -d ${RESTOREPATH} ]; then
|
|
||||||
echo "${RESTOREPATH} must exist!"
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
if [ -d ${STOREPATH}/PKGS/wireless_tools ]; then
|
|
||||||
tar -C ${STOREPATH}/PKGS/wireless_tools -cf - .|tar -C ${RESTOREPATH} -xf -
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "$0 {b|r}"
|
|
||||||
exit 10
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
exit 0
|
|
@ -1,67 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Backup/Restore Script für die unattendet Installation
|
|
||||||
# von RainMaker Linux
|
|
||||||
# (c) 2001 by RainMaker MultiMedia OHG
|
|
||||||
#
|
|
||||||
# Zur Funktion des Scriptes werden 2 Variablen vom aufrufenden
|
|
||||||
# Script exportiert:
|
|
||||||
# XPATH: Pfad ins basis Verzeichniss der Konfigurations Daten
|
|
||||||
# NAME: Name der Konfiguration
|
|
||||||
# Sprich die Eigentlichen Konfigurationsdaten sind unter:
|
|
||||||
# $XPATH/$NAME zu finden
|
|
||||||
# beim Restore muß das Zielverzeichniss (Root des neu installierten
|
|
||||||
# Systems) unter $2 übergeben werden
|
|
||||||
#
|
|
||||||
#$Author: kueller $
|
|
||||||
#$Date: 2008-03-19 11:34:26 +0100 (Mi, 19 Mär 2008) $
|
|
||||||
#$Revision: 4105 $
|
|
||||||
#
|
|
||||||
#$Log$
|
|
||||||
#Revision 1.1 2001/09/23 17:50:40 kueller
|
|
||||||
#Initial revision
|
|
||||||
#
|
|
||||||
#Revision 1.1.1.1 2001/08/06 22:09:47 kueller
|
|
||||||
#Aufnahme in CVS Überwachung
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
DO=$1
|
|
||||||
STOREPATH=$2
|
|
||||||
RESTOREPATH=$3
|
|
||||||
|
|
||||||
if [ -z ${STOREPATH} ]; then
|
|
||||||
echo "Es wird Mindestens ein Backupverzeichniss benoetigt."
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
|
|
||||||
case ${DO} in
|
|
||||||
b)
|
|
||||||
if [ -d /etc/sysconfig/wpa_supplicant ]; then
|
|
||||||
for i in /etc/sysconfig/wpa_supplicant/*; do
|
|
||||||
if [ ! -d ${STOREPATH}/PKGS/wpa_supplicant/etc/sysconfig/wpa_supplicant ]; then
|
|
||||||
mkdir -p ${STOREPATH}/PKGS/wpa_supplicant/etc/sysconfig/wpa_supplicant
|
|
||||||
fi
|
|
||||||
cp $i ${STOREPATH}/PKGS/wpa_supplicant/etc/sysconfig/wpa_supplicant/
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
r)
|
|
||||||
if [ -z ${RESTOREPATH} ]; then
|
|
||||||
echo "Restorefunction braucht Angabe des Install Root Pfades"
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
if [ ! -d ${RESTOREPATH} ]; then
|
|
||||||
echo "${RESTOREPATH} must exist!"
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
if [ -d ${STOREPATH}/PKGS/wpa_supplicant ]; then
|
|
||||||
tar -C ${STOREPATH}/PKGS/wpa_supplicant -cf - .|tar -C ${RESTOREPATH} -xf -
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "$0 {b|r}"
|
|
||||||
exit 10
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
exit 0
|
|
@ -113,4 +113,3 @@ fi
|
|||||||
install_cluster $CFGFILE $INSTALLDIR $SOURCE/$BINPATH
|
install_cluster $CFGFILE $INSTALLDIR $SOURCE/$BINPATH
|
||||||
install_kernel $INSTALLDIR
|
install_kernel $INSTALLDIR
|
||||||
make_boot $INSTALLDIR
|
make_boot $INSTALLDIR
|
||||||
cp $SOURCE/VERSION $INSTALLDIR/etc/viitor_release
|
|
||||||
|
Loading…
Reference in New Issue
Block a user