Skip to content

Autobuild3 Scriptlets

Mingcong Bai edited this page Jan 1, 2017 · 2 revisions

Scriptlets

As a packaging tool, it is essential for Autobuild3 to be able to handle package manager scriptlets. Scriptlets are scripts used by package managers to perform post-installation, pre-installation, post-removal, and pre-removal (configuration) actions - sometimes essential for a software package to work.

Defining scriptlets using Autobuild3 is as simple as:

  • autobuild/postinst - Post-installation script.
  • autobuild/preinst - Pre-installation script.
  • autobuild/postrm - Post-removal script.
  • autobuild/prerm - Pre-removal script.

These files contains contents of the scripts, and will be sourced as Unix Shell scripts by package managers. You don't have to include She-Bang in the files.

Architectural specific scripts can be stored in architecture sub-directories.