FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 07-22-2011, 05:45 AM
Olivier Sallou
 
Default how to declare %config with a list of files ?

Hi,
I have in my package config (/etc) a large list of files.
Is there a way to define the %config from a list of file rather than
listing individually each of the file ?

Something like:

%config -f list_of_my_etc_files

Thanks

Olivier

--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438 (pgp.mit.edu)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438


--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 07-22-2011, 06:41 AM
Toshio Kuratomi
 
Default how to declare %config with a list of files ?

On Fri, Jul 22, 2011 at 07:45:57AM +0200, Olivier Sallou wrote:
> Hi,
> I have in my package config (/etc) a large list of files.
> Is there a way to define the %config from a list of file rather than
> listing individually each of the file ?
>
> Something like:
>
> %config -f list_of_my_etc_files
>
You can use wildcards:

%files
%config(noreplace) %{_sysconfdir}/foo/*.cfg


Or, if you already have the list of files in a file:

%install
command_that_outputs_config_files > list_of_my_etc_files
sed -i list_of_my_etc_files 's!^/etc!%config(noreplace) %{_sysconfdir}!'

%files -f list_of_my_etc_files

-Toshio
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 06:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org