chmod -R g+w /usr/ports?

Marwan Burelle Marwan.Burelle at
Wed Apr 6 05:01:35 PDT 2005

On Wed, Apr 06, 2005 at 08:06:46PM +0900, Joel wrote:
> Does that mean that if the port honors WRKDIRPREFIX, I can even 
> make install without switching to root? No?

The short answer is no. There's two other problems for install,
permissions for installing in /usr/local or /usr/X11R6 and permission
to write to the /var/db/pkg dir in order to record the install in the

The former issue can be solve by setting PREFIX to something else. But
the latter is more problematic, what does it mean to record pkg to
some other place ? Would you relax permission on /var/db/pkg ?

Oh, I forgot some other point, distfiles ! Even with WRKDIRPREFIX you
can't do a make if the distfiles is not present, you also need to set
DISTDIR to a place where you have writing permissions.

I face the problem some times ago when I want to use the ports tree to
instal some apps without being root, I finaly change my mind, since it
began to be as painfull as building the apps myself than trying to use
the ports tree (think of all the dependancies, in particular libs
... )

Burelle Marwan,
Equipe Bases de Donnees - LRI
(burelle at | Marwan.Burelle at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list