summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSExport/Distro
diff options
context:
space:
mode:
authorOliver Tappe2007-03-12 23:50:25 +0100
committerOliver Tappe2007-03-12 23:50:25 +0100
commit1341773fa52e38aaa1e6b9fcbae51f808aabe062 (patch)
tree8ae6b130763c5492faab21b00c6cfff8f6480a53 /installer/OpenSLX/OSExport/Distro
parent* added slxos-export script and the corresponding engine and exporter impleme... (diff)
downloadcore-1341773fa52e38aaa1e6b9fcbae51f808aabe062.tar.gz
core-1341773fa52e38aaa1e6b9fcbae51f808aabe062.tar.xz
core-1341773fa52e38aaa1e6b9fcbae51f808aabe062.zip
* added distro specific part for os-export and put default export-filter there
* the export filter is now built from the parts provided by us (in the distro-module) and the optional export-filter.local file (for which we provide an example) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@761 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSExport/Distro')
-rw-r--r--installer/OpenSLX/OSExport/Distro/Base.pm99
-rw-r--r--installer/OpenSLX/OSExport/Distro/SUSE_10_2.pm99
2 files changed, 198 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSExport/Distro/Base.pm b/installer/OpenSLX/OSExport/Distro/Base.pm
new file mode 100644
index 00000000..36c214a1
--- /dev/null
+++ b/installer/OpenSLX/OSExport/Distro/Base.pm
@@ -0,0 +1,99 @@
+# Base.pm - provides empty base of the distro-specific part of the
+# OpenSLX OSExport API.
+#
+# (c) 2006 - OpenSLX.com
+#
+# Oliver Tappe <ot@openslx.com>
+#
+package OpenSLX::OSExport::Distro::Base;
+
+use vars qw($VERSION);
+$VERSION = 1.01; # API-version . implementation-version
+
+use strict;
+use Carp;
+use File::Basename;
+use OpenSLX::Basics;
+
+################################################################################
+### interface methods
+################################################################################
+sub new
+{
+ confess "Creating OpenSLX::OSExport::Distro::Base-objects directly makes no sense!";
+}
+
+sub initialize
+{
+ my $self = shift;
+ my $engine = shift;
+
+ $self->{'engine'} = $engine;
+
+ $self->initDistroInfo();
+}
+
+sub initDistroInfo
+{
+ my $self = shift;
+
+ $self->{'clone-filter'} = "
+ - *.bak
+ - *.old
+ - *lost+found*
+ - *~
+ - .*.cmd
+ - .svn
+ - /*
+ + /bin
+ + /boot
+ + /dev
+ - /dev/*
+ + /etc
+ - /etc/dxs
+ - /etc/exports*
+ - /etc/opt/openslx
+ - /etc/resolv.conf.*
+ - /etc/samba/secrets.tdb
+ - /etc/shadow*
+ - /etc/vmware/installer.sh
+ + /home
+ - /home/*
+ + /lib
+ + /lib64
+ + /mnt
+ - /mnt/*
+ + /opt
+ - /opt/openslx
+ + /proc
+ - /proc/*
+ + /root
+ - /root/*
+ + /sbin
+ + /sys
+ - /sys/*
+ + /tmp
+ - /tmp/*
+ + /usr
+ - /usr/lib/vmware/modules/*
+ + /var
+ - /var/lib/vmware
+ - /var/opt/openslx
+ - /var/tmp/*
+ ";
+}
+
+1;
+################################################################################
+
+=pod
+
+=head1 NAME
+
+OpenSLX::OSExport::Distro::Base
+
+=head1 SYNOPSIS
+
+...
+
+=cut
diff --git a/installer/OpenSLX/OSExport/Distro/SUSE_10_2.pm b/installer/OpenSLX/OSExport/Distro/SUSE_10_2.pm
new file mode 100644
index 00000000..60ee21a4
--- /dev/null
+++ b/installer/OpenSLX/OSExport/Distro/SUSE_10_2.pm
@@ -0,0 +1,99 @@
+# SUSE_10_2.pm
+# - provides SUSE-10.2-specific overrides of the OpenSLX OSExport API.
+#
+# (c) 2006 - OpenSLX.com
+#
+# Oliver Tappe <ot@openslx.com>
+#
+package OpenSLX::OSExport::Distro::SUSE_10_2;
+
+use vars qw(@ISA $VERSION);
+@ISA = ('OpenSLX::OSExport::Distro::Base');
+$VERSION = 1.01; # API-version . implementation-version
+
+use strict;
+use Carp;
+use OpenSLX::Basics;
+use OpenSLX::OSExport::Distro::Base 1.01;
+
+################################################################################
+### implementation
+################################################################################
+sub new
+{
+ my $class = shift;
+ my $self = {
+ 'base-name' => 'suse-10.2',
+ };
+ return bless $self, $class;
+}
+
+sub initialize
+{
+ my $self = shift;
+ my $engine = shift;
+
+ $self->SUPER::initialize($engine);
+}
+
+sub initDistroInfo
+{
+ my $self = shift;
+
+ $self->SUPER::initDistroInfo();
+
+ $self->{'export-filter'} = "
+ - *.YaST2save
+ - *.o
+ - *.rpmnew
+ - *.rpmsave
+ - /boot/grub
+ - /boot/initrd*
+ - /etc/X11/xdm/SuSEconfig.xdm
+ - /etc/cron.*/*
+ - /etc/dhcpd.conf*
+ + /lib/modules/*/misc/vmmon.o
+ + /lib/modules/*/misc/vmnet.o
+ + /media
+ - /media/*
+ - /opt/kde3/share/autostart/SUSEgreeter.desktop
+ - /opt/kde3/share/autostart/beagled.desktop
+ - /opt/kde3/share/autostart/kerry.autostart.desktop
+ - /opt/kde3/share/autostart/knetworkmanager-autostart.desktop
+ - /opt/kde3/share/autostart/opensuseupdater.desktop
+ - /opt/kde3/share/autostart/profile_chooser-autostart.desktop
+ - /opt/kde3/share/autostart/runupdater.desktop
+ - /opt/kde3/share/autostart/suseplugger.desktop
+ - /usr/X11R6/bin/BackGround
+ - /usr/bin/nw-manager
+ - /usr/bin/zen-*
+ + /usr/lib/*.o
+ + /usr/lib/gcc/*/*/*.o
+ + /usr/lib/perl5/*/*/*/*.o
+ + /usr/lib/python*/*/*.o
+ - /usr/lib/zen-updater
+ - /usr/share/vmware/*
+ - /var/adm/SuSEconfig
+ - /var/adm/backup/rpmdb/*
+ - /var/cache/man/*
+ - /var/lib/YaST2/you/mnt/*
+ - /var/lib/dhcp*
+ - /var/lib/gdm/*
+ - /var/lib/hardware/*
+ - /var/lib/sax
+ - /var/lib/suspend*
+ - /var/lib/vm/*
+ - /var/lib/xdm
+ - /var/lib/zmd
+ - /var/lib/zypp/*
+ - /var/lib/zypp/cache/*
+ - /var/lock/*
+ - /var/log/*
+ - /var/mail
+ - /var/run/*
+ - /var/spool/*
+ - /var/tmp/*
+ ";
+}
+
+1; \ No newline at end of file