Name

mk_freebsd_do — Begin FreeBSD package definition

Synopsis

mk_freebsd_do PACKAGE=name VERSION=ver SHORT=shortdesc LONG=longdesc

Options

PACKAGE=name

Sets the name of the package.

VERSION=ver

Sets the version of the package.

SHORT=shortdesc

Sets the short description. If shortdesc begins with a -, the rest of the string is treated as the description. Otherwise, shortdesc is treated as a file which will first be processed as by mk_output_file to yield the final short description.

LONG=longdesc

Sets the long description. If longdesc begins with a -, the rest of the string is treated as the description. Otherwise, longdesc is treated as a file which will first be processed as by mk_output_file to yield the final long description.

PACKING=file

Designates a template packing list file to use. The file needs to specify the @name directive at a minimum. If this option is not specified, one will be generated automatically. The file will be processed as by mk_output_file.

PREINST=preinst

Specifies a script to run before the package is installed. The file will be processed as by mk_output_file.

POSTINST=postinst

Specifies a script to run after the package is installed. The file will be processed as by mk_output_file.

PRERM=prerm

Specifies a script to run before the package is uninstalled. The file will be processed as by mk_output_file.

POSTRM=postrm

Specifies a script to run after the package is uninstalled. The file will be processed as by mk_output_file.

Description

Begins the definition of a FreeBSD package to be built.

After invoking this function, you can use functions such as mk_package_targets or mk_package_patterns to add files to the package. End the definition of the package with mk_freebsd_done.