<div class="gmail_quote">On Sun, Oct 4, 2009 at 6:52 AM, Ignacio Valdes <span dir="ltr">&lt;<a href="mailto:ivaldes@hal-pc.org" target="_blank">ivaldes@hal-pc.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi all again,<br>
<br>
I am going from a .deb to an rpm. The .deb has the files in<br>
subdirectories such as /etc/init.d/foobar  I planned to just have /etc<br>
in the file list and then do a copy command such as:<br>
<br>
cp -Rf $whereRwe/etc /etc<br>
<br></blockquote><div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is that the usual way you can deal with a deb-style file heirarchy<br>
with rpm? Is there a better way?<br>
<br></blockquote><div>It is not clear, at me almost, your question. BTW, the &quot;deb-style file hierarchy&quot; is almost equivalent to the files/directory you create in the rpm %install section, in the rpm buildroot. Now in %install section you can do something like this<br>
<br>rm -rf %{buildroot}<br>mkdir -p %{buildroot}/etc/init.d<br>.......<br>cp -a %{SOURCE1}   %{buildroot}/etc/init.d/mypkg<br>(where the (rpm) macro SOURCE1 was defined as<br>Source1: mypkg.init for example in the SPEC)<br>
and in %files<br><br>%files<br>........<br><br>config(noreplace) /etc/init.d/myconfig<br><br>So your question, IMHO, is not what deb does (deb is a packaging format e.g an ar archive with some metainfo for the dpkg , gdebi ecc. tools ) but what a dh_make does in building a skeleton for your package for make it a &lt;pkg&gt;.deb. Similar to what does, for example, for rpm the rpmdevtools (in particular <b>rpmdev-newspec), </b>with some difference of course<b>. </b>But there are other build system for rpm , as for deb. <br>
<br>hth<br>  </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-- IV<br>
_______________________________________________<br>
Rpm-list mailing list<br>
<a href="mailto:Rpm-list@lists.rpm.org" target="_blank">Rpm-list@lists.rpm.org</a><br>
<a href="http://lists.rpm.org/mailman/listinfo/rpm-list" target="_blank">http://lists.rpm.org/mailman/listinfo/rpm-list</a><br>
</blockquote></div><br>