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

<from expand="binary">
  ash echo
  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

  <mode copy="dereference">
    vol_id <!-- needed by libDrakX -->
    usb_id <!-- needed by mouse::detect -->
  </mode>

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

  mkfs.reiserfs
  mkfs.xfs
  resize_reiserfs
  <if ARCH="i.86|x86_64|ia64">
    mkdosfs 
    mkntfs
    ntfsresize
    dmraid
  </if>
  <if ARCH="i.86|x86_64">
    mkfs.jfs fsck.jfs
  </if>
  quotacheck

  setfont kbd_mode
  Xorg 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
  </if>
</from>

<from dir="/usr/LIB/xorg/modules">
  libpcidata.so
  drivers/fbdev_drv.so
  drivers/vesa_drv.so
  extensions/libextmod.so
  input/wacom_drv.so
  input/mouse_drv.so
  input/kbd_drv.so
  linux/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/xorg
  rules/xorg.lst
  compat semantics 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/gurmukhi/lohit_pa.ttf
    TTF/thai/Norasi.ttf
  </to>
</from>

<from dir="/usr/share/locale">
  <to dir="/usr/share/locale_special">
    <from expand="glob">
      */LC_MESSAGES/drakx-net.mo
      */LC_MESSAGES/drakx-kbd-mouse-x11.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
</from>
</filter>

<from>
  /etc/urpmi/prefer.vendor.list
  /etc/mke2fs.conf
  /etc/fonts/fonts.conf
  /etc/protocols
  /etc/rpm/macros.d/10manbo.macros
  /etc/rpm/macros.d/20common.macros
  /usr/LIB/xserver/SecurityPolicy
  /usr/share/X11/XKeysymDB
  /etc/pango/ARCH/pango.modules
  /usr/LIB/gtk-2.0/*/loaders/libpixbufloader-png.so
  <!-- XPM loader is needed by Gtk2::Html2 on error -->
  /usr/LIB/gtk-2.0/*/loaders/libpixbufloader-xpm.so
  /usr/LIB/gtk-2.0/*/immodules/im-cedilla.so
  /usr/LIB/gtk-2.0/*/engines/libia_ora.so

  /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
  /usr/share/libDrakX/pixmaps
  /usr/share/doc/installer-help/
  /usr/lib/rpm/rpmrc
  /usr/lib/rpm/macros
  /usr/lib/rpm/manbo/rpmrc
  /usr/share/pci.ids
  /usr/share/locale/UTF-8
  /usr/share/terminfo/l/linux
  /bin/brltty

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

  <from spaces_in_filename="1">
      /usr/share/themes/Ia Ora Smooth/ 
  </from>

  /lib/udev/pcmcia-socket-startup
  /etc/pcmcia/config.opts

  <from expand="glob">
    <from spaces_in_filename="1">
    </from>
    /etc/gtk-2.0/gdk-pixbuf.loaders.*
    /etc/gtk-2.0/gtk.immodules.*
    /etc/brltty/text.*.tbl
    /etc/brltty/brltty-??.hlp
    /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.pm
  Carp/Heavy.pm
  Exporter.pm
  Exporter/Heavy.pm
  FileHandle.pm
  File/Basename.pm
  File/Find.pm
  File/Path.pm
  File/Spec.pm
  File/Spec/Unix.pm
  File/Temp.pm
  Getopt/Long.pm
  PerlIO.pm
  SelectSaver.pm
  SelfLoader.pm
  Symbol.pm
  Tie/Hash.pm
  Time/Local.pm
  base.pm
  constant.pm
  feature.pm
  locale.pm
  utf8.pm
  utf8_heavy.pl
  unicore/Exact.pl
  unicore/Canonical.pl
  unicore/PVA.pl
  unicore/To/Lower.pl
  unicore/To/Fold.pl
  unicore/To/Upper.pl
  unicore/lib/gc_sc/Word.pl
  unicore/lib/gc_sc/Digit.pl
  dumpvar.pl
  warnings.pm
  warnings/register.pm
  ARCH-linux-thread-multi/File/Glob.pm
  ARCH-linux-thread-multi/auto/File/Glob/Glob.so
  ARCH-linux-thread-multi/Config.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/XSLoader.pm
  ARCH-linux-thread-multi/auto/Fcntl/Fcntl.so
  ARCH-linux-thread-multi/IO.pm
  ARCH-linux-thread-multi/IO/File.pm
  ARCH-linux-thread-multi/IO/Handle.pm
  ARCH-linux-thread-multi/IO/Seekable.pm
  ARCH-linux-thread-multi/IO/Select.pm
  ARCH-linux-thread-multi/IO/Socket.pm
  ARCH-linux-thread-multi/IO/Socket/INET.pm
  ARCH-linux-thread-multi/IO/Socket/UNIX.pm
  ARCH-linux-thread-multi/List/Util.pm
  ARCH-linux-thread-multi/Socket.pm
  ARCH-linux-thread-multi/Scalar/Util.pm
  ARCH-linux-thread-multi/_h2ph_pre.ph
  ARCH-linux-thread-multi/asm/unistd.ph
  <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/auto/Data/Dumper/Dumper.so
  ARCH-linux-thread-multi/auto/IO/IO.so
  ARCH-linux-thread-multi/auto/Socket/Socket.so
  ARCH-linux-thread-multi/bits/syscall.ph
  ARCH-linux-thread-multi/bits/wordsize.ph
  ARCH-linux-thread-multi/sys/syscall.ph
  ARCH-linux-thread-multi/syscall.ph
  ARCH-linux-thread-multi/auto/DynaLoader/dl_findfile.al
  ARCH-linux-thread-multi/lib.pm
  ARCH-linux-thread-multi/re.pm
  ARCH-linux-thread-multi/auto/POSIX/autosplit.ix
  ARCH-linux-thread-multi/auto/POSIX/load_imports.al
  ARCH-linux-thread-multi/auto/POSIX/POSIX.so
  ARCH-linux-thread-multi/Cwd.pm
  ARCH-linux-thread-multi/auto/Cwd/Cwd.so
  ARCH-linux-thread-multi/POSIX.pm
  ARCH-linux-thread-multi/Time/HiRes.pm
  ARCH-linux-thread-multi/auto/Time/HiRes/HiRes.so
  bytes.pm
  integer.pm
  overload.pm
  strict.pm
  vars.pm
  Net/Cmd.pm
  Net/Config.pm
  Net/FTP.pm
  Net/FTP/A.pm
  Net/FTP/I.pm
  Net/FTP/dataconn.pm
  Net/Netrc.pm
  <if set="DEBUG_INSTALL">
    perl5db.pl
    Term/ReadLine.pm
  </if>
