pkgsrc-Users archive

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

Re: pkgsrc/mail/sendmail anomalies



Richard PALO <richard.palo%baou.fr@localhost> writes:

>> USE_DESTDIR is not meant to be set in package.
>
> Well, it don't install unless super-user without this.  How to do this then?

USE_DESTDIR is to be set in mk.conf, to specify if the human running the
machine wants to use DESTDIR mode.  Currently, it's standard to use
DESTDIR mode and beginning to be somewhat unusual not to.

For an individual package, a different variable is used.  From
doc/pkgsrc.txt:

  * PKG_DESTDIR_SUPPORT has to be set to "none", "destdir", or "user-destdir".
    By default PKG_DESTDIR_SUPPORT is set to "user-destdir" to help catching
    more potential packaging problems. If bsd.prefs.mk is included in the
    Makefile, PKG_DESTDIR_SUPPORT needs to be set before the inclusion.

So the package, if it really needs root to build/install, should set
PKG_DESTDIR_SUPPORT=destdir.

Attachment: pgpCnbUPP_Qv_.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index