I am trying to write a script that will build some ports and copy the bin in the user directory.
I need this because sterm, dwm and other software use
The goal is to use the port to build sterm (as an exemple) with the local
But if the user is not root, I havethis issue :
Is there a way to allow "standard" user to write in the
As each user will have custom build, the
If you have other option, I am aware, but I want to script it, so modifications in
I need this because sterm, dwm and other software use
config.h
files for configuration.The goal is to use the port to build sterm (as an exemple) with the local
~/.config/st/config.h
and copy the bin in ~/.bin/bin/st
But if the user is not root, I havethis issue :
Code:
You can build st with your own config.h using the ST_CONF knob:
make ST_CONF=/path/to/st/config.h install clean
===> License MIT accepted by the user
===> sterm-0.8.2 depends on file: /usr/local/sbin/pkg - found
=> st-0.8.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> /usr/ports/distfiles/ is not writable by you; cannot fetch.
*** Error code 1
Is there a way to allow "standard" user to write in the
distfiles
folder or (for me a best answer) to user /tmp instead of /usr/ports/distfiles/
?As each user will have custom build, the
make install
command will never append, so I do not have the need of a full root access.If you have other option, I am aware, but I want to script it, so modifications in
Makefile
seems too hard.