deb-triggers.5 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .\" dpkg manual page - deb-triggers(5)
  2. .\"
  3. .\" Copyright © 2008, 2013-2015 Guillem Jover <guillem@debian.org>
  4. .\" Copyright © 2011, 2014 Raphaël Hertzog <hertzog@debian.org>
  5. .\"
  6. .\" This is free software; you can redistribute it and/or modify
  7. .\" it under the terms of the GNU General Public License as published by
  8. .\" the Free Software Foundation; either version 2 of the License, or
  9. .\" (at your option) any later version.
  10. .\"
  11. .\" This is distributed in the hope that it will be useful,
  12. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. .\" GNU General Public License for more details.
  15. .\"
  16. .\" You should have received a copy of the GNU General Public License
  17. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. .
  19. .TH deb\-triggers 5 "2014-10-15" "Debian Project" "dpkg utilities"
  20. .SH NAME
  21. deb\-triggers \- package triggers
  22. .
  23. .SH SYNOPSIS
  24. triggers
  25. .
  26. .SH DESCRIPTION
  27. A package declares its relationship to some trigger(s) by including
  28. a \fItriggers\fP file in its control archive (i.e. \fIDEBIAN/triggers\fP
  29. during package creation).
  30. .PP
  31. This file contains directives, one per line. Leading and trailing whitespace
  32. and everything after the first \fB#\fP on any line will be trimmed, and
  33. empty lines will be ignored.
  34. .PP
  35. The trigger control directives currently supported are:
  36. .IP "" 5
  37. .B interest
  38. .I trigger-name
  39. .br
  40. .B interest\-await
  41. .I trigger-name
  42. .br
  43. .B interest\-noawait
  44. .I trigger-name
  45. .IP
  46. Specifies that the package is interested in the named trigger. All
  47. triggers in which a package is interested must be listed using this
  48. directive in the triggers control file. The \(lqnoawait\(rq variant does
  49. not put the triggering packages in triggers\-awaited state. This should
  50. be used when the functionality provided by the trigger is not crucial.
  51. .IP
  52. .B activate
  53. .I trigger-name
  54. .br
  55. .B activate\-await
  56. .I trigger-name
  57. .br
  58. .B activate\-noawait
  59. .I trigger-name
  60. .br
  61. .IP
  62. Arranges that changes to this package's state will activate the
  63. specified trigger. The trigger will be activated at the start of
  64. the following operations: unpack, configure, remove (including for
  65. the benefit of a conflicting package), purge and deconfigure.
  66. The \(lqnoawait\(rq variant does not put the triggering packages in
  67. triggers\-awaited state. This should be used when the functionality
  68. provided by the trigger is not crucial.
  69. .IP
  70. If this package disappears during the unpacking of another package
  71. the trigger will be activated when the disappearance is noted
  72. towards the end of the unpack. Trigger processing, and transition
  73. from triggers\-awaited to installed, does not cause activations.
  74. In the case of unpack, triggers mentioned in both the old and new
  75. versions of the package will be activated.
  76. .PP
  77. Unknown directives are an error which will prevent installation of the
  78. package.
  79. .PP
  80. The \(lq\-noawait\(rq variants should always be favored when possible since
  81. triggering packages are not put in triggers\-awaited state and can thus
  82. be immediately configured without requiring the processing of the trigger.
  83. If the triggering packages are dependencies of other upgraded packages,
  84. it will avoid an early trigger processing run and make it possible
  85. to run the trigger only once as one of the last steps of the upgrade.
  86. .PP
  87. The \(lq\-noawait\(rq variants are only supported since dpkg 1.16.1, and
  88. will lead to errors if used with an older dpkg. It is thus recommended
  89. to add a \(lqPre\-Depends: dpkg (>= 1.16.1)\(rq to any package that wish to use
  90. those directives.
  91. .PP
  92. The \(lq\-await\(rq alias variants are only supported since dpkg 1.17.21, and
  93. will lead to errors if used with an older dpkg. It is thus recommended
  94. to add a \(lqPre\-Depends: dpkg (>= 1.17.21)\(rq to any package that wish to use
  95. those directives.
  96. .
  97. .SH SEE ALSO
  98. .BR dpkg\-trigger (1),
  99. .BR dpkg (1),
  100. .BR /usr/share/doc/dpkg\-dev/triggers.txt.gz .