<list no-arch-libraries="on">

<from expand="binary">
  ash echo
  aria2c cp curl md5sum <!-- needed by urpmi -->
  cpio gzip bzip2
  <if-not ARCH="ppc">
    fdisk
  </if-not>
  <if ARCH="ppc">
    pdisk 
  </if>
  insmod modinfo rmmod
  losetup
  lvm2 mdadm
  mount mount.nfs umount
  xz

  udevadm <!-- needed by mouse::detect & stage2 -->

  badblocks
  mkswap
  mkfs.ext2 mkfs.ext3 mkfs.ext4 e2fsck tune2fs dumpe2fs resize2fs

  mkfs.reiserfs resize_reiserfs reiserfstune
  mkfs.xfs xfs_admin
  xfs_freeze xfs_io <!-- needed for setup grub on XFS formated / -->

  mkfs.btrfs btrfsctl btrfs btrfsck fsck.btrfs
  mkfs.nilfs2 nilfs-tune

  tty stty <!-- needed for text mode installer (through unicode_start) -->

  <if ARCH="i.86|x86_64|ia64">
    mkdosfs
    dosfslabel
    mlabel
    mkntfs
    ntfsresize
    ntfslabel
    dmraid
  </if>
  <if ARCH="i.86|x86_64">
    mkfs.jfs fsck.jfs jfs_tune
  </if>
  quotacheck
  cryptsetup dmsetup

  setfont kbd_mode
  <mode copy="dereference">
    Xorg
  </mode>
  xset
  xkbcomp setxkbmap

  fb2png
  perl
  monitor-edid monitor-get-edid-using-vbe monitor-parse-edid monitor-get-edid

  <filter subst="s!^echo!/bin/echo!">
    unicode_start
  </filter>

  <if ARCH="i.86|x86_64|ia64">
    dmidecode 
  </if>
  <if ARCH="ia64">
  efibootmgr 
  </if>

  <if ARCH="ppc">
    hattrib hcopy hcd
    hformat hmount humount 
  </if>

  <if set="DEBUG_INSTALL">
    strace bash less ps top gdb busybox
  </if>
</from>

<!-- when adding udev rules, think whether they're needed in rescue too
     (../../../rescue/list.xml) -->
<from dir="/lib/udev/rules.d">
  10-dm.rules
  11-dm-lvm.rules
  13-dm-disk.rules
  60-persistent-storage.rules
  64-md-raid.rules
  <filter subst="s/bash/sh/">
    65-md-incremental.rules
  </filter>
  95-dm-notify.rules
</from>

<from dir="/usr/LIB/xorg/modules">
  drivers/fbdev_drv.so
  drivers/vesa_drv.so
  extensions/libextmod.so
  input/kbd_drv.so
  input/mouse_drv.so
  input/vmmouse_drv.so
  input/wacom_drv.so
  libfbdevhw.so
  libfb.so
  libint10.so
  libshadow.so
  libvbe.so
</from>

<from dir="/usr/share/X11/xkb">
 <filter subst="s!//.*!!">
  geometry/pc
  keycodes/aliases
  keycodes/xfree86
  rules/base
  rules/base.lst
  rules/xorg
  rules/xorg.lst
  compat types
  <from expand="glob">
    symbols/*
  </from>
 </filter>
</from>

<from dir="/usr/share/fonts/">
  <to flatten="on">
    misc/cursor.pcf.gz
    TTF/bengali/MuktiNarrow.ttf
    TTF/dejavu/DejaVuSans.ttf
    TTF/dejavu/DejaVuSans-Bold.ttf
    TTF/dejavu/DejaVuSans-BoldOblique.ttf
    TTF/devanagari/raghu.ttf
    TTF/lohit/lohit_pa.ttf
    TTF/thai/Norasi.ttf
    TTF/wqy-microhei/wqy-microhei.ttc
  </to>
</from>

<from dir="/usr/share/locale">
  <to dir="/usr/share/locale_special">
    <from expand="glob">
      */LC_MESSAGES/draksnapshot.mo
      */LC_MESSAGES/drakx-net.mo
      */LC_MESSAGES/drakx-kbd-mouse-x11.mo
      */LC_MESSAGES/gtk20.mo
      */LC_MESSAGES/urpmi.mo
    </from>
  </to>
