slitaz-doc-wiki-data view pages/fr/cookbook/buildhost.txt @ rev 4

Add pages/fr folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:13:35 2011 +0000 (2011-02-26)
parents
children 1be9b5012cfd
line source
1 ====== SliTaz Build Host (tank) ======
3 Informations et guides pour construire l'hôte SliTaz.
5 ===== Dossiers dans : /home/slitaz =====
7 * cooking/
8 * stable/
9 * repos/
10 * www/
12 ===== Utilisation de tazdev =====
14 Pour aider à maintenir le miroir, les saveurs et d'autres services, la commande tazdev est utilisée. Elle est principalement conçue pour la version cooking. Utilisation :
16 <code>
17 $ tazdev usage
18 </code>
20 ===== Création de paquets indigestes =====
22 Vous pouvez utiliser le wok indigeste dans un environnement chrooté pour créer des paquets non-supportés. Si vous maintenez les paquets officiels et que vous réussissez à les cuire, testez-les sur votre machine puis vous pourrez les soumettre sur le wok officiel. Les mainteneurs du miroir vont ensuite reconstruire et uploader les paquets sur mirror.slitaz.org.
24 To build packages in the undigest wok and in the chroot environment: commands are sometimes better than a long text:
26 <code>
27 $ ln -s /home/slitaz/cooking/chroot/home/undigest .
28 </code>
30 You can copy files with gFTP-sftp-scp directly into the wok or from the current directory:
32 <code>
33 $ cp -a package undigest/wok
34 $ su -c "tazdev chroot"
35 /# cd home/undigest
36 /# tazwok cook package
37 /# exit
38 $ ls undigest/packages
39 </code>
41 ===== Cooking official packages =====
43 Maintainers have root access and some have write access to the main mirror at mirror.slitaz.org, if you want to help in this task please contact one of the active developers (check hg repos).
45 Everything is cooked in a chroot environment, the default path for the build wok is $CHROOT/home/slitaz/wok. Some changes can be made directly in this wok: the real Hg is copied into the chroot by tazbb (Build Bot). To chroot in cooking:
47 <code>
48 # tazdev chroot
49 </code>
51 Cook all the last commited packages or cook everything with 'cook-all', note that comparison it not required if you know which packages to cook. If you want to force the cooking of some of the packages by tazbb, you can then clean with tazwok. By default tazbb cooks only the last commit:
53 <code>
54 /# tazbb cook-commit
55 </code>
57 If needed (tazbb does this automatically), you can remove all the old packages and then rebuild the lists manually:
59 <code>
60 /# tazbb clean-up
61 /# tazwok gen-list --text
62 /# exit
63 </code>
65 If you have write access to the mirror, you can make a dry-push to check and then upload; push will also remove any old packages on the mirror.
67 ===== Stable packages =====
69 Packages for the stable release are also built in a chroot environment like the Cooking packages:
71 <code>
72 # tazdev chroot stable
73 </code>
75 ===== Upload by hand on mirror.slitaz.org =====
77 Mirror maintainers can upload by hand with tazdev (-dp for a dry push):
79 <code>
80 # tazdev -p $USER
81 </code>
83 ===== Update website by hand ======
85 The Website and packages web interface are updated nightly by cron and can also be updated by hand (used on the day of release for example):
87 <code>
88 # tazdev update-www
89 </code>