[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

How to handle file transformations after install.



Hello All,

In rpm how does one handle file transformation which occurs in the
%post, therefore
rendering the file to be something different, than what we started with
?

For example:
When I build the rpm the file is
%files
product/lib/foo.pack

%post
transform.exe  foo.pack foo.jar
rm -rf  transform.exe foo.pack

1. foo.pack and transform.exe  dont exist, hence  rpm -V will complain,
verification should be suppressed.
2. Optional  foo.jar should be verified.
3. While rpm -e will complain  about 1.

There are couple workarounds thus far.
1. start with foo.jar and in %post rename foo.jar to foo.pack and
transfrom foo.pack foo.jar
2. use %config(missingok) product/lib/foo.pack

It looks like rpm needs something like installf(1M) and removef(1M) as
implemented in the SVID Packaging.


Thanks





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []