Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintainer file names were missing #805

Merged
merged 2 commits into from
Jun 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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