Re: Please help translate old rules file on the installation rules
On Mon, Jul 14, 2014 at 04:17:51AM +0000, T o n g 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,
Usually this is not a problem.
> 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".
Did you do that?
--
WBR, wRAR
Reply to: