Using .deb style subdirectories with rpm?

Ignacio Valdes ivaldes at hal-pc.org
Tue Oct 6 03:28:33 UTC 2009


I now understand things much better. I had never taken advantage of
rpm and deb's methods of automatic file location so it is something of
a surprise to me after 9 months of building a custom rpm and deb and
manually relocating files using bash that it works the way it does. My
problem is that I am trying to put a configuration file in /etc/init.d
and it is saying that there is a conflict with the chkconfig package.
Is there a way other than --force to do this?

-- IV

On Sun, Oct 4, 2009 at 5:04 PM, devzero2000 <pinto.elia at gmail.com> wrote:
> On Sun, Oct 4, 2009 at 6:52 AM, Ignacio Valdes <ivaldes at hal-pc.org> wrote:
>>
>> Hi all again,
>>
>> I am going from a .deb to an rpm. The .deb has the files in
>> subdirectories such as /etc/init.d/foobar  I planned to just have /etc
>> in the file list and then do a copy command such as:
>>
>> cp -Rf $whereRwe/etc /etc
>>
>> Is that the usual way you can deal with a deb-style file heirarchy
>> with rpm? Is there a better way?
>>
> It is not clear, at me almost, your question. BTW, the "deb-style file
> hierarchy" 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
>
> rm -rf %{buildroot}
> mkdir -p %{buildroot}/etc/init.d
> .......
> cp -a %{SOURCE1}   %{buildroot}/etc/init.d/mypkg
> (where the (rpm) macro SOURCE1 was defined as
> Source1: mypkg.init for example in the SPEC)
> and in %files
>
> %files
> ........
>
> config(noreplace) /etc/init.d/myconfig
>
> 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
> <pkg>.deb. Similar to what does, for example, for rpm the rpmdevtools (in
> particular rpmdev-newspec), with some difference of course. But there are
> other build system for rpm , as for deb.
>
> hth
>>
>> -- IV
>> _______________________________________________
>> Rpm-list mailing list
>> Rpm-list at lists.rpm.org
>> http://lists.rpm.org/mailman/listinfo/rpm-list
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
>


More information about the Rpm-list mailing list