I'm only spare-time RPM package builder, so I don't have huge experience. But I know another software packager (HP's SD (Software Distributor)).
I have a problem: One of my packages creates additional scripts during %Post and makes use of those. Those scripts are not temporary, but are intended to be used as commands.
During %preun those scripts are removed again.
Unfortunately rpm -qf knows nothing about these scripts, so I wonder whether I could dynamically modify the RPM database (durning installation, update, or removal) to make RPM know about these new files.
I know it's against the concept of signed packets (everything should be signed), but in HP's SD you could do such a thing through the command "swmodify" (modify a software package).
Is there an elegant solution for RPM? (Adding all possible script names as %ghost is not considered elegant by myself.)
Likewise if I'd precreate all the possible scripts, and then remove those not needed during %post, wouldn't RPM complain about missing files then?
Received on Tue Jun 11 10:00:38 2013