GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG-TRIGGERS(5) FreeBSD File Formats Manual PKG-TRIGGERS(5)

triggers
trigger file format

triggers are executed at the end of the transactions: installation, deinstallation or upgrade. They are only execute one even if they have been triggered multiple times.

are triggered by pattern matching during the transaction. triggers are files locate in /usr/local/share/pkg/triggers Those files are in UCL format and should use a .ucl extension.

The format is the following:

exact path to match: each time a package installs exactly a file or directory matching the path the trigger will be execute at the end of the transation .
glob path to match: each time a package installs a file or directory which matches the glob pattern pattern the trigger will be execute at the end of the transation .
regexp path to match: each time a package installs a file or directory which matches the regexp pattern pattern the trigger will be execute at the end of the transation .

Object which represent the script to execute in case the transaction results in removal of the trigger from the installation. The object requires the following fields:
The type of the script to be executed, currently only lua script is supported (See pkg-lua-script(5)).
The script itself.
Object which represent the script to execute at the end of the transaction if a pattern has been matched. This object requires the following fields:
The type of the script to be executed, currently only lua script is supported (See pkg-lua-script(5)).
The script itself. It will receive as arguments the list of path which matches the patterns during the transaction.

pkg_create(3), pkg_printf(3), pkg_repos(3), pkg-keywords(5), pkg-lua-script(5), pkg-repository(5), pkg-script(5), pkg.conf(5), pkg(8), pkg-add(8), pkg-alias(8), pkg-annotate(8), pkg-audit(8), pkg-autoremove(8), pkg-backup(8), pkg-check(8), pkg-clean(8), pkg-config(8), pkg-create(8), pkg-delete(8), pkg-fetch(8), pkg-info(8), pkg-install(8), pkg-lock(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-rquery(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-ssh(8), pkg-stats(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8)
September 9, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 5 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.