Encap 2.0: The encapinfo File

Every Encap 2.0 package must contain a file called encapinfo in the package directory. The encapinfo file contains all of the configuration data for the package. The first line of the encapinfo file must be of this form:
	encap version
The version argument represents the version of the Encap package format in which the package is encoded. Future versions of the Encap package format will update this version number, so package managers will be able to easily determine how to install a given package. If the encapinfo file does not exist, the package is assumed to be an Encap 1.x package.

The remaining fields of the encapinfo file are specified below:

Field Description Type Used Multiple Times?
platform OS-ver Identifies the platform for which the package is intended. Recommended No
description text Sets a one-line description of the package. Optional No
date date Indicates the date that the package was created on. Recommended No
contact info Lists the name and email address of the package creator. Recommended No
exclude file Specifies a path relative to the package directory which should be excluded from processing. The path may contain shell globbing characters. Optional Yes
require file Specifies the files for which processing must succeed in order for package installation or removal to be considered successful. Optional Yes
linkdir file Specifies a directory which should be linked directly into the Target Area, rather than recursing into it and linking its contents. Optional Yes
linkname file newname Overrides the basename of the link which is created for a given file. Optional Yes
prereq regfile file Sets a prerequisite that the specified file exists. Optional Yes
prereq directory dir Sets a prerequisite that the specified directory exists. Optional Yes
prereq pkgspec [<>=*] pkgspec Sets a prerequisite that the specified package must be installed. The third field allows selecting what version of the package must be installed. Optional Yes


Mark D. Roth <roth@uiuc.edu>