1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/x11/nvidia-driver/pkg-plist
Tijl Coosemans dae73343c3 Install both 32 bit and 64 bit Linux libraries from the official Linux
driver distribution instead of the ones bundled with the FreeBSD driver
which are incomplete and 32 bit only.  This makes amd64 Linux OpenGL
programs work on FreeBSD 12.0 and recent 11-STABLE.  This does not enable
CUDA.

- Initialise DISTFILES so a file can be added by the LINUX option.
- Set EXTRACT_ONLY because the file added by the LINUX option is a
  self-extracting archive handled in post-extract.
- The patches for <355.06 and >=355.06 are identical except for the path.
  Keep only one set (listed in SUB_PATCHES) because more patches have been
  added.  Modify their path in pre-patch.  The patches have been renamed
  from extra-patch-* to extra-patch-*.in.
- Set OPTIONS_SUB and use option helpers for the LINUX option.
- Define LINUX_ARCH_SUFX like ARCH_SUFX because LINUX_ARCH can be i386 on
  amd64.
- Set LINUX_LIBDIR to the main lib directory: (/compat/linux)/usr/lib on
  i386 and (/compat/linux)/usr/lib64 on amd64.  (The compat32 directory is
  (/compat/linux)/usr/lib.)
- Define LINUX_LIBS, LINUX_LINKS, LINUX32_LIBS, LINUX32_LINKS, LINUX_PROGS,
  LINUX_MANS, and LINUX_DATA for all driver versions from 304.137 to 390.87.
  LINUX_LIBS and LINUX32_LIBS contain main libraries (i386/amd64) and
  compat32 libraries respectively.  These are installed with INSTALL_LIB in
  post-install.  LINUX_LINKS and LINUX32_LINKS contain symbolic link sources
  and their target.  LINUX_PROGS are binaries installed with
  INSTALL_PROGRAM.  LINUX_MANS are manuals installed with INSTALL_MAN.
  LINUX_DATA are data files and their destination, installed with
  INSTALL_DATA.  The .if blocks for the different versions are sorted
  alphabetically on the first file.
- Define PLIST_RE for all versions.  These are sed commands applied to
  TMPPLIST in post-install.
- Include bsd.port.pre.mk instead of bsd.port.options.mk to obtain
  LINUX_ARCH.
- Adjust post-patch to disable installation of Linux libraries bundled with
  the FreeBSD driver.
- Add post-patch-LINUX-on to setup nvidia_icd.json like nvidia-installer
  does on Linux.
- Adjust existing post-install TMPPLIST edits to apply only to non-Linux
  files.
- Add post-install-LINUX-on to install the Linux files.
- Add files/extra-patch-src-nvidia_ctl.c.in and
  extra-patch-src-nvidia_dev.c.in.  These patches make Linux stat(2) return
  the right major and minor number for /dev/nvidiactl and /dev/nvidia[0-9]+.
  Recent versions of the Linux libraries verify these. [1]  Define the
  struct passed to linux_device_register_handler on the stack in
  nvidia_*_attach instead of as a global variable in case multiple graphics
  cards are attached in parallel.
- Add files/extra-patch-src-nvidia_linux.c.in.  It rewrites the Linux ioctl
  handler.  The current implementation does not copyin arguments leading to
  kernel panics on FreeBSD 12 on machines that support Supervisor Mode
  Access Prevention (SMAP).
- Add files/extra-patch-src-nvidia_pci.c.in.  It adds a dependency on the
  linux_common kernel module for linux_device_register_handler.
- Modify files/extra-patch-src_nvidia-modeset_nvidia-modeset-freebsd.c to
  add major/minor numbers (global struct here, because it is constant),
  rewrite ioctl, and add a dependency on linux_common for
  /dev/nvidia-modeset.

PR:		217901
Analysed by:	Alex S <iwtcex@gmail.com> [1]
Tested by:	Hannes Hauswedell <h2+fbsdports@fsfe.org> (390.87)
Tested by:	tijl (304.137)
Approved by:	maintainer timeout (15 days)
2018-12-14 16:24:02 +00:00

205 lines
11 KiB
Plaintext

