I have the following problem:
I want to install files in a directory on the target machine, which has the following naming convention of installation path: /opt/company/product/config/<hostname>/myconfig.cfg
<hostname> must be the name of the machine where the package is installed.
During the build process of the package this name is unknown and therefore I can not use it in the %files list
%files /opt/company/product/config/<???????>/myconfig.cfg
Is it possible to use a variable as a placeholder in the %files list, which is resolved at insallation time ? Like:
%files /opt/company/product/config/$INSTALL_HOST/myconfig.cfg
I could not find a resolution for this problem.
A rename after installation is possible, but there will be problems with
later update installations. I can not use the features of rpm to manage this.
Thanks for your help
Peter
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list