Changes between Initial Version and Version 1 of MaintainerScripts


Ignore:
Timestamp:
01/19/11 10:59:13 (13 years ago)
Author:
jdreed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MaintainerScripts

    v1 v1  
     1 == About maintainer scripts == 
     2 
     3Maintainer scripts are, as the name implies, scripts created by the maintainer of a Debian package to aid in its installation, removable or upgrade.  Specifically, there are often times when merely installing some files is not sufficient, and action must be taken upon successful installation (rebuilding a cache, etc).  Most common operations (e.g., ldconfig) are automatic, but for cases when you need to specify custom actions, you would use maintainer scripts. 
     4 
     5Maintainer scripts must be [http://en.wikipedia.org/wiki/Idempotence#Computer_science_meaning idempotent], in that running them multiple times must not produce different results. 
     6 
     7Maintainer scripts must exit with status 0 upon successful completion, or any non-zero status otherwise.  For this reason, most maintainer scripts use `set -e` at the beginning of the script, which causes Bash to error out if any command returns non-zero status.  You can combine this with an or (`||`) clause to catch non-fatal errors.  e.g. 
     8 
     9`command-which-might-fail || true` 
     10 
     11 == Names == 
     12 
     13Each package can have up to 4 maintainer scripts: 
     14 * `preisnt`: