Re: Please help translate old rules file on the installation rules
On Mon, 14 Jul 2014 00:26:22 +0200, Ross Gammon wrote:
>> On Sun, 13 Jul 2014 22:29:37 +0600, Andrey Rahmatullin wrote:
>>
>>> dh_install(1) is a program, not a target.
>>>
>>>> install -m 755 ddclient \ $(DESTDIR)/usr/sbin/ddclient
>>>>
>>>> install -D -m 755 debian/ddclient.NetworkManager \
>>>> $(DESTDIR)/etc/NetworkManager/dispatcher.d/50-ddclient
>>> Writing proper *.install would be enough.
>>
>> Please point me to where I can do further reading on this (exact url
>> appreciated), because I've spent a lot of time find it myself but
>> haven't found how to do it yet. Or -- an example is better than a
>> thousand words.
>>
> https://www.debian.org/doc/manuals/maint-guide/dother.en.html#install
On reviewing it, I think it won't solve my problem, because as said
before, I saw in the log,
...
dh_installdirs
debian/rules override_dh_auto_install
make[1]: Entering directory '/export/build/pkg/ddclient/bld/
ddclient-3.8.2'
install -m 755 ddclient \
/usr/sbin/ddclient
install -D -m 755 debian/ddclient.NetworkManager \
/etc/NetworkManager/dispatcher.d/50-ddclient
dh_auto_install
make[1]: Leaving directory '/export/build/pkg/ddclient/bld/ddclient-3.8.2'
dh_installdocs
...
I.e., the problem is that DESTDIR is empty. so $(DESTDIR)/usr/sbin/
ddclient becomes /usr/sbin/ddclient. Having a install file won't fix this
problem I am afraid.
Comments?
Thanks
Reply to: