[[!template id=project
title="Unprivileged pkgsrc builds"
contact="""
[tech-pkg](mailto:tech-pkg@NetBSD.org)
"""
category="pkgsrc"
difficulty="medium"
description="""
To create packages that are usable by anyone, pkgsrc currently requires that
packages be built with superuser privileges. It is already possible to use
pkgsrc in great parts without such privileges, but there haven't been many
thoughts about how the resulting binary packages should be specified. For
example, many packages don't care at all about the owner/group of their files,
as long as they are not publicly overwritable. In the end, the binary packages
should be as independent from the build environment as possible.
For more information about the current state, see the How to use pkgsrc as
non-root section in the pkgsrc guide,
[Jörg's mail on DESTDIR support](http://mail-index.NetBSD.org/tech-pkg/2006/10/09/0000.html)
as well as pkgsrc/mk/unprivileged.mk.
"""
]]