From 2f0aeb8d5d406fbe1f0d9bf2eb88eb6018c76492 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 2 Dec 2003 17:29:13 +0000 Subject: try to classify modifications made to the installed system --- move/make_live | 57 ++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/move/make_live b/move/make_live index a262ec514..444770b53 100755 --- a/move/make_live +++ b/move/make_live @@ -113,18 +113,14 @@ print "Making live in $::prefix directory.\n"; cp_af("$::prefix/tmp/kde-root/ksycoca", "$::prefix/usr/share/services/ksycoca-$_"); } - eval { rm_rf("$::prefix/lib/i686") }; # de-complexify, use the default on any arch +} - symlinkf("/etc/X11/ksycoca", "$::prefix/usr/share/services/ksycoca"); - eval { config_X_proprietary_drivers() }; + #- system - unlink "$::prefix/usr/share/autostart/$_.desktop" foreach 'klipper', 'korgac', 'kalarmd.autostart'; -} +eval { rm_rf("$::prefix/lib/i686") }; # de-complexify, use the default on any arch -update_gnomekderc("$::prefix/usr/share/config/kdesktoprc", ScreenSaver => (Lock => 'true')); - -symlinkf('/var/lib/xkb', "$::prefix/etc/X11/xkb/compiled"); # don't want the relative path, prefering the absolute path +eval { config_X_proprietary_drivers() }; substInFile { #- /lib is ro, for the moment we don't save, we'll see later if we may want to save (using /var/dev-state for example) @@ -136,14 +132,6 @@ substInFile { s|\s*shadow||; } "$::prefix/etc/pam.d/system-auth"; -substInFile { - s|Mandrake Linux release (\S+) \(.*\)|Mandrake Move release $1 (Moyoto)|; -} "$::prefix/etc/mandrake-release"; - -#- remove uncessary wizards, especially from appearing in MCC -unlink "$::prefix/usr/sbin/$_" foreach qw(drakautoinst drakboot drakfloppy drakgw drakedm drakfont rpmdrake MandrakeUpdate rpmdrake-remove edit-urpm-sources.pl); -unlink "$::prefix/usr/bin/$_" foreach qw(userdrake); - #- remove services we start ourselves from chkconfig system substInFile { s|chkconfig:|chkconfig-disabled:|; @@ -157,19 +145,46 @@ if (!-e "$::prefix/usr/share/speedtouch/mgmt.o") { symlink '/etc/mgmt.o', "$::prefix/usr/share/speedtouch/mgmt.o"; } -#- CD-based applications + + #- XFree + +#- don't want the relative path, prefering the absolute path +symlinkf('/var/lib/xkb', "$::prefix/etc/X11/xkb/compiled"); + +#- Xsession wants to start first-time +unlink "$::prefix/usr/X11R6/bin/drakfw"; + +substInFile { + s|startkde\b|startkde_move|; +} "$::prefix/etc/X11/wmsession.d/01KDE"; + + + #- KDE + +symlinkf('/etc/X11/ksycoca', "$::prefix/usr/share/services/ksycoca"); + +unlink "$::prefix/usr/share/autostart/$_.desktop" foreach 'klipper', 'korgac', 'kalarmd.autostart'; + +update_gnomekderc("$::prefix/usr/share/config/kdesktoprc", ScreenSaver => (Lock => 'true')); + +#- remove CD-based applications from simplified menu substInFile { foreach my $app (qw(kaudiocreator kscd k3b)) { s|.*command="$app".*||; } } "$::prefix/usr/lib/menu/simplified/mandrake_desk"; -#- Xsession wants to start first-time -unlink "$::prefix/usr/X11R6/bin/drakfw"; + + + #- Mandrake substInFile { - s|startkde\b|startkde_move|; -} "$::prefix/etc/X11/wmsession.d/01KDE"; + s|Mandrake Linux release (\S+) \(.*\)|Mandrake Move release $1 (Moyoto)|; +} "$::prefix/etc/mandrake-release"; + +#- remove uncessary wizards, especially from appearing in MCC +unlink "$::prefix/usr/sbin/$_" foreach qw(drakautoinst drakboot drakfloppy drakgw drakedm drakfont rpmdrake MandrakeUpdate rpmdrake-remove edit-urpm-sources.pl); +unlink "$::prefix/usr/bin/$_" foreach qw(userdrake); #- drakxtools contains a broken unneeded file unlink "$::prefix/usr/lib/libDrakX/modem.pm"; -- cgit v1.2.1