</from>

<from expand="perl">
  packdrake.pm
  Config/IniFiles.pm
  MDV/Packdrakeng.pm
  MDV/Distribconf.pm
  MDK/Common
  MDK/Common.pm
  String/ShellQuote.pm
  ARCH-linux-thread-multi/Locale/gettext.pm
  ARCH-linux-thread-multi/auto/Locale/gettext/gettext.so
  ARCH-linux-thread-multi/File/FnMatch.pm
  ARCH-linux-thread-multi/auto/File/FnMatch/FnMatch.so
  ARCH-linux-thread-multi/Term/ReadKey.pm
  ARCH-linux-thread-multi/auto/Term/ReadKey/ReadKey.so
  ARCH-linux-thread-multi/URPM.pm
  ARCH-linux-thread-multi/URPM/Build.pm
  ARCH-linux-thread-multi/URPM/Resolve.pm
  ARCH-linux-thread-multi/URPM/Signature.pm
  ARCH-linux-thread-multi/auto/URPM/URPM.so
  MDV/Snapshot/Common.pm
  MDV/Snapshot/Restore.pm
  urpm/msg.pm
  urpm/select.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! and !/\.pod$/">
  perl-Gtk2
  perl-Glib
  perl-Gtk2-Html2
  perl-Curses
  perl-Curses-UI
</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+

    <mode on-error="ignore">
      ARCH/busybox
    </mode>
  </to>
</from>

<from dir="share">
  <from expand="tar">
    fonts.tar.bz2
    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>