
BYLD: Build Your Linux Disk
License: GPL2 (see LICENSE)

(C) 1999-2000, Erich Roncarolo <erich@roncarolo.eu.org>


--- PAKING ---
In this file is described how make BYLD packages (see README first!).
A BYLD package is a gziped tar archive (with few other informations) that
can be (un)installed by /opt/sbin/(un)pak.
You can put everything you want in a BYLD package: documents, binaries,
libraries, ... and then install it.
Type: pak --help to obtain help


--- Quick paking ---
It's very simple! Just create a dir and put what you want in it, then do Pak.

# mkdir <pakdir>
(fill it...)
# ./Pak <pakdir>


--- Pakdir ---
Format of <pakdir> name is very free: you can choose every name you like.
This is the common package format:

<pakdir>/
|
+-bin/
+-lib/
+-rc.d/
+-...

Each file present in bin/ (lib/) will be symlinked in /opt/bin (/opt/lib)
during installation and links will be removed during uninstallation process.


--- rc.d: what is this ? ---
It means Run Command Directory.
You can put here some scripts which will be executed during (un)installation
process.

Pre-installation. Each file that match with this string: rc.pre-i.[0-9].*
will be executed before bin/* and lib/* are linked.

Post-installation. Each file that match with this string: rc.post-i.[0-9].*
will be executed after bin/* and lib/* are linked.

Pre-uninstallation. Each file that match with this string: rc.pre-u.[0-9].*
will be executed before /opt/bin/ and /opt/lib/ links are removed.

Post-uninstallation. Each file that match with this string: rc.post-u.[0-9].*
will be executed after /opt/bin/ and /opt/lib/ links are removed.

Each script must have excecution flag set and will be executed in
alphabetical order.

Examples:
rc.d/rc.pre-i.0.myfirstscript
rc.d/rc.pre-i.3.mysecondscript
rc.d/rc.post-i.1.installed
rc.d/rc.pre-u.0.justamoment
rc.d/rc.post-u.9.done


--- The End ---
Now you know how make a BYLD package: try!
Remember that probably you will explode your package in RAM so it should not
exceed 4MB (before compression).
Obviously if you want put it in a floppy it must not exceed 1.44MB (after
compression!)


Good luck!
Erich Roncarolo
<erich@roncarolo.eu.org>


