Changes between Version 5 and Version 6 of MaintainerScripts


Ignore:
Timestamp:
08/05/14 18:16:51 (10 years ago)
Author:
jdreed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MaintainerScripts

    v5 v6  
    2121All scripts should include the tag `#DEBHELPER#` as the penultimate line^(1)^ of the script, should explicitly exit with status 0 at the end of the script, and should handle all possible arguments (see below).   When creating new maintainer scripts, you should use the examples in `/usr/share/debhelper/dh_make/debian/`.  In there, you'll fine `postinst.ex`, `preinst.ex`, etc.   
    2222 
    23 ^(1)^ There may be times when you want `#DEBHELPER#` at the top of the script.  Basically, `#DEBHELPER#` will be replaced by all the other stuff added by debhelper scripts.  So if you supply a _packagename_.init script, `dh_installinit` will add some code to restart the daemon, and that code will show up where the `#DEBHELPER#` tag is.  This does require a bit of thought.  If you're using ConfigPackageDev and diverting a file, and then relying on the file already being diverted in the postinst, then the tag needs to go at the top. 
     23^(1)^ There may be times when you want `#DEBHELPER#` at the top of the script.  Basically, `#DEBHELPER#` will be replaced by all the other stuff added by debhelper scripts.  So if you supply a _packagename_.init script, `dh_installinit` will add some code to restart the daemon, and that code will show up where the `#DEBHELPER#` tag is.  This does require a bit of thought.  If you're using [http://debathena.mit.edu/config-package-dev ConfigPackageDev] and diverting a file, and then relying on the file already being diverted in the postinst, then the tag needs to go at the top. 
    2424 
    2525== Arguments ==