Skip to content

Commit

Permalink
maintainer file names were missing (sbt#805)
Browse files Browse the repository at this point in the history
* maintainer file names were missing

I had to look it up in the source code..

* fix maintainer files docs
  • Loading branch information
zoosky authored and muuki88 committed Jun 25, 2016
1 parent 3b495fc commit 54973f4
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions src/sphinx/archetypes/java_server/customize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,31 +106,34 @@ RPM Scriptlets
--------------

RPM puts all scripts into one file. To override or append settings to your
scriptlets use these settings:
scriptlets use ``maintainerScripts in Rpm`` or these ``RpmConstants._``s:
``rpmPre``
``Pre``
%pre scriptlet

``rpmPost``
``Post``
%post scriptlet

``rpmPosttrans``
``Pretrans``
%pretrans scriptlet

``Posttrans``
%posttrans scriptlet

``rpmPreun``
``Preun``
"%preun scriptlet"

``rpmPostun``
``Postun``
%postun scriptlet

``rpmVerifyscript``
``Verifyscript``
%verifyscript scriptlet

If you want to have your files separated from the build definition use the
default location for rpm scriptlets. To override default templates in a RPM
build put the new scriptlets in the ``rpmScriptletsDirectory`` (by default ``src/rpm/scriptlets``).

``rpmScriptletsDirectory``
``RpmConstants.Scriptlets``
By default to ``src/rpm/scriptlets``. Place your templates here.

Available templates are
Expand All @@ -139,6 +142,16 @@ Available templates are
``pre-rpm``
``postun-rpm``
``preun-rpm``

The corresponding maintainer file names are:

``pretrans``
``post``
``pre``
``postun``
``preun``
``verifyscript``
``posttrans``

Override Postinst scriptlet
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 54973f4

Please sign in to comment.