How did you manage this? -----Original Message----- From: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Stefan Koebeli Sent: Sunday, January 05, 2014 2:21 PM To: rpm-list@xxxxxxxxxxxxx Subject: RE: Rpm-list Digest, Vol 212, Issue 9 Hi, i had exactly the same question and the same situation. Solaris'es CLASSES in the Prototype file, something like that in RPM would be a great feature! Should be an feature request! Stefan -----Ursprüngliche Nachricht----- Von: rpm-list-bounces@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] Im Auftrag von rpm-list-request@xxxxxxxxxxxxx Gesendet: Sonntag, 5. Januar 2014 13:00 An: rpm-list@xxxxxxxxxxxxx Betreff: Rpm-list Digest, Vol 212, Issue 9 Send Rpm-list mailing list submissions to rpm-list@xxxxxxxxxxxxx To subscribe or unsubscribe via the World Wide Web, visit http://lists.rpm.org/mailman/listinfo/rpm-list or, via email, send a message with subject or body 'help' to rpm-list-request@xxxxxxxxxxxxx You can reach the person managing the list at rpm-list-owner@xxxxxxxxxxxxx When replying, please edit your Subject line so it is more specific than "Re: Contents of Rpm-list digest..." Today's Topics: 1. RE: Install a file in different locations depending on environment (Eran Ben Natan) ---------------------------------------------------------------------- Message: 1 Date: Sun, 5 Jan 2014 09:50:06 +0000 From: Eran Ben Natan <eranb@xxxxxxxxxxxx> To: General discussion about the RPM package manager <rpm-list@xxxxxxxxxxxxx> Subject: RE: Install a file in different locations depending on environment Message-ID: <705C9B8622696B478640B16B7A1A1B940A5CF9@xxxxxxxxxxxxxxxxxx> Content-Type: text/plain; charset="us-ascii" 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@xxxxxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxxxxx] 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@xxxxxxxxxxxx<mailto:eranb@xxxxxxxxxxxx>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20140105/83b9191e/attac hment-0001.html> ------------------------------ _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list End of Rpm-list Digest, Vol 212, Issue 9 **************************************** _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list