diff options
author | Silvino <silvino@bk.ru> | 2021-03-03 03:07:44 +0000 |
---|---|---|
committer | punk <punk@libernaut> | 2021-04-21 15:11:33 +0100 |
commit | 452477a2635d85ecf772a5242ce97d9479503bb3 (patch) | |
tree | a2e34d995cef5ac8068ec7047e93b1125c80d175 /openbsd/sources.html | |
parent | 4de5ad72311e351792c251eaf807885a493149a4 (diff) | |
download | doc-452477a2635d85ecf772a5242ce97d9479503bb3.tar.gz |
OpenBSD documentation
dev/c system dev rev
Diffstat (limited to 'openbsd/sources.html')
-rw-r--r-- | openbsd/sources.html | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/openbsd/sources.html b/openbsd/sources.html new file mode 100644 index 0000000..019044d --- /dev/null +++ b/openbsd/sources.html @@ -0,0 +1,79 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>2.1. Sources</title> + </head> + <body> + + <a href="index.html">OpenBSD Index</a> + + <h1>2.1. Sources</h1> + + <p>Allows to fetch sources;</p> + + <pre> + # usermod -G wsrc exampleuser + </pre> + + <p>Allows to build from ports;</p> + + <pre> + # usermod -G wobj exampleuser + </pre> + + <p>Create directory xenocara and ports</p> + + <pre> + cd /usr + mkdir -p xenocara ports + chgrp wsrc xenocara ports + chmod 775 xenocara ports + </pre> + + <p>Group wobj should have rwx</p> + + <pre> + /usr/obj + </pre> + + <h2>Get sources</h2> + + <pre> + ftp https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/{ports.tar.gz,SHA256.sig} + +signify -Cp /etc/signify/openbsd-$(uname -r | cut -c 1,3)-base.pub -x SHA256.sig ports.tar.gz + </pre> + + <pre> + $ cd /usr/src + $ tar xzf ~/src.tar.gz + $ tar xzf ~/sys.tar.gz + $ cd /usr + $ tar xzf ~/ports.tar.gz + $ cd /usr/xenocara + $ tar xzf ~/xenocara.tar.gz + </pre> + + + <pre> + echo 'export CVSROOT="anoncvs@anoncvs.fr.openbsd.org:/cvs"' >> .kshrc + $ cd /usr/ports + $ cvs -d anoncvs@anoncvs.fr.openbsd.org:/cvs -q up -Pd -rOPENBSD_6_8 + </pre> + + <p>Repeat above to the other sources, to update the ports tree later:</p> + + <pre> + $ cd /usr/ports + $ cvs -q up -Pd -rOPENBSD_6_8 + </pre> + + <a href="index.html">OpenBSD Index</a> + <p>This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. + See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + </body> +</html> |