From d8565fa1432a85ba53237545f8780d8cb30d1060 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 23 Mar 2007 09:14:09 +0000 Subject: * export backend is now capable of exporting just any distribution * added specializations for Gentoo, Fedora, Debian and Ubuntu git-svn-id: http://svn.openslx.org/svn/openslx/trunk@803 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/OpenSLX/OSExport/Distro/Fedora.pm | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 installer/OpenSLX/OSExport/Distro/Fedora.pm (limited to 'installer/OpenSLX/OSExport/Distro/Fedora.pm') diff --git a/installer/OpenSLX/OSExport/Distro/Fedora.pm b/installer/OpenSLX/OSExport/Distro/Fedora.pm new file mode 100644 index 00000000..b518008a --- /dev/null +++ b/installer/OpenSLX/OSExport/Distro/Fedora.pm @@ -0,0 +1,53 @@ +# Fedora.pm +# - provides Fedora-specific overrides of the OpenSLX OSExport API. +# +# (c) 2006 - OpenSLX.com +# +# Oliver Tappe +# +package OpenSLX::OSExport::Distro::Fedora; + +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' => 'fedora', + }; + return bless $self, $class; +} + +sub initDistroInfo +{ + my $self = shift; + + # TODO: check and refine this! + $self->{'export-filter'} = " + - /var/tmp/* + - /var/spool/* + - /var/run/* + - /var/lock/* + - /var/log/* + - /var/lib/xdm + - /var/cache/man/* + - /usr/share/vmware/* + - /lib/klibc/events/* + - /boot/initrd* + - /boot/grub + - *.rpmsave + - *.rpmnew + "; +} + +1; \ No newline at end of file -- cgit v1.2.3-55-g7522