FHS structure is making me crazy and I need to write down things since I forget how that FHS craziness works.
USR Directory
Where |
Name 1 |
SPECS (RPM) |
Comments
|
@unixroot/usr |
usr |
%{_usr} |
usr directory
|
@unixroot/usr/bin |
Binaries |
%{_bindir} |
EXE files goes here
|
@unixroot/usr/lib |
Libraries |
%{_libdir} |
DLL files goes here
|
@unixroot/usr/share/ |
DataDir |
%{_datadir} |
Any apps files goes here. Images, sounds, etc.
|
@unixroot/usr/share/doc/ |
|
%doc |
TXT files goes here
|
@unixroot/usr/share/doc/ |
|
%{_docdir} |
|
@unixroot/usr/share/man |
|
%{_mandir} |
MAN files goes here
|
@unixroot/usr/share/licenses/ |
|
%license |
License files goes here
|
@unixroot/usr/share/os2/lang |
|
%os2_langdir |
|
@unixroot/usr/share/os2/book |
|
%os2_bookdir |
|
@unixroot/usr/share/os2/help |
|
%os2_helpdir |
HLP Files here
|
HOME Directory
Where |
Name 1 |
SPECS (RPM) |
Comments
|
x:\Home |
Home Path |
%{getenv:HOME} |
|
VAR
Where |
Name 1 |
SPECS (RPM) |
Comments
|
@unixroot/var/tmp |
|
%{_tmppath} |
Temporary Path
|
@unixroot/var |
|
%{_var} |
var pat
|
OTHERS
Where |
Name 1 |
SPECS (RPM) |
Comments
|
x:PROGRAMS |
|
%{env:PROGRAMS} |
Brings the variable from "SET PROGRAMS=" withoout the backslash
|
x:\PROGRAMS |
|
$PROGRAMS |
Brings the variable from "SET PROGRAMS=", full path.
|
x:\config.sys |
|
%{os2_config_sys} |
Brings config.sys full path.
|
x: |
|
%{os2_unixroot_path} |
OS/2 Unix root drive
|
Testing
You can open sh command line session and test:
# rpm --eval %os2_langdir
/@unixroot/usr/share/os2/lang
# rpm --eval %os2_bookdir
/@unixroot/usr/share/os2/book
# rpm --eval %os2_helpdir
/@unixroot/usr/share/os2/help
# rpm --eval %{echo:$PROGRAMS\\myapp}
F:\Apps\myapp
# rpm --eval %{echo:$PROGRAMS\\myapp}
$PROGRAMS\\myapp
Links