[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Install time expansion of macros
- From: "Christian Goetze" <cg hq addamark com>
- To: <rpm-list redhat com>
- Subject: Install time expansion of macros
- Date: Wed, 20 Aug 2003 17:55:16 -0700 (PDT)
Here's a little problem that I was wondering about and is somewhat of an
expansion upon relocation.
In the spec file, I would like to be able to say something like:
VERSION = 1.1
%dir /usr/lib/foo/%{VERSION}
...
/etc/foo/%{VERSION}/foo.conf
and then, at install time, be able to override this, for example by saying:
"rpm -i foo.rpm VERSION=1.1patched".
The reason for this is to allow me to install the same version of an RPM
onto some system where a vital, but flawed (via out of band mods, for
example) and nominally identical version of the same package exists.
Generally, I think that this method for doing relocatable packages would
be nice to have. "pkgadd" supports this type of installtime expansion...
--
cg
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]