rev |
line source |
pankso@342
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
pankso@342
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
pankso@342
|
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
pankso@342
|
4 <head>
|
pankso@342
|
5 <title>SliTaz Cookbook (en) - Build Host</title>
|
pankso@342
|
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
|
pankso@342
|
7 <meta name="description" content="slitaz English cookbook" />
|
pankso@342
|
8 <meta name="expires" content="never" />
|
pankso@342
|
9 <meta name="modified" content="2009-03-27 21:30:00" />
|
pankso@342
|
10 <meta name="publisher" content="www.slitaz.org" />
|
pankso@342
|
11 <meta name="author" content="SliTaz contributors"/>
|
pankso@342
|
12 <link rel="shortcut icon" href="favicon.ico" />
|
pankso@342
|
13 <link rel="stylesheet" type="text/css" href="book.css" />
|
pankso@342
|
14 </head>
|
pankso@342
|
15 <body bgcolor="#ffffff">
|
pankso@342
|
16
|
pankso@342
|
17 <!-- Header and quick navigation -->
|
pankso@342
|
18 <div id="header">
|
pankso@342
|
19 <div align="right" id="quicknav">
|
pankso@342
|
20 <a name="top"></a>
|
pankso@342
|
21 <a href="boot-scripts.html">Boot Scripts</a> |
|
pankso@342
|
22 <a href="index.html">Table of contents</a>
|
pankso@342
|
23 </div>
|
pankso@342
|
24 <h1><font color="#3E1220">SliTaz Cookbook (en)</font></h1>
|
pankso@342
|
25 </div>
|
pankso@342
|
26
|
pankso@342
|
27 <!-- Content. -->
|
pankso@342
|
28 <div id="content">
|
pankso@342
|
29 <div class="content-right"></div>
|
pankso@342
|
30
|
pankso@342
|
31 <h2><font color="#DF8F06">SliTaz Build Host (tank)</font></h2>
|
pankso@342
|
32
|
pankso@342
|
33 <p>
|
pankso@342
|
34 SliTaz build host info and howto.
|
pankso@342
|
35 </p>
|
pankso@342
|
36
|
pankso@342
|
37 <ul>
|
pankso@342
|
38 <li><a href="#folders">Folders in: /home/slitaz</a></li>
|
pankso@342
|
39 <li><a href="#scripts">Using scripts: /home/slitaz/scripts</a></li>
|
pankso@342
|
40 <li><a href="#undigest-pkgs">Cooking undigest packages</a></li>
|
pankso@342
|
41 <li><a href="#cooking-pkgs">Cooking official packages</a></li>
|
pankso@342
|
42 <li><a href="#stable-pkgs">Stable packages</a></li>
|
pankso@342
|
43 <li><a href="#mirror-up">Upload by hand on mirror.slitaz.org</a></li>
|
pankso@342
|
44 <li><a href="#website-up">Update website by hand</a></li>
|
pankso@342
|
45 </ul>
|
pankso@342
|
46
|
pankso@342
|
47 <a name="folders"></a>
|
pankso@342
|
48 <h3>Folders in: /home/slitaz</h3>
|
pankso@342
|
49 <ul>
|
pankso@342
|
50 <li>cooking/ - Cooking chroot and flavors.</li>
|
pankso@342
|
51 <li>stable/ - Stable tree.</li>
|
paul@345
|
52 <li>scripts/ - Small scripts to help maintain the host, project.</li>
|
pankso@342
|
53 <li>repos/ - All the project repos (where the commits are pushed).</li>
|
pankso@342
|
54 <li>www/ - Virtual hosts (website, hg, boot, people, etc).</li>
|
pankso@342
|
55 </ul>
|
pankso@342
|
56
|
pankso@342
|
57 <a name="scripts"></a>
|
pankso@342
|
58 <h3>Using scripts: /home/slitaz/scripts</h3>
|
pankso@342
|
59 <p>
|
paul@345
|
60 To help maintain the mirror, flavors and other services, some scripts
|
paul@345
|
61 are used. They are mostly all configured for the cooking version. To
|
pankso@342
|
62 add them to your default path:
|
pankso@342
|
63 </p>
|
paul@345
|
64 <pre> $ echo 'export PATH=/home/slitaz/scripts:$PATH' >> ~/.profile
|
pankso@342
|
65 </pre>
|
pankso@342
|
66 <p>
|
paul@345
|
67 Each script should have a tiny help file and description, if not, just open:
|
pankso@342
|
68 </p>
|
paul@481
|
69 <pre> $ cd /home/slitaz/scripts && ls
|
pankso@342
|
70 $ ./script.sh help
|
pankso@342
|
71 </pre>
|
pankso@342
|
72
|
pankso@342
|
73 <a name="undigest-pkgs"></a>
|
pankso@342
|
74 <h3>Cooking undigest packages</h3>
|
pankso@342
|
75 <p>
|
paul@345
|
76 You can use the undigest wok in the chroot environment to cook some
|
pankso@342
|
77 non supported packages. If you maintain official packages and they cook
|
paul@345
|
78 successfully on tank, then you can test on your local machine and commit
|
pankso@342
|
79 in the official wok. Mirror maintainers will then rebuild and upload the
|
pankso@342
|
80 packages on mirror.slitaz.org.
|
pankso@342
|
81 </p>
|
pankso@342
|
82 <p>
|
paul@345
|
83 To build packages in the undigest wok and in the chroot environment:
|
paul@345
|
84 commands are sometimes better than a long text:
|
pankso@342
|
85 </p>
|
paul@345
|
86 <pre> $ ln -s /home/slitaz/cooking/chroot/home/undigest .
|
pankso@342
|
87 </pre>
|
pankso@342
|
88 <p>
|
paul@345
|
89 You can copy files with gFTP-sftp-scp directly into the wok or from the
|
pankso@342
|
90 current directory:
|
pankso@342
|
91 </p>
|
paul@345
|
92 <pre> $ cp -a package undigest/wok
|
pankso@342
|
93 $ su -c chroot.sh
|
pankso@342
|
94 /# cd home/undigest
|
pankso@342
|
95 /# tazwok cook package
|
pankso@342
|
96 /# exit
|
pankso@342
|
97 $ ls undigest/packages
|
pankso@342
|
98 </pre>
|
pankso@342
|
99
|
pankso@342
|
100 <a name="cooking-pkgs"></a>
|
pankso@342
|
101 <h3>Cooking official packages</h3>
|
pankso@342
|
102 <p>
|
paul@345
|
103 Maintainers have root access and some have write access to the
|
pankso@342
|
104 main mirror at mirror.slitaz.org, if you want to help in this task please
|
paul@345
|
105 contact one of the active developers (check hg repos).
|
pankso@342
|
106 </p>
|
pankso@342
|
107 <p>
|
paul@345
|
108 Everything is cooked in a chroot environment, the default path for the main
|
paul@345
|
109 wok is /home/slitaz. Some changes can be made directly in this wok: the
|
pankso@342
|
110 real Hg is out of the chroot and copied in the chroot with wok.sh:
|
pankso@342
|
111 </p>
|
paul@345
|
112 <pre> # wok.sh hgup
|
pankso@342
|
113 # chroot.sh
|
pankso@342
|
114 </pre>
|
pankso@342
|
115 <p>
|
pankso@342
|
116 Cook all missing packages, one by one or with 'tazwok cmp --cook', note
|
paul@481
|
117 that comparison (cmp) it not required if you know which packages to
|
pankso@342
|
118 cook:
|
pankso@342
|
119 </p>
|
paul@345
|
120 <pre> /# tazwok cmp
|
pankso@342
|
121 /# tazwok cook package-name
|
pankso@342
|
122 </pre>
|
pankso@342
|
123 <p>
|
paul@345
|
124 Remove all the old packages and then rebuild the lists:
|
pankso@342
|
125 </p>
|
paul@345
|
126 <pre> /# tazwok cmp --remove
|
pankso@342
|
127 /# tazwok gen-list --text
|
pankso@342
|
128 /# exit
|
pankso@342
|
129 </pre>
|
pankso@342
|
130 <p>
|
pankso@342
|
131 If you have write access to the mirror you can make a dry-push to check
|
paul@345
|
132 and then upload; push will also remove any old packages on the mirror.
|
pankso@342
|
133 </p>
|
pankso@342
|
134
|
pankso@342
|
135 <a name="stable-pkgs"></a>
|
pankso@342
|
136 <h3>Stable packages</h3>
|
pankso@342
|
137 <p>
|
paul@345
|
138 Packages for the stable release are also built in a chroot environment like
|
paul@345
|
139 the Cooking packages:
|
pankso@342
|
140 </p>
|
paul@345
|
141 <pre> # chroot.sh stable
|
pankso@342
|
142 </pre>
|
pankso@342
|
143
|
pankso@342
|
144 <a name="mirror-up"></a>
|
pankso@342
|
145 <h3>Upload by hand on mirror.slitaz.org</h3>
|
pankso@342
|
146 <p>
|
pankso@342
|
147 Mirror maintainers can upload by hand with the script mirror.sh:
|
pankso@342
|
148 </p>
|
paul@345
|
149 <pre> # mirror.sh help
|
pankso@342
|
150 </pre>
|
pankso@342
|
151
|
pankso@342
|
152 <a name="website-up"></a>
|
pankso@342
|
153 <h3>Update website by hand</h3>
|
pankso@342
|
154 <p>
|
paul@345
|
155 The Website and packages web interface are updated nightly by cron and can
|
paul@345
|
156 also be updated by hand (used on the day of release for example):
|
pankso@342
|
157 </p>
|
paul@345
|
158 <pre> # website.sh up
|
pankso@342
|
159 # website.sh help
|
pankso@342
|
160 </pre>
|
pankso@342
|
161
|
pankso@342
|
162 <!-- End of content -->
|
pankso@342
|
163 </div>
|
pankso@342
|
164
|
pankso@342
|
165 <!-- Footer. -->
|
pankso@342
|
166 <div id="footer">
|
pankso@342
|
167 <div class="footer-right"></div>
|
pankso@342
|
168 <a href="#top">Top of the page</a> |
|
pankso@342
|
169 <a href="index.html">Table of contents</a>
|
pankso@342
|
170 </div>
|
pankso@342
|
171
|
pankso@342
|
172 <div id="copy">
|
pankso@342
|
173 Copyright © 2009 <a href="http://www.slitaz.org/en/">SliTaz</a> -
|
pankso@342
|
174 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
|
pankso@342
|
175 Documentation is under
|
pankso@342
|
176 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
|
pankso@342
|
177 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
|
pankso@342
|
178 </div>
|
pankso@342
|
179
|
pankso@342
|
180 </body>
|
pankso@342
|
181 </html>
|