HOME -> LINUX-PMAC -> DIRECTORY
Also I wanted to have a dual view on each file, package to which a
file belongs and kind/usage of file. I decided to install each
"package" into a subdirectory of
/opt and not directly into
/usr hierarchy as is done usually. The
/usr directories would only contain soft links pointing to
the real files under
Getting the structure I want isn't that easy, because several programs and libraries except files in a special place. E.g. there are several instances in glibc where the shell "/bin/sh" is referred. Therfore I have to maintain these links, which I hope I can eliminate at some time in the future.
/usr/lib, needed because some fundamental libraries, are expected in this place, like
/lib/ld.so.1the ELF binary loader which is referenced in each executable.
I wrote the shell script makeDirs that will create all
directories, set the desired owner and permissions, and create also just those
devices I need. The script assumes, the current directory is the root of
the directory tree. It will not erase already existing directories or devices. But
will readjust permissions and ownership.
Note: this script is not up-to-date