deb-triggers.5 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .TH deb\-triggers 5 "2011-08-14" "Debian Project" "dpkg utilities"
  2. .SH NAME
  3. deb\-triggers \- package triggers
  4. .
  5. .SH SYNOPSIS
  6. triggers
  7. .
  8. .SH DESCRIPTION
  9. A package declares its relationship to some trigger(s) by including
  10. a \fItriggers\fP file in its control archive (i.e. \fIDEBIAN/triggers\fP
  11. during package creation).
  12. .PP
  13. This file contains directives, one per line. Leading and trailing whitespace
  14. and everything after the first \fB#\fP on any line will be trimmed, and
  15. empty lines will be ignored.
  16. .PP
  17. The trigger control directives currently supported are:
  18. .PP
  19. .in +5
  20. .B interest
  21. .I trigger-name
  22. .PP
  23. .in +5
  24. .B interest\-noawait
  25. .I trigger-name
  26. .PP
  27. .in +5
  28. Specifies that the package is interested in the named trigger. All
  29. triggers in which a package is interested must be listed using this
  30. directive in the triggers control file. The "noawait" variant does
  31. not put the triggering packages in triggers\-awaited state. This should
  32. be used when the functionality provided by the trigger is not crucial.
  33. .PP
  34. .in +5
  35. .B activate
  36. .I trigger-name
  37. .PP
  38. .in +5
  39. .B activate\-noawait
  40. .I trigger-name
  41. .PP
  42. .in +5
  43. Arranges that changes to this package's state will activate the
  44. specified trigger. The trigger will be activated at the start of
  45. the following operations: unpack, configure, remove (including for
  46. the benefit of a conflicting package), purge and deconfigure.
  47. The "noawait" variant does not put the triggering packages in
  48. triggers\-awaited state. This should be used when the functionality
  49. provided by the trigger is not crucial.
  50. .PP
  51. .in +5
  52. If this package disappears during the unpacking of another package
  53. the trigger will be activated when the disappearance is noted
  54. towards the end of the unpack. Trigger processing, and transition
  55. from triggers\-awaited to installed, does not cause activations.
  56. In the case of unpack, triggers mentioned in both the old and new
  57. versions of the package will be activated.
  58. .PP
  59. Unknown directives are an error which will prevent installation of the
  60. package.
  61. .PP
  62. The "\-noawait" variants are only supported by dpkg 1.16.1 or newer, and
  63. will lead to errors if used with an older dpkg. It is thus recommended
  64. to add a "Pre\-Depends: dpkg (>= 1.16.1)" to any package that wish to use
  65. those directives.
  66. .
  67. .SH SEE ALSO
  68. .BR dpkg\-trigger (1),
  69. .BR dpkg (1),
  70. .BR /usr/share/doc/dpkg\-dev/triggers.txt.gz .