Make the directory containing your information files the current working directory.
Create a file named space with your favorite text editor.
Enter any additional disk space requirements needed by your package, using this format:
pathname blocks inodes |
pathname |
Specifies a directory name, which may or may not be the mount point for a file system. |
blocks |
Specifies the number of 512-byte blocks that you want reserved. |
inodes |
Specifies the number of required inodes. |
For more information, see space(4).
Save your changes and quit the editor.
Complete one of the following tasks.
If you want to create installation scripts, skip to the next task, How to Write a request Script.
If you have not created your prototype file, complete the procedure in How to Create a prototype File Using the pkgproto Command, and skip to Step 5.
If you have already created your prototype file, edit it and add an entry for the information file you just created.
Build your package.
See How to Build a Package, if needed.
After you build the package, install it to confirm that it installs correctly and verify its integrity. Chapter 4, Verifying and Transferring a Package explains how to do this and provides step-by-step instructions on how to transfer your verified package to a distribution medium.
This example space file specifies that 1000 512-byte blocks and 1 inode be set aside in /opt on the target system.
/opt 1000 1 |