# Copyright (c) 2012 - OpenSLX GmbH # # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING # # If you have any feedback please consult http://openslx.org/feedback and # send your suggestions, praise, or complaints to feedback@openslx.org # # General information about OpenSLX can be found at http://openslx.org/ # ----------------------------------------------------------------------------- # OSExport/Distro/Rhel.pm # - provides RHEL specific overrides of the OSExport Distro API. # ----------------------------------------------------------------------------- package OpenSLX::OSExport::Distro::Rhel; use strict; use warnings; use base qw(OpenSLX::OSExport::Distro::Base); use OpenSLX::Basics; ################################################################################ ### implementation ################################################################################ sub new { my $class = shift; my $self = { 'base-name' => 'rhel', }; return bless $self, $class; } sub initDistroInfo { my $self = shift; # To only sync an empty directory tree use # + /path/*/ # - /path/* $self->{'export-filter'} = " - *~ - *.rpmnew - *.rpmsave - /boot/grub - /boot/initrd* - /etc/cron.*/* - /etc/dhcp* - /etc/netplug* - /etc/*ppp* - /etc/*pptp* - /etc/*rpmnew - /etc/*rpmorig - /etc/sysconfig/network-scripts/ifcfg-* - /etc/X11/xkb + /lib/modules/*/misc/vmblock.o + /lib/modules/*/misc/vmmon.o + /lib/modules/*/misc/vmnet.o - /media/* + /media - /mnt/* - /opt/kde3/share/apps/kdm/read_sysconfig.sh - /opt/kde3/share/autostart/kinternet.desktop - /opt/kde3/share/autostart/profile_chooser-autostart.desktop - /opt/kde3/share/autostart/runupdater.desktop - /proc/* - /sys/* - /tmp/* - /usr/bin/BackGround + /usr/lib/gcc/*/*/*.o + /usr/lib/*.o + /usr/lib/perl5/*/*/*/*.o + /usr/lib/python*/*/*.o - /usr/share/gnome/autostart/gpk-update-icon*.desktop + /usr/X11R6/lib/modules/drivers/linux/*.o + /usr/X11R6/lib/modules/drivers/*.o + /var/cache/*/ - /var/cache/* - /var/cache/*/* - /var/cfengine/* + /var/lib/bluetooth/*/ - /var/lib/bluetooth/* - /var/lib/dhcp* - /var/lib/gdm/* - /var/lib/smart - /var/lib/suspend* - /var/lib/vm* - /var/lib/xdm + /var/lock/*/ - /var/lock/* - /var/lock/*/* + /var/log/*/ - /var/log/* - /var/log/*/* - /var/mail + /var/run/*/ - /var/run/* - /var/run/*/* + /var/spool/*/ - /var/spool/* - /var/spool/*/* - /var/tmp/* "; return; } 1;