</from>

<from dir="/usr/share/X11/locale">
  C
  en_US.UTF-8 
  iso8859-1
</from>

<filter command="strip">
<from dir="/LIB">
  libnss_nis.so.2
  libnss_files.so.2
  libnss_dns.so.2
  libresolv.so.2
  ld-linux*.so.2
  <!-- needed for mount.ntfs-3g -->
  libfuse.so.2

  <!-- modules used by libnss3 -->
  libfreebl3.so
  libsoftokn3.so

  <!-- needed by dmraid -->
  libdmraid-events-isw.so
</from>
</filter>

<from>
  /etc/urpmi/prefer.vendor.list
  /etc/mke2fs.conf
  /etc/netconfig
  /etc/fonts/
  /etc/passwd
  /etc/protocols
  /etc/rpm/macros.d/20common.macros
<!--  /usr/share/X11/XKeysymDB -->
  /etc/pango/ARCH/pango.modules
  /usr/LIB/libgdk_pixbuf-2.0.so.0
  /usr/LIB/gtk-2.0/*/immodules/im-cedilla.so
  /usr/LIB/gtk-2.0/*/engines/liboxygen-gtk.so
  /usr/share/mime/mime.cache

  /usr/lib/libDrakX/keyboard.pm
  /usr/lib/libDrakX/mouse.pm
  /usr/lib/libDrakX/network
  /usr/lib/libDrakX/Xconfig
  /usr/lib/libDrakX/auto/xf86misc
  /usr/lib/libDrakX/xf86misc
  <mode copy="keep-links">
     /usr/share/doc/installer-help/
  </mode>
  /usr/share/libDrakX/pixmaps
  /usr/lib/rpm/rpmrc
  /usr/lib/rpm/macros
  /usr/share/pci.ids
  /usr/share/usb.ids
  /usr/share/locale/UTF-8
  /usr/share/terminfo/l/linux
  /bin/brltty
  /sbin/mount.ntfs-3g <!-- cannot be expanded as binary, not executable for all users -->
  /sbin/blkid

  /usr/bin/drakx-matchbox-window-manager
  /usr/share/matchbox/mbnoapp.xpm

  /etc/pki/tls/certs/ca-bundle.crt

  /lib/udev/udevd
  /lib/udev/ata_id
  /lib/udev/scsi_id
  /lib/udev/pcmcia-socket-startup
  /etc/pcmcia/config.opts

  <!-- for GDB: -->
  <if set="DEBUG_INSTALL">
    /usr/include/python2.7/pyconfig.h
    /usr/LIB/libinproctrace.so
    /usr/LIB/libpython2.7.so.1.0
    /usr/LIB/python2.7/_abcoll.py
    /usr/LIB/python2.7/abc.py
    /usr/LIB/python2.7/codecs.py
    /usr/LIB/python2.7/config/Makefile
    /usr/LIB/python2.7/copy.py
    /usr/LIB/python2.7/copy_reg.py
    /usr/LIB/python2.7/encodings/aliases.py
    /usr/LIB/python2.7/encodings/__init__.py
    /usr/LIB/python2.7/encodings/utf_8.py
    /usr/LIB/python2.7/genericpath.py
    /usr/LIB/python2.7/lib-dynload/itertools.so
    /usr/LIB/python2.7/linecache.py
    /usr/LIB/python2.7/os.py
    /usr/LIB/python2.7/posixpath.py
    /usr/LIB/python2.7/re.py
    /usr/LIB/python2.7/site-packages/pygtk.pth
    /usr/LIB/python2.7/site.py
    /usr/LIB/python2.7/sre_compile.py
    /usr/LIB/python2.7/sre_constants.py
    /usr/LIB/python2.7/sre_parse.py
    /usr/LIB/python2.7/stat.py
    /usr/LIB/python2.7/sysconfig.py
    /usr/LIB/python2.7/traceback.py
    /usr/LIB/python2.7/types.py
    /usr/LIB/python2.7/UserDict.py
    /usr/LIB/python2.7/warnings.py
    /usr/LIB/python2.7/weakref.py
    /usr/LIB/python2.7/_weakrefset.py
    /usr/share/gdb/python/gdb/backtrace.py
    /usr/share/gdb/python/gdb/command/backtrace.py
    /usr/share/gdb/python/gdb/command/ignore_errors.py
    /usr/share/gdb/python/gdb/command/__init__.py
    /usr/share/gdb/python/gdb/command/pahole.py
    /usr/share/gdb/python/gdb/command/pretty_printers.py
    /usr/share/gdb/python/gdb/command/require.py
    /usr/share/gdb/python/gdb/command/upto.py
    /usr/share/gdb/python/gdb/FrameIterator.py
    /usr/share/gdb/python/gdb/FrameWrapper.py
    /usr/share/gdb/python/gdb/function/caller_is.py
    /usr/share/gdb/python/gdb/function/__init__.py
    /usr/share/gdb/python/gdb/function/in_scope.py
    /usr/share/gdb/python/gdb/__init__.py
  </if>

  <from expand="glob">
    /usr/share/themes/oxygen-gtk*
    /usr/LIB/gdk-pixbuf-2.0/*/loaders.cache
    /usr/LIB/gdk-pixbuf-2.0/*/loaders/libpixbufloader-png.so
    /etc/gtk-2.0/gtk.immodules.*
    /etc/brltty/*.ttb
    /etc/brltty/*.txt
    /LIB/brltty/libbrlttyb??.so
  </from>

  <from expand="command">
    perl -Mlang -I.. -le 'print foreach lang::console_font_files()'
  </from>

  <if set="DEBUG_INSTALL">
    /etc/termcap
  </if>
</from>

<from dir="/usr/share/ldetect-lst">
  dmitable.gz pcitable.gz usbtable.gz
  dkms-modules.alias fallback-modules.alias
  <filter command="gzip">
    Cards+ MonitorsDB isdn.db
  </filter>
</from>

<from dir="/lib/module-init-tools">
  ldetect-lst-modules.alias
</from>

<from dir="/usr/LIB/pango/*/modules">
  pango-basic-fc.so
  pango-arabic-fc.so
  pango-hangul-fc.so
  pango-hebrew-fc.so
  pango-indic-fc.so
  pango-thai-fc.so
