skip installation by meeting a condition in pre section of Spec file in RPM packaging
devzero2000
pinto.elia at gmail.com
Thu Feb 17 12:50:29 UTC 2011
On Thu, Feb 17, 2011 at 1:26 PM, Fawad Ali <faw.studies at gmail.com> wrote:
>
> Hi All,
> I am new to rpm and to rpm packaging. I was asked to copy a
> war file from one location to another. through rpm. I packaged that.
> So what it does is like below.
> 1) Copy file to AUTODEPLOY folder in tomcat server
> 2) From the AUTODEPLOY folder the tomcat server picks up the war file
> and explodes it in WEBAPPS folder and removes the content from
> AUTODEPLOY.
>
> Now if I want to REINSTALL, it should first check that whether WEBAPPS
> contains the exploded war file or not. If yes, then it should display
> that package is already installed and skip the installation, if the
> web apps does not contain the exploded war file then it should force
> the installation process.
>
> Can anyone tell me how can I do that.
>
> Thanks for your help in advance.
> --
Dunno if useful but. In the rpm world exists a standard for deploy
java application (http://www.jpackage.org) and in particular
http://www.jpackage.org/cgi-bin/viewvc.cgi/src/jpackage-utils/doc/jpackage-1.5-policy.xhtml?revision=HEAD&root=jpackage.
Perhaps could be also useful to give a look here, more fedora
specific http://fedoraproject.org/wiki/Packaging/Java but useful IMHO
anyway.
Regards
More information about the Rpm-list
mailing list