[ 
http://jira.codehaus.org/browse/MRPM-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189416#action_189416
 ] 

Andrea Barbieri commented on MRPM-40:
-------------------------------------

the current (and default) behaviour of the scriptlets is to assume a -p /bin/sh 
option.

allowing to specify the program option accordingly you would indeed be able to 
say:
%post -p /usr/bin/perl
print "I'm in postinstall!\n";


where the perl payload can be specified either inside the <postinstall> element 
or in the file referenced by <postinstallScript> element.


this is the same trick allowed in %pre, %preun, %postun, 
%trigger{in,un,postun}, %pretrans and %posttrans.

> support the the special flag '-p' for the scriptlet sections
> ------------------------------------------------------------
>
>                 Key: MRPM-40
>                 URL: http://jira.codehaus.org/browse/MRPM-40
>             Project: Mojo RPM Plugin
>          Issue Type: New Feature
>          Components: rpm
>    Affects Versions: 2.0-beta-3
>            Reporter: Andrea Barbieri
>            Assignee: Brett Okken
>
> It would be quite useful if all of the rpm maven plugin scriptlet sections 
> could gain the -p special flag support which allows the scriptlet to invoke a 
> single program directly rather than having to spawn a shell to invoke the 
> programs (ie: %post -p /bin/perl).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to