On Mon, 14 Jul 2014 04:06:16 +0000, T o n g wrote:

> 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.

Hmm... I maybe wrong. But I'd rather fix my rules file instead of using 
the install file, because there is no way to control the file mode, and 
moreover, "You should first check there is not a more specific tool to 
use. For example, documents should be in the docs file and not in this 
one".

Thanks



-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/lpvllf$c5h$7...@ger.gmane.org

Reply via email to