Ignore:
Timestamp:
Jul 30, 2013, 3:13:19 PM (12 years ago)
Author:
Yuri Dario
Message:

spec: os2-base, add unixtool-path package to prepend /@unixroot/usr/libexec/bin to PATH.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/os2-base.spec

    r355 r358  
    33Name: os2-base
    44Version: 0.0.0
    5 Release: 6%{?dist}
     5Release: 7%{?dist}
    66
    77License: free
     
    251251(as /bin/sh) as FHS http://www.linuxfoundation.org/collaborate/workgroups/lsb/fhs
    252252
     253%package unixtools-path
     254License:        free
     255Summary:        Makes unix tools from findutils and coreutils first in PATH.
     256
     257%description unixtools-path
     258Adds /@unixroot/usr/libexec/bin at beginning of system PATH, to allow conflicting
     259tools from findutils and coreutils to be used instead of default OS/2 tools.
     260
    253261
    254262%prep
     
    301309fi
    302310
     311%post unixtools-path
     312if [ "$1" = 1 ] ; then
     313#execute only on first install
     314%cube {ADDSTRING "%UNIXROOT%\usr\libexec\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys c:\config.sys.yum > NUL
     315fi
     316
     317%postun unixtools-path
     318if [ "$1" = 0 ] ; then
     319#execute only on last uninstall
     320%cube {DELSTRING "%UNIXROOT%\usr\libexec\bin;" IN "SET PATH=" (FIRST IFNEW BEFORE RS(%%)} c:\config.sys > NUL
     321fi
     322
     323
    303324%changelog
     325* Tue Jul 30 2013 yd
     326- add unixtool-path package to prepend /@unixroot/usr/libexec/bin to PATH.
     327
    304328* Wed Jul 24 2013 yd
    305329- put /bin into unixroot drive (requires scripting).
Note: See TracChangeset for help on using the changeset viewer.