Date: Tue, 13 Dec 2016 22:09:14 +0100 From: Matthias Andree <matthias.andree@gmx.de> To: null <freebsd-ports@freebsd.org> Subject: Re: No port should need root for make fetch Message-ID: <b91f759d-e153-5c1b-a80a-77bd6b6b9cb9@gmx.de> In-Reply-To: <201612132032.uBDKWaVK017178@fire.js.berklix.net> References: <201612132032.uBDKWaVK017178@fire.js.berklix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 13.12.2016 um 21:32 schrieb Julian H. Stacey: > Hi ports@ > IMO No port should need root for > cd /usr/ports; make -i fetch > The first one that broke for me was databases/mysql-q4m > (OK might be others before, but I have DUDS = > arabic biology chinese hebrew hungarian japanese korean > polish portuguese russian ukrainian vietnamese games demime > majordomo acroreadwrapper acroread9 chimera dosbox emil > firefox freerdp gimp-app gv libcue mp3splt-gtk nut opera > ripit vlc xorg xsane > ) > (MAINTAINER CC'd) but there's more ports beyond, usually because > some ports also go berserk & install, or mabe install dependents. Julian, How is that a problem of "some" ports? All ports require root for "make fetch" because the normal distfiles/ directory is underneath /usr/ports/ and thus only writable by root. Make the /usr/ports/distfiles/ directory writable to a certain group of users, make the DIRECTORY setgid (chmod g+s ...), add the users to that group, and you're set, alternatively, redirect that storage to a user-writable directory by setting the DISTDIR environment variable (this can happen on the make command-line, too). > # DISTDIR - Where to search for and store copies of original sources > # Default: ${PORTSDIR}/distfiles (source: /usr/ports/Mk/bsd.port.mk) HTH Matthias
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b91f759d-e153-5c1b-a80a-77bd6b6b9cb9>