[ 
http://jira.codehaus.org/browse/MOJO-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180832#action_180832
 ] 

Are Gravbrøt commented on MOJO-1308:
------------------------------------

Sorry, by second thought this should indeed work just fine as long as 
<location> can be specified as a full path. 

For instance, if you want  /etc/init.d/apache pointing to /opt/someapp/httpd, 
you could do something like this:

<mapping>
<directory>/opt/someapp</directory>
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<filemode>555</filemode>
<sources>
<source>
<location>src/main/bin/httpd</location>
</source>
</sources>
</mapping>

<mapping>
<directory>/etc/init.d</directory>
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<filemode>555</filemode>
<sources>
<softlinkSource>
<location>/opt/someapp/httpd</location>
<destination>apache</destination>
</softlinkSource>
</sources>
</mapping>

> Support for softlinks
> ---------------------
>
>                 Key: MOJO-1308
>                 URL: http://jira.codehaus.org/browse/MOJO-1308
>             Project: Mojo
>          Issue Type: New Feature
>          Components: rpm
>            Reporter: Are Gravbrøt
>            Priority: Minor
>
> In many cases it is necessary to add softlinks in the rpm complete software 
> installation. 
> Today that can be accomplished by adding scripts containing ln -s statements.
> However, there is a significant drawback in doing it this way, since the 
> %files section of the SPEC file is not updated to reflect this.
> This leads to creating files that are not reported by rpm -ql.
> To remedy this, I suggest adding a feature to enable the addition of 
> softlinks in the configuration section.
> Ex. 
> <softlinkmapping><target>/sometarget</target><source>/somesource</source></softlinkmapping>
> The spec file can be updated in the following way:
> %install
> ln -s /somesource $RPM_BUILD/sometarget
> %files
> /sometarget

-- 
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