Paul Irofti <p...@irofti.net> wrote:
> Hi,
> 
> Would you guys think it would be a good idea to have a script in 
> infrastructure/bin that sets the correct permissions for dpb to work 
> (_pbuild, _pfetch etc.)?
> 
> Something like this but with fancy variables to satisfy the people that 
> have LOCALBASE and stuff like that in random places.
> 
> %-------------------
> $ cat dpb-perms.sh
> #!/bin/sh
> 
> chown -R _pbuild:_pbuild /usr/ports/pobj/ /usr/ports/packages/ 
> /usr/ports/plist
> chmod -R u+w /usr/ports/pobj/ /usr/ports/packages/ /usr/ports/plist 
> 
> chown -R _pfetch:_pfetch /usr/ports/distfiles/
> chmod -R u+w /usr/ports/distfiles/
> chown -R _pbuild:_pbuild /usr/ports/distfiles/build-stats
> chmod -R u+w /usr/ports/distfiles/build-stats/
> chmod -R a+r  /usr/ports/distfiles/
> %-------------------
> 
> Paul

espie@ added a fix-permissions target in ports tree
http://man.openbsd.org/bsd.port.mk#fix-permissions

Reply via email to