RPM Community Forums

Mailing List Message of <rpm-users>

Does %files support -foo ?

From: Marc MERLIN <marc_rpm@merlins.org>
Date: Fri 05 Nov 2010 - 22:37:05 CET
Message-ID: <20101105213705.GC4191@merlins.org>
I couldn't find this in the docs.

If I have 
%files
/*

Can I do something like:
%files                                                                                                                      
/*
%dir 
-/etc/init.d

What I'm trying to do is to package all the file and directories, including 
/etc/init.d/foo
but I do not want the RPM to contain /etc/init.d since the target system has
/etc/init.d as a symlink and trying to create a directory on top of it would
be bad.

Is that possible without listing all the directories separately and not
using
%files
/* 
anymore?

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  
Received on Fri Nov 5 23:21:21 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.