Is there any way to build the file structure of the target installation without manually making directories in rpm spec file?
Issue
- Do
rpmshave the ability to build the file structure of the target installation without manually making directories and copying files from the build directory in the%installscript. - In Solaris and HP-UX have this capability with the
psffiles (in those, the file list is what the package manager uses to build the directory structure of the installation). - Example from an HP psf file:
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSB_UNIX_WRAPPER.ksh /opt/$BASELINE_YEAR/bin/SWHPMSB_UNIX_WRAPPER.ksh
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBCopyData.pl /opt/$BASELINE_YEAR/bin/SWHPMSBCopyData.pl
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBcontext.pl /opt/$BASELINE_YEAR/bin/SWHPMSBcontext.pl
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBregister.pl /opt/$BASELINE_YEAR/bin/SWHPMSBregister.pl
file -o root -g sys -m 0500 -t s /opt/$BASELINE_YEAR/bin/MSBregister.pl /opt/$BASELINE_YEAR/bin/SWHPMSBregister.ksh
Environment
- Red Hat Enterprise Linux 5/6/7
- rpm
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
