1.6 KiB
1.6 KiB
Making a tarinstall
Detailed creation process
- A temporary directory is created, from now it will be referred to as
tmp/ - Inside
tmp/the structure is created (bin/,lib/,env, etc.) - The file
tmp/idgets written tmp/bin/gets populated with the executables listed in thedepsfile- The binaries inside
tmp/bin/get read and the list of shared libraries gets written toliblist - The
liblistfile gets read and all the necessary libraries get downloaded and/or copied totmp/lib/, thenliblistgets deleted - The
tmp/envgets generated - The
tmp/man/andtmp/ext/directories get populated with the right files - The checksum for the files inside
tmpgets calculated and written totmp/checksum - The
tmpdirectory gets compressed as a tar archive - The decompressor and loader programs get applied to the tar archive
- The archive gets renamed
<id>.tiand granted executable permission
The project's root directory structure
The project's root directory has to contain a subdirectory called tarinstall
which has to contain the following elements:
idfile: contains the id name of the programtypefile: contains the type of projectdepsfile: contains a list of the binary files that the program uses
Types of project
The type file may contain one or more of these option separated by a newline
in order to determine which binaries/libraries to download or copy from the
system and in order to generate the right env file.
This requirement may be removed in favour of automatic recognition.
- C (also the option for C++)
- python
- go
- perl