blob: 019044d7965b34a0235854b378161cad59a378b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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>
|