What do I need to do to write to /etc in an rpm?

Tim Lauridsen tla at rasmil.dk
Tue Nov 8 09:19:37 UTC 2005


Paul wrote:

>Hi,
>
>I have a kernel module which needs to be able to write files
>to /etc/somewhere. What do I need to put into my .spec file to this?
>
>TTFN
>
>Paul
>
>P.S. Still not heard from my application for cvs access to get z88dk in
>- how long do these things take?
>  
>
somthing like this should do the job.

%install
mkdir -p $RPM_BUILD_ROOT/etc
install -m644 foo.conf $RPM_BUILD_ROOT/etc/.

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

Regards,
Tim




More information about the fedora-extras-list mailing list