bin/nvidia-bug-report.sh
bin/nvidia-debugdump
bin/nvidia-smi
etc/libmap.d/nvidia.conf
lib/libGL-NVIDIA.so
lib/libGL-NVIDIA.so.1
lib/libEGL-NVIDIA.so
lib/libEGL-NVIDIA.so.1
lib/libGLESv1_CM.so
lib/libGLESv1_CM.so.1
lib/libGLESv2-NVIDIA.so
lib/libGLESv2-NVIDIA.so.2
lib/libXvMCNVIDIA.a
lib/libXvMCNVIDIA.so
lib/libXvMCNVIDIA.so.1
lib/libXvMCNVIDIA_dynamic.so.1
lib/libnvidia-cfg.so
lib/libnvidia-cfg.so.1
lib/libnvidia-eglcore.so
lib/libnvidia-eglcore.so.1
lib/libnvidia-glcore.so
lib/libnvidia-glcore.so.1
lib/libnvidia-glsi.so
lib/libnvidia-glsi.so.1
lib/libnvidia-ml.so
lib/libnvidia-ml.so.1
lib/libnvidia-tls.so
lib/libnvidia-tls.so.1
lib/libvdpau_nvidia.so
lib/vdpau/libvdpau_nvidia.so.1
man/man1/nvidia-smi.1.gz
%%MODULESDIR%%/drivers/nvidia_drv.so
%%MODULESDIR%%/extensions/.nvidia/libglx.so
%%MODULESDIR%%/extensions/.nvidia/libglx.so.1
/%%KMODDIR%%/nvidia.ko
/%%KMODDIR%%/nvidia-modeset.ko
%%LINUX%%%%LINUXBASE%%/etc/OpenCL/vendors/nvidia.icd
%%LINUX%%%%LINUXBASE%%/etc/vulkan/icd.d/nvidia_icd.json
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-bug-report.sh
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-cuda-mps-control
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-cuda-mps-server
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-debugdump
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-persistenced
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-settings
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-smi
%%LINUX%%%%LINUXBASE%%/usr/bin/nvidia-xconfig
%%LINUX32%%%%LINUXBASE%%/usr/lib/libEGL.so.1
%%LINUX32%%@postunexec [ ! -e %%LINUXBASE%%/usr/lib/libEGL.so.1.0.0 ] || ln -sf libEGL.so.1.0.0 %%LINUXBASE%%/usr/lib/libEGL.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libEGL.so.X
%%LINUX32%%%%LINUXBASE%%/usr/lib/libEGL_nvidia.so.0
%%LINUX32%%%%LINUXBASE%%/usr/lib/libEGL_nvidia.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGL.so.1
%%LINUX32%%@postunexec [ ! -e %%LINUXBASE%%/usr/lib/libGL.so.1.2.0 ] || ln -sf libGL.so.1.2.0 %%LINUXBASE%%/usr/lib/libGL.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGL.so.X
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLdispatch.so.0
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv1_CM.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv1_CM.so.X
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv1_CM_nvidia.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv1_CM_nvidia.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv2.so.2
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv2.so.X
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv2_nvidia.so.2
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLESv2_nvidia.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLX.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLX.so.0
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLX_indirect.so.0
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLX_nvidia.so.0
%%LINUX32%%%%LINUXBASE%%/usr/lib/libGLX_nvidia.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libOpenGL.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libOpenGL.so.0
%%LINUX32%%%%LINUXBASE%%/usr/lib/libcuda.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libcuda.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libcuda.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvcuvid.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvcuvid.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvcuvid.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-compiler.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-eglcore.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-encode.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-encode.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-encode.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-fatbinaryloader.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-fbc.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-fbc.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-fbc.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-glcore.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-glsi.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ifr.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ifr.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ifr.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ml.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ml.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ml.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-opencl.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-opencl.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ptxjitcompiler.so
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ptxjitcompiler.so.1
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-ptxjitcompiler.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libnvidia-tls.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/libvdpau_nvidia.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/tls/libnvidia-tls.so.%%SHLIB_VERSION%%
%%LINUX32%%%%LINUXBASE%%/usr/lib/vdpau/libvdpau_nvidia.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libEGL.so.1
%%LINUX%%@postunexec [ ! -e %%LINUXBASE%%%%LINUX_LIBDIR%%/libEGL.so.1.0.0 ] || ln -sf libEGL.so.1.0.0 %%LINUXBASE%%%%LINUX_LIBDIR%%/libEGL.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libEGL.so.X
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libEGL_nvidia.so.0
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libEGL_nvidia.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGL.so.1
%%LINUX%%@postunexec [ ! -e %%LINUXBASE%%%%LINUX_LIBDIR%%/libGL.so.1.2.0 ] || ln -sf libGL.so.1.2.0 %%LINUXBASE%%%%LINUX_LIBDIR%%/libGL.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGL.so.X
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLdispatch.so.0
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv1_CM.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv1_CM.so.X
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv1_CM_nvidia.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv1_CM_nvidia.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv2.so.2
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv2.so.X
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv2_nvidia.so.2
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLESv2_nvidia.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLX.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLX.so.0
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLX_indirect.so.0
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLX_nvidia.so.0
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libGLX_nvidia.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libOpenGL.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libOpenGL.so.0
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libXvMCNVIDIA.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libXvMCNVIDIA_dynamic.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libXvMCNVIDIA_dynamic.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libcuda.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libcuda.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libcuda.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvcuvid.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvcuvid.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvcuvid.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-cfg.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-cfg.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-cfg.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-compiler.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-egl-wayland.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-egl-wayland.so.X
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-eglcore.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-encode.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-encode.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-encode.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-fatbinaryloader.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-fbc.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-fbc.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-fbc.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-glcore.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-glsi.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-gtk2.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-gtk3.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ifr.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ifr.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ifr.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ml.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ml.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ml.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-opencl.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-opencl.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ptxjitcompiler.so
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ptxjitcompiler.so.1
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-ptxjitcompiler.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libnvidia-tls.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/libvdpau_nvidia.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/tls/libnvidia-tls.so.%%SHLIB_VERSION%%
%%LINUX%%%%LINUXBASE%%%%LINUX_LIBDIR%%/vdpau/libvdpau_nvidia.so.1
%%LINUX%%%%LINUXBASE%%/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json
%%LINUX%%%%LINUXBASE%%/usr/share/glvnd/egl_vendor.d/10_nvidia.json
%%LINUX%%%%LINUXBASE%%/usr/share/man/man1/nvidia-cuda-mps-control.1.gz
%%LINUX%%%%LINUXBASE%%/usr/share/man/man1/nvidia-persistenced.1.gz
%%LINUX%%%%LINUXBASE%%/usr/share/man/man1/nvidia-settings.1.gz
%%LINUX%%%%LINUXBASE%%/usr/share/man/man1/nvidia-smi.1.gz
%%LINUX%%%%LINUXBASE%%/usr/share/man/man1/nvidia-xconfig.1.gz
%%LINUX%%%%LINUXBASE%%/usr/share/nvidia/monitoring.conf
%%LINUX%%%%LINUXBASE%%/usr/share/nvidia/nvidia-application-profiles-%%SHLIB_VERSION%%-key-documentation
%%LINUX%%%%LINUXBASE%%/usr/share/nvidia/nvidia-application-profiles-%%SHLIB_VERSION%%-rc
%%LINUX%%%%LINUXBASE%%/usr/share/nvidia/pci.ids
%%LINUX%%@postexec %%LINUXBASE%%/sbin/ldconfig
%%LINUX%%@postunexec %%LINUXBASE%%/sbin/ldconfig
%%LINUX%%@dir %%LINUXBASE%%/etc/OpenCL/vendors
%%LINUX%%@dir %%LINUXBASE%%/etc/OpenCL
%%LINUX%%@dir %%LINUXBASE%%/etc/vulkan/icd.d
%%LINUX%%@dir %%LINUXBASE%%/etc/vulkan
%%LINUX%%@dir %%LINUXBASE%%/etc
%%LINUX%%@dir %%LINUXBASE%%/usr/bin
%%LINUX32%%@dir %%LINUXBASE%%/usr/lib/tls
%%LINUX32%%@dir %%LINUXBASE%%/usr/lib/vdpau
%%LINUX32%%@dir %%LINUXBASE%%/usr/lib
%%LINUX%%@dir %%LINUXBASE%%%%LINUX_LIBDIR%%/tls
%%LINUX%%@dir %%LINUXBASE%%%%LINUX_LIBDIR%%/vdpau
%%LINUX%%@dir %%LINUXBASE%%%%LINUX_LIBDIR%%
%%LINUX%%@dir %%LINUXBASE%%/usr/share/egl/egl_external_platform.d
%%LINUX%%@dir %%LINUXBASE%%/usr/share/egl
%%LINUX%%@dir %%LINUXBASE%%/usr/share/glvnd/egl_vendor.d
%%LINUX%%@dir %%LINUXBASE%%/usr/share/glvnd
%%LINUX%%@dir %%LINUXBASE%%/usr/share/man/man1
%%LINUX%%@dir %%LINUXBASE%%/usr/share/man
%%LINUX%%@dir %%LINUXBASE%%/usr/share/nvidia
%%LINUX%%@dir %%LINUXBASE%%/usr/share
%%LINUX%%@dir %%LINUXBASE%%/usr
%%LINUX%%@dir %%LINUXBASE%%
%%LINUX%%@dir /compat