[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Help regarding the "%file" preamble in the SPEC file for creation of a directory
- From: rajat dudeja tcs com
- To: rpm-list redhat com
- Subject: Help regarding the "%file" preamble in the SPEC file for creation of a directory
- Date: Mon, 23 Oct 2006 11:08:50 +0530
Hello All,
So far I have learnt that the %file
section can install all the listed files in the target system whence the
rpm is installed.
Is there any way that this section can
also create the directory in the target system when the rpm is installed
?
I have tried the following option:
%files
%defattr(-,root,root)
/usr/local/racoon2/etc/psk
So I want to create the above directory
'psk' and I am unable to do so as the error I am getting is :
RPM build errors:
/usr/local/racoon2/etc/psk
not found.
I got a similar problem while I was
trying to create a file in the target system while installing rpm and Jeff
guided me very well on that.
I used the similar for creating a file.
For e.g. :
%files
%defattr(-,root,root)
/usr/local/racoon2/sbin/iked
So, the way a file is created
different from the way the directory is created ?
I googled it a lot and so far unable
to find a specific page on this problem.
Please help me !!
Thanks and regards,
Rajat=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]