[
http://jira.codehaus.org/browse/MOJO-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=180711#action_180711
]
Brett Okken edited comment on MOJO-1308 at 6/17/09 2:50 PM:
------------------------------------------------------------
After some more thought, I do not think my suggestion will work.
Whereas you were suggesting a softlinkmapping, how about a softlinkSource which
could be used in any regular mapping?
By default, it would link to the same file name, but the <destination> tag
could be used to link to a different file name.
For example, you could do the following:
<mapping>
<directory>/etc/init.d</directory>
<directoryIncluded>false</directoryIncluded>
<username>root</username>
<groupname>root</groupname>
<filemode>555</filemode>
<sources>
<source>
<location>src/main/bin/httpd</location>
</source>
<softlinkSource>
<location>/etc/init.d/httpd</location>
<destination>apache</destination>
</softlinkSource>
</sources>
</mapping>
This will take you have in /src/main/bin/httpd and put that file in
/etc/init.d/httpd and link /etc/init.d/apache to /etc/init.d/httpd.
was (Author: kantiger):
After some more thought, I do not think my suggestion will work.
Whereas you were suggesting a softlinkmapping, how about a softlinkSource which
could be used in any regular mapping?
By default, it would link to the same file name, but the <destination> tag
could be used to link to a different file name.
> 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