pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using PKG_DESTDIR_SUPPORT=user-destdir?

On Wed, Mar 04, 2009 at 01:19:13PM -0500, Steven M. Bellovin wrote:
> a) If the package seems to have used automake/autoconf -- that is, there
> are and lying around $WRKDIR after I do a 'make
> extract'; when I run 'make configure', I see that Makefile has been
> built -- I do nothing; it will all happen automagically.  (No special
> uids, gids, or chowns are needed for the packages I'm looking at.)

Yes, this is normally the easy case. Sometimes upstream has manual
install rules that don't use DESTDIR correctly, in which case some patches
is needed.

> b) If there are no such signs, write a 'do-install:' rule in the pkgsrc
> Makefile, rather than relying on the install rule in the package's own
> Makefile.  Alternatively, modify that to use DESTDIR.

In order of preference:
- patch Makefile for active upstream and submit patches
- try to override PREFIX or similiar variables at install time (via
- do-install rules

The last should only be done if you really only install a few files and
that is unlikely to change.


Home | Main Index | Thread Index | Old Index