</from>

<from dir="/usr/LIB/gconv">
  BIG5.so
  EUC-JP.so
  libGB.so
  libJIS.so
  libKSC.so
  EUC-KR.so
  ISO8859-15.so
  ISO8859-14.so
  ISO8859-13.so
  ISO8859-9E.so
  ISO8859-9.so
  ISO8859-7.so
  ISO8859-5.so
  ISO8859-3.so
  ISO8859-2.so
  ISO8859-1.so
 <from expand="glob"> 
  KOI8-*.so
 </from>
  TIS-620.so
  CP1251.so
  GEORGIAN-PS.so
  EUC-CN.so
  gconv-modules
</from>

<filter subst="/^__END__/ and $_ = '', close ARGV">
<from expand="main-perl">
  AutoLoader.pm
  Carp/Heavy.pm
  Carp.pm
  Exporter/Heavy.pm
  Exporter.pm
  File/Basename.pm
  File/Find.pm
  FileHandle.pm
  File/Path.pm
  File/Temp.pm
  Getopt/Long.pm
  IPC/Open2.pm
  IPC/Open3.pm
  Net/Cmd.pm
  Net/Config.pm
  Net/FTP/A.pm
  Net/FTP/dataconn.pm
  Net/FTP/I.pm
  Net/FTP.pm
  Net/Netrc.pm
  Net/Ping.pm
  PerlIO.pm
  SelectSaver.pm
  SelfLoader.pm
  Symbol.pm
  Tie/Hash.pm
  Time/Local.pm
  XSLoader.pm
  base.pm
  bytes_heavy.pl <!-- needed by urpm::mirrors -->
  bytes.pm
  constant.pm
  dumpvar.pl
  feature.pm
  integer.pm
  locale.pm
  overload.pm
  overloading.pm
  strict.pm
  unicore/Heavy.pl
  unicore/To/Digit.pl
  unicore/To/Fold.pl
  unicore/To/Lower.pl
  unicore/To/Upper.pl
  utf8_heavy.pl
  utf8.pm
  vars.pm
  warnings.pm
  warnings/register.pm
  ARCH-linux-thread-multi/B.pm
  ARCH-linux-thread-multi/Config_git.pl
  ARCH-linux-thread-multi/Config_heavy.pl
  ARCH-linux-thread-multi/Config.pm
  ARCH-linux-thread-multi/Cwd.pm
  ARCH-linux-thread-multi/Data/Dumper.pm
  ARCH-linux-thread-multi/DynaLoader.pm
  ARCH-linux-thread-multi/Errno.pm
  ARCH-linux-thread-multi/Fcntl.pm
  ARCH-linux-thread-multi/File/Glob.pm
  ARCH-linux-thread-multi/File/Spec.pm
  ARCH-linux-thread-multi/File/Spec/Unix.pm
  ARCH-linux-thread-multi/_h2ph_pre.ph
  ARCH-linux-thread-multi/IO/File.pm
  ARCH-linux-thread-multi/IO/Handle.pm
  ARCH-linux-thread-multi/IO.pm
  ARCH-linux-thread-multi/IO/Seekable.pm
  ARCH-linux-thread-multi/IO/Select.pm
  ARCH-linux-thread-multi/IO/Socket/INET.pm
  ARCH-linux-thread-multi/IO/Socket.pm
  ARCH-linux-thread-multi/IO/Socket/UNIX.pm
  ARCH-linux-thread-multi/List/Util.pm
  ARCH-linux-thread-multi/List/Util/PP.pm
  ARCH-linux-thread-multi/POSIX.pm
  ARCH-linux-thread-multi/Scalar/Util.pm
  ARCH-linux-thread-multi/Scalar/Util/PP.pm
  ARCH-linux-thread-multi/Socket.pm
  ARCH-linux-thread-multi/Time/HiRes.pm
  <if ARCH="ia64">
  ARCH-linux-thread-multi/asm-i386/unistd.ph 
  ARCH-linux-thread-multi/asm-x86_64/unistd.ph 
  ARCH-linux-thread-multi/asm/break.ph 
  </if>
  <if ARCH="i.86|x86_64">
  ARCH-linux-thread-multi/asm/unistd_32.ph
  ARCH-linux-thread-multi/asm/unistd_64.ph
  </if>
  ARCH-linux-thread-multi/asm/unistd.ph
  ARCH-linux-thread-multi/auto/B/B.so
  ARCH-linux-thread-multi/auto/Cwd/Cwd.so
  ARCH-linux-thread-multi/auto/Data/Dumper/Dumper.so
  ARCH-linux-thread-multi/auto/Fcntl/Fcntl.so
  ARCH-linux-thread-multi/auto/File/Glob/Glob.so
  ARCH-linux-thread-multi/auto/IO/IO.so
  ARCH-linux-thread-multi/auto/POSIX/POSIX.so
  ARCH-linux-thread-multi/auto/Socket/Socket.so
  ARCH-linux-thread-multi/auto/Time/HiRes/HiRes.so
  ARCH-linux-thread-multi/bits/syscall.ph
  ARCH-linux-thread-multi/bits/wordsize.ph
  ARCH-linux-thread-multi/lib.pm
  ARCH-linux-thread-multi/re.pm
  ARCH-linux-thread-multi/syscall.ph
  ARCH-linux-thread-multi/sys/syscall.ph
  <if set="DEBUG_INSTALL">
    perl5db.pl
    Term/ReadLine.pm
  </if>
</from>

<from expand="perl">
  packdrake.pm
  Config/IniFiles.pm
  MDV/Distribconf.pm
  MDV/Packdrakeng.pm
  MDV/Snapshot/Common.pm
  MDV/Snapshot/Restore.pm
  String/ShellQuote.pm
  ARCH-linux-thread-multi/List/MoreUtils.pm
  ARCH-linux-thread-multi/Term/ReadKey.pm
  ARCH-linux-thread-multi/auto/Term/ReadKey/ReadKey.so
  urpm.pm
  urpm/args.pm
  urpm/cdrom.pm
  urpm/cfg.pm
  urpm/download.pm
  urpm/get_pkgs.pm
  urpm/install.pm
  urpm/lock.pm
  urpm/main_loop.pm
  urpm/md5sum.pm
  urpm/media.pm
  urpm/mirrors.pm
  urpm/msg.pm
  urpm/orphans.pm
  urpm/removable.pm
  urpm/select.pm
  urpm/signature.pm
  urpm/util.pm
  urpm/sys.pm
  <if set="DEBUG_INSTALL">
    ARCH-linux-thread-multi/Term/ReadLine/Gnu.pm
    ARCH-linux-thread-multi/Term/ReadLine/Gnu/XS.pm
    ARCH-linux-thread-multi/auto/Term/ReadLine/Gnu/Gnu.so
    ARCH-linux-thread-multi/auto/Term/ReadLine/Gnu/XS/autosplit.ix
  </if>
