Install a file in different locations depending on environment

Soumen Trivedi soumen.trivedi at gmail.com
Wed Mar 5 10:54:44 UTC 2014


One could always use rpmmacros and the prefix path to customise the path of
the install.


On Sun, Jan 5, 2014 at 9:50 AM, Eran Ben Natan <eranb at celltick.com> wrote:

>  Contrariwise, I think #2 is an elegant solution, thanks!
>
> I am wondering why the developers of RPM didn't apply the mechanism used
> by Solaris packaging that allows you to dynamically set file location based
> on target system environment.
>
>
>
> *From:* rpm-list-bounces at lists.rpm.org [mailto:
> rpm-list-bounces at lists.rpm.org] *On Behalf Of *Greg Swift
> *Sent:* Thursday, January 02, 2014 11:31 PM
> *To:* General discussion about the RPM package manager
> *Subject:* Re: Install a file in different locations depending on
> environment
>
>
>
> off top of my head i've got 2 methods....
>
> 1: Symlinking.  Put the war in a common space, like
> /usr/share/<app>/app.war and symlink based on the installed app (i don't
> think this is as pretty and requires potentially ugly logic)
>
> 2: Subpackaging.  Do a subpackage for each of the web servers that drops
> the package in their known directory pathing. (i guess you could argue
> there is some ugliness to this too)
>
>
>
> On Thu, Jan 2, 2014 at 1:14 AM, Eran Ben Natan <eranb at celltick.com> wrote:
>
> Hi,
>
>
>
> I want to create an RPM that installs some .war file in a web server
> deploy directory.
>
> My problem is that on the target server there can be a Jboss or Tomcat,
> and for each the directory where I should put the war file in different.
>
> Is there a way to do this, without coping the file in the %post?
>
>
>
> Thanks,
>
> *Eran Ben-Natan | R&D Infrastructure*
>
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
>


-- 
Thanks & Regards,
*Soumen Trivedi*
*Email: Soumen.Trivedi at gmail.com <Soumen.Trivedi at gmail.com>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20140305/5965ae18/attachment.html>


More information about the Rpm-list mailing list