summaryrefslogtreecommitdiffstats
path: root/trunk/files
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2012-05-26 15:28:33 +0000
committerThomas Backlund <tmb@mageia.org>2012-05-26 15:28:33 +0000
commit528a1fbedeffce036154955623c370b8f47c33bd (patch)
tree0865a6d7c1939082917acf5de3b4f85ba77bd09d /trunk/files
parent07cb265cf99918196a257585757a3c2bb175f57f (diff)
parent7eead25cd00a547753ec94f6b301c5b32968291b (diff)
downloaddraklive-config-distro/mga2.tar
draklive-config-distro/mga2.tar.gz
draklive-config-distro/mga2.tar.bz2
draklive-config-distro/mga2.tar.xz
draklive-config-distro/mga2.zip
new branch for mga2distro/mga2
Diffstat (limited to 'trunk/files')
-rwxr-xr-xtrunk/files/99-live-disable-suspend-hibernate.fdi11
-rwxr-xr-xtrunk/files/99dm-reload.xsetup3
-rw-r--r--trunk/files/GUADEC-booklet.desktop6
-rwxr-xr-xtrunk/files/compute-i18n-list.pl88
-rwxr-xr-xtrunk/files/compute-ooo-dicts.pl55
-rw-r--r--trunk/files/defaultspooler1
-rwxr-xr-xtrunk/files/desktop-directories-liveusb-rw37
-rw-r--r--trunk/files/draklive-install.d/draklive-resize1
-rw-r--r--trunk/files/draklive-install.d/finish-install13
-rw-r--r--trunk/files/draklive-install.d/firstboot1
-rw-r--r--trunk/files/draklive-install.d/remove.d/disable-speedboot1
-rwxr-xr-xtrunk/files/draklive-install.d/run.d/generate-gtk-icon-cache.sh7
-rw-r--r--trunk/files/draklive-install.d/services3
-rw-r--r--trunk/files/draklive-install.usb1
-rw-r--r--trunk/files/draksnapshot.sysconfig1
-rw-r--r--trunk/files/finish-install.cdrom7
-rw-r--r--trunk/files/finish-install.usb6
-rw-r--r--trunk/files/firstboot1
-rwxr-xr-xtrunk/files/halt.local.cdrom25
-rw-r--r--trunk/files/halt.pre20
-rw-r--r--trunk/files/kbluetoothrc5
-rw-r--r--trunk/files/korgacrc2
-rw-r--r--trunk/files/live.modprobe.cdrom1
-rw-r--r--trunk/files/mdkonlinerc1
-rwxr-xr-xtrunk/files/portable-directories-flash-liveusb-rw22
-rwxr-xr-xtrunk/files/xdg-email-hook.sh4
26 files changed, 0 insertions, 323 deletions
diff --git a/trunk/files/99-live-disable-suspend-hibernate.fdi b/trunk/files/99-live-disable-suspend-hibernate.fdi
deleted file mode 100755
index 96f1767..0000000
--- a/trunk/files/99-live-disable-suspend-hibernate.fdi
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
-<deviceinfo version="0.2">
- <device>
- <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
- <merge key="power_management.can_hibernate" type="bool">false</merge>
- <merge key="power_management.can_suspend" type="bool">false</merge>
- <merge key="power_management.can_suspend_to_disk" type="bool">false</merge>
- <merge key="power_management.can_suspend_to_ram" type="bool">false</merge>
- </match>
- </device>
-</deviceinfo>
diff --git a/trunk/files/99dm-reload.xsetup b/trunk/files/99dm-reload.xsetup
deleted file mode 100755
index 67d8ee8..0000000
--- a/trunk/files/99dm-reload.xsetup
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-LOCK=/var/lock/reload-dm
-[ -f "$LOCK" ] && rm -f $LOCK && if [ x"$RUNNING_UNDER_GDM" = xtrue ]; then nohup service dm restart; fi;
diff --git a/trunk/files/GUADEC-booklet.desktop b/trunk/files/GUADEC-booklet.desktop
deleted file mode 100644
index ca2492e..0000000
--- a/trunk/files/GUADEC-booklet.desktop
+++ /dev/null
@@ -1,6 +0,0 @@
-[Desktop Entry]
-Icon=distributor-logo
-Encoding=UTF-8
-Name=GUADEC Booklet
-Type=Link
-URL=http://assets.expectnation.com/9/eventprovider/9/booklet.pdf
diff --git a/trunk/files/compute-i18n-list.pl b/trunk/files/compute-i18n-list.pl
deleted file mode 100755
index 914585b..0000000
--- a/trunk/files/compute-i18n-list.pl
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-use Getopt::Long;
-use lib qw(/usr/lib/libDrakX);
-use run_program;
-
-# alleged i18n packages for french (useful to spot missing requires on locales-fr)
-# rpm -qa \*-fr\* --qf '%{name}\n' | perl -n -e '/^(.*)-fr(_.+)?$/ and print "$1\n"' | sort -u
-# my @packages = (
-# aspell
-# kde-i18n
-# locales
-# mozilla-firefox
-# myspell
-# myspell-hyph
-# openoffice.org-l10n
-# );
-
-my ($prefix, $ooo_version);
-GetOptions(
- "prefix=s" => \$prefix,
- "ooo=s" => \$ooo_version,
-);
-
-my @misowned_dirs = qw(
-/usr/lib/ooo-${ooo_version}
-/usr/lib/ooo-${ooo_version}/help
-/usr/share/apps
-/usr/share/apps/khangman
-/usr/share/apps/khangman/data
-/usr/share/apps/ktuberling
-/usr/share/apps/ktuberling/sounds
-/usr/share/doc/HTML
-/usr/share/locale
-);
-
-my @dirs = qw(
-/usr/share/man
-/usr/share/doc/HTML
-);
-
-my @files = qw(
-/usr/lib/ooo-${ooo_version}/share/dict/$L.*
-/usr/lib/ooo-${ooo_version}/share/dict/$L_comb.*
-/usr/lib/ooo-${ooo_version}/share/dict/hyph_$L.*
-/usr/lib/ooo-${ooo_version}/share/dict/th_$L.*
-/usr/lib/ooo-${ooo_version}/share/dict/th_$L_v2.*
-);
-
-my %per_locale_files = (
- zh => [
- #- disables anti-aliasing by default
- '/etc/fonts/conf.d/99-ttf-arphic-uming-bitmaps.conf'
- ],
-);
-
-my @locale_packages = run_program::rooted_get_stdout($prefix, 'rpm', '-qa', 'locales-*', '--qf', '%{name}\n');
-my @locales = sort(map { s/^locales-//; chomp; $_ } @locale_packages);
-
-sub expand_files {
- my ($p, $o_lang) = @_;
- $p =~ s/\$L/$o_lang/ if $o_lang;
- map { s/^$prefix//; $_ } grep { -e $_ } glob($prefix . $p);
-}
-
-foreach my $l (@locales) {
- my @list;
- my $locale_pkg = "locales-$l";
- #my $l_pattern = qr/^$l([_.@].+)?$/;
- #my @l_packages = map { ("$_-$l", "$_-${l}_*") } @packages;
- my @l_packages = chomp_(run_program::rooted_get_stdout($prefix, 'rpm', '-q', '--qf', '%{name}\n', '--whatrequires', $locale_pkg));
- unshift @l_packages, $locale_pkg;
- my @list = chomp_(run_program::rooted_get_stdout($prefix, 'rpm', '-ql', @l_packages));
- my @all_locales = map { m!^/usr/share/locale/([^/]+)$! } chomp_(run_program::rooted_get_stdout($prefix, 'rpm', '-ql', $locale_pkg));
- # skip misowned directories such as /usr/share/locale
- @list = grep { ! -d $prefix . $_ || member(basename($_), @all_locales) } @list;
- #@list = difference2(\@list, \@misowned_dirs);
- foreach my $l2 (@all_locales) {
- foreach my $d (@dirs) {
- my $l_d = $d . '/' . $l2;
- push @list, $l_d if -e $prefix . $l_d;
- }
- push @list, expand_files($_, $l2) foreach @files;
- }
- push @list, expand_files($_) foreach @{$per_locale_files{$l} || []};
- output_p($prefix . "/root/drakx/i18n-$l.lst", map { "$_\n" } sort(@list));
-}
diff --git a/trunk/files/compute-ooo-dicts.pl b/trunk/files/compute-ooo-dicts.pl
deleted file mode 100755
index d9968c5..0000000
--- a/trunk/files/compute-ooo-dicts.pl
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-use Getopt::Long;
-use lib qw(/usr/lib/libDrakX);
-use run_program;
-
-my $prefix;
-my $check_locale;
-GetOptions(
- "prefix=s" => \$prefix,
- "check-locale" => \$check_locale,
-);
-my $dictd = $ARGV[0] or die "syntax: $0 [--check-locale] [--prefix <prefix>] <dictionary dir>";
-
-my $dictf = "dictionary.lst";
-my $dicts = "dictionary.src";
-my $dictu = "dictionary.unused";
-
-my @dictl;
-my @unused;
-
-my @available_langs = map {
- /^locales-(\S+)/ ? $1 : ();
-} chomp_(run_program::rooted_get_stdout($prefix, 'rpm', '-qa', '--provides', 'locales-*'));
-
-sub add_dict {
- my ($type, $name, $file, $add) = @_;
- my ($lang, $country) = $name =~ /^([^_]+)_([^_]+)/;
- my ($root_name) = $file =~ /^(.*)\.(.*?)$/;
- if (!$check_locale || member($lang, @available_langs)) {
- push @dictl, [ $type, $lang, $country, $root_name ] if $add;
- } else {
- push @unused, "$dictd/$file";
- }
-}
-
-rename("$prefix$dictd/$dictf", "$prefix$dictd/$dicts") if ! -e "$prefix$dictd/$dicts";
-foreach (all("$prefix/$dictd")) {
- if (/^hyph_(.+)\.(.*?)$/) {
- add_dict('HYPH', $1, $_, $2 eq 'dic');
- } elsif (/^th_(.+)\.(.*?)$/) {
- add_dict('THES', $1, $_, $2 eq 'idx');
- } elsif (/^(.+_.+)\.(.*?)$/) {
- add_dict('DICT', $1, $_, $2 eq 'dic');
- }
-}
-
-output_p("$prefix$dictd/$dictf",
- join('', grep { /^#/ } cat_("$prefix$dictd/$dicts")),
- "\n",
- map { join(' ', @$_) . "\n" } @dictl,
- );
-
-output_p("$prefix$dictd/$dictu", map { "$_\n" } @unused);
diff --git a/trunk/files/defaultspooler b/trunk/files/defaultspooler
deleted file mode 100644
index 462d36c..0000000
--- a/trunk/files/defaultspooler
+++ /dev/null
@@ -1 +0,0 @@
-cups
diff --git a/trunk/files/desktop-directories-liveusb-rw b/trunk/files/desktop-directories-liveusb-rw
deleted file mode 100755
index 3fd7635..0000000
--- a/trunk/files/desktop-directories-liveusb-rw
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-LIVEUSB_LOCK="$HOME/.liveusb-folders"
-LIVEUSB_ROOT=/live/media
-[ -e "$LIVEUSB_ROOT/My Documents" ] && LIVEUSB_ALA_WINDOWS=1
-
-[ -e $LIVEUSB_LOCK ] && exit
-
-while pidof -x xdg-user-dirs-update; do
- [ "$SECONDS" -le 60 ] || return
- sleep 1
-done
-
-function create_link() {
- NAME=$1
- SRC=$2
- [ -z "$SRC" ] && SRC=$($NAME)
- XDG_DIR=$(xdg-user-dir $NAME)
- LIVEUSB_DIR="$LIVEUSB_ROOT/$SRC"
- mkdir -p "$LIVEUSB_DIR"
- mv $XDG_DIR/{.??,}* "$LIVEUSB_DIR"
- rmdir $XDG_DIR && ln -sf "$LIVEUSB_DIR" "$XDG_DIR"
-}
-
-if [ -n "$LIVEUSB_ALA_WINDOWS" ]; then
- create_link "DOCUMENTS" "My Documents"
- create_link "DOWNLOAD" "My Documents/My Downloads"
- create_link "MUSIC" "My Documents/My Music"
- create_link "PICTURES" "My Documents/My Images"
- create_link "VIDEOS" "My Documents/My Video"
-else
- for d in DOWNLOAD DOCUMENTS MUSIC PICTURES VIDEOS; do
- create_link $d $(echo $d | tr A-Z a-z)
- done
-fi
-
-touch $LIVEUSB_LOCK
diff --git a/trunk/files/draklive-install.d/draklive-resize b/trunk/files/draklive-install.d/draklive-resize
deleted file mode 100644
index 5d33155..0000000
--- a/trunk/files/draklive-install.d/draklive-resize
+++ /dev/null
@@ -1 +0,0 @@
-DRAKLIVE_RESIZE=no
diff --git a/trunk/files/draklive-install.d/finish-install b/trunk/files/draklive-install.d/finish-install
deleted file mode 100644
index c4f6824..0000000
--- a/trunk/files/draklive-install.d/finish-install
+++ /dev/null
@@ -1,13 +0,0 @@
-FINISH_INSTALL=yes
-LICENSE=no
-LANGUAGE=no
-KEYBOARD=no
-TIMEZONE=no
-COUNTRY=no
-NETWORK=yes
-URPMI=yes
-AUTHENTICATION=no
-USERS=with_root
-USER_RENAME_FROM=<DEFAULT_USER>
-USER_AUTOLOGIN_FIRST=yes
-GLX=no
diff --git a/trunk/files/draklive-install.d/firstboot b/trunk/files/draklive-install.d/firstboot
deleted file mode 100644
index a842497..0000000
--- a/trunk/files/draklive-install.d/firstboot
+++ /dev/null
@@ -1 +0,0 @@
-FIRSTBOOT=no
diff --git a/trunk/files/draklive-install.d/remove.d/disable-speedboot b/trunk/files/draklive-install.d/remove.d/disable-speedboot
deleted file mode 100644
index 7bc22d6..0000000
--- a/trunk/files/draklive-install.d/remove.d/disable-speedboot
+++ /dev/null
@@ -1 +0,0 @@
-/var/lib/speedboot/status
diff --git a/trunk/files/draklive-install.d/run.d/generate-gtk-icon-cache.sh b/trunk/files/draklive-install.d/run.d/generate-gtk-icon-cache.sh
deleted file mode 100755
index e920320..0000000
--- a/trunk/files/draklive-install.d/run.d/generate-gtk-icon-cache.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-for icondir in /usr/share/icons/*; do
- if [ -d "$icondir" -a -f "$icondir/index.theme" ]; then
- /usr/bin/gtk-update-icon-cache --force --quiet "$icondir";
- fi
-done
diff --git a/trunk/files/draklive-install.d/services b/trunk/files/draklive-install.d/services
deleted file mode 100644
index 6e7a6b4..0000000
--- a/trunk/files/draklive-install.d/services
+++ /dev/null
@@ -1,3 +0,0 @@
-anacron
-crond
-dkms
diff --git a/trunk/files/draklive-install.usb b/trunk/files/draklive-install.usb
deleted file mode 100644
index fbfa41c..0000000
--- a/trunk/files/draklive-install.usb
+++ /dev/null
@@ -1 +0,0 @@
-SOURCE=/live/source
diff --git a/trunk/files/draksnapshot.sysconfig b/trunk/files/draksnapshot.sysconfig
deleted file mode 100644
index cca41e8..0000000
--- a/trunk/files/draksnapshot.sysconfig
+++ /dev/null
@@ -1 +0,0 @@
-AUTOSTART=FALSE
diff --git a/trunk/files/finish-install.cdrom b/trunk/files/finish-install.cdrom
deleted file mode 100644
index fed1dd5..0000000
--- a/trunk/files/finish-install.cdrom
+++ /dev/null
@@ -1,7 +0,0 @@
-FINISH_INSTALL=yes
-NETWORK=no
-URPMI=no
-AUTHENTICATION=no
-USERS=no
-TIMEZONE=simplified
-COUNTRY=simplified
diff --git a/trunk/files/finish-install.usb b/trunk/files/finish-install.usb
deleted file mode 100644
index 467f1ac..0000000
--- a/trunk/files/finish-install.usb
+++ /dev/null
@@ -1,6 +0,0 @@
-FINISH_INSTALL=yes
-USERS=with_root
-AUTHENTICATION=no
-USER_AUTOLOGIN_FIRST=yes
-TIMEZONE=simplified
-COUNTRY=simplified
diff --git a/trunk/files/firstboot b/trunk/files/firstboot
deleted file mode 100644
index a842497..0000000
--- a/trunk/files/firstboot
+++ /dev/null
@@ -1 +0,0 @@
-FIRSTBOOT=no
diff --git a/trunk/files/halt.local.cdrom b/trunk/files/halt.local.cdrom
deleted file mode 100755
index 1e9fc67..0000000
--- a/trunk/files/halt.local.cdrom
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/perl
-
-use lib qw(/usr/lib/libDrakX);
-use MDK::Common;
-use detect_devices;
-use c;
-
-my ($device) = cat_("/proc/mounts") =~ m!(/dev/\S+)\s+/live/media\s+iso9660!;
-$device or exit;
-
-system("chvt 1");
-
-# try to put halt/reboot in cache, if not called directly from them
-# mount is also needed by end of /etc/init.d/halt
-system("$_ --help &>/dev/null") foreach qw(halt mount reboot);
-
-my $f = detect_devices::tryOpen($device);
-# see openCdromTray() from install::any
-ioctl($f, c::CDROM_LOCKDOOR(), 0); # unlock door
-ioctl($f, c::CDROMEJECT(), 0);
-
-print "\n\nPlease press <Enter> (or <CTRL><J>) once the medium is removed.\n";
-system("read < /dev/console");
-
-ioctl($f, c::CDROMCLOSETRAY(), 0);
diff --git a/trunk/files/halt.pre b/trunk/files/halt.pre
deleted file mode 100644
index 8b2583e..0000000
--- a/trunk/files/halt.pre
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-mypath=$_
-roottype=`awk '$2 == "/" { print $3 }' /etc/fstab`
-
-maybe_umount() {
- eval d=\$$#
- awk "\$2 == \"$d\" { system(\"umount \" \$d) }" /proc/mounts
-}
-
-if [ "$roottype" == unionfs ]; then
- maybe_umount /var/lib/rpm
- maybe_umount /tmp/rpm/real
- maybe_umount /tmp/rpm
-fi
-
-# disable self during first halt when installed
-rm -f $mypath
-
-/bin/plymouth quit
diff --git a/trunk/files/kbluetoothrc b/trunk/files/kbluetoothrc
deleted file mode 100644
index 2680caa..0000000
--- a/trunk/files/kbluetoothrc
+++ /dev/null
@@ -1,5 +0,0 @@
-[General]
-AutoStart=false
-
-[Notification Messages]
-kbluepinLocInfo-usr-lib-kdebluetooth=false
diff --git a/trunk/files/korgacrc b/trunk/files/korgacrc
deleted file mode 100644
index f948d8c..0000000
--- a/trunk/files/korgacrc
+++ /dev/null
@@ -1,2 +0,0 @@
-[General]
-Autostart=false
diff --git a/trunk/files/live.modprobe.cdrom b/trunk/files/live.modprobe.cdrom
deleted file mode 100644
index 5bb2345..0000000
--- a/trunk/files/live.modprobe.cdrom
+++ /dev/null
@@ -1 +0,0 @@
-install usblp /bin/true
diff --git a/trunk/files/mdkonlinerc b/trunk/files/mdkonlinerc
deleted file mode 100644
index cca41e8..0000000
--- a/trunk/files/mdkonlinerc
+++ /dev/null
@@ -1 +0,0 @@
-AUTOSTART=FALSE
diff --git a/trunk/files/portable-directories-flash-liveusb-rw b/trunk/files/portable-directories-flash-liveusb-rw
deleted file mode 100755
index dbdda92..0000000
--- a/trunk/files/portable-directories-flash-liveusb-rw
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-function create_mozilla_profile() {
- USER_DIR=$1
- PORTABLE_DIR=$2
- [ -d $USER_DIR ] && return
- mkdir -p $USER_DIR
- ln -sf "$PORTABLE_DIR/Data/profile" $USER_DIR
- cat > "$USER_DIR/profiles.ini" <<EOF
-[General]
-StartWithLastProfile=1
-
-[Profile0]
-Name=default
-IsRelative=1
-Path=profile
-EOF
-}
-
-PORTABLE_ROOT=/live/media/.apps
-create_mozilla_profile "$HOME/.mozilla/firefox" "$PORTABLE_ROOT/FirefoxPortable"
-create_mozilla_profile "$HOME/.thunderbird" "$PORTABLE_ROOT/ThunderbirdPortable"
diff --git a/trunk/files/xdg-email-hook.sh b/trunk/files/xdg-email-hook.sh
deleted file mode 100755
index 2ad2dc3..0000000
--- a/trunk/files/xdg-email-hook.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-[ -z "$MAILER" ] && MAILER=`which mozilla-thunderbird 2> /dev/null`
-[ -z "$MAILER" ] && MAILER=/usr/bin/xdg-email
-exec $MAILER $@