</from>

<from expand="rpm" matching="m!/usr/lib/perl5/.*/unicore/lib!">
  perl
</from>

<from expand="rpm" matching="m!^/usr/lib/perl5! and !/\.pod$/">
  perl-Curses
  perl-Curses-UI
  perl-File-FnMatch
  perl-File-Sync
  perl-Filesys-Df
  perl-Clone
  perl-Glib
  perl-Gtk2
  perl-Gtk2-WebKit
  perl-Locale-gettext
  perl-MDK-Common
  perl-Pango
  perl-URPM
</from>
</filter>

<from dir="..">
  <to dir="$(REP4PMS)">
    <filter command="strip">
      <from expand="command">
	cd .. ; find auto -follow -name "*.so"
      </from>
    </filter>
  </to>
</from>

<from dir="../../tools">
  <to dir="/usr/bin" flatten="on">
    serial_probe/serial_probe 
    xhost+
  </to>
</from>

<from dir="../standalone">
  <to dir="/usr/bin">
    display_release_notes.pl
  </to>
</from>

<from dir="share">
  <from expand="tar">
    keymaps.tar.bz2
  </from>

  <to dir="/usr/share">
    consolefonts symlinks
    upgrade
  </to>
</from>

<from dir="../pixmaps">
  <to dir="/usr/share">
    <from expand="glob">
      *.png
    </from>
  </to>
</from>

<from dir="../share">
  <to dir="/usr/share">
    <from expand="glob">
      *.png
    </from>
  </to>
</from>

<from dir="share">
  <to dir="/etc/gtk-2.0/">
    gtkrc
  </to>
</from>


<from dir="pixmaps">
  <to dir="/usr/share">
    <from expand="glob">
      *.png
    </from>   
  </to>
</from>

<from dir="pixmaps/langs">
  <to dir="/usr/share/langs">
    <from expand="command">
      perl -I.. -Mlang -le 'print "lang-$_.png" foreach lang::list_langs()'
    </from>
  </to>
</from>

</list>