Projet

Général

Profil

Apt Backports TTNN » Historique » Version 6

Mehdi Abaakouk, 14/12/2015 08:26

1 1 Mehdi Abaakouk
h1. Apt Backports TTNN
2 1 Mehdi Abaakouk
3 6 Mehdi Abaakouk
h2. Backport example de borgbackup:
4 1 Mehdi Abaakouk
5 2 Mehdi Abaakouk
<pre>
6 6 Mehdi Abaakouk
# dget http://http.debian.net/debian/pool/main/b/borgbackup/borgbackup_0.28.2-2.dsc
7 6 Mehdi Abaakouk
# dpkg-source -x borgbackup_0.28.2-2.dsc
8 6 Mehdi Abaakouk
# cd borgbackup_0.28.2
9 1 Mehdi Abaakouk
# dch -i 
10 6 Mehdi Abaakouk
Ajouter ttnn1 à la version (ubuntu1ttnn1 pour ubuntu), faire d'autre modification si besoin...
11 1 Mehdi Abaakouk
# debuild
12 6 Mehdi Abaakouk
</pre>
13 1 Mehdi Abaakouk
14 6 Mehdi Abaakouk
Génération du debdiff
15 6 Mehdi Abaakouk
<pre>
16 6 Mehdi Abaakouk
 debdiff borgbackup_0.28.2-2.dsc borgbackup_0.28.2-2ttnn2.dsc > borgbackup-backports-jessie.debdiff
17 6 Mehdi Abaakouk
</pre>
18 6 Mehdi Abaakouk
19 6 Mehdi Abaakouk
h2. Ajout de package au repo debian tetaneutral
20 6 Mehdi Abaakouk
21 6 Mehdi Abaakouk
Copier les fichiers *.tar.* *.dsc *.deb sur la machine puppet dans:
22 6 Mehdi Abaakouk
23 6 Mehdi Abaakouk
/root/aptly_packages_import/<packagename>-<distrib> (example: /root/aptly_packages_import/borg-jessie)
24 6 Mehdi Abaakouk
25 6 Mehdi Abaakouk
Ajout les sources et binaires à aptly:
26 6 Mehdi Abaakouk
27 6 Mehdi Abaakouk
<pre>
28 1 Mehdi Abaakouk
# aptly repo add ttnn-jessie *.dsc
29 1 Mehdi Abaakouk
Loading packages...
30 1 Mehdi Abaakouk
[+] attic_0.16-2_source added
31 1 Mehdi Abaakouk
# aptly repo add ttnn-jessie *.deb
32 1 Mehdi Abaakouk
Loading packages...
33 1 Mehdi Abaakouk
[+] attic_0.16-2_amd64 added
34 1 Mehdi Abaakouk
35 1 Mehdi Abaakouk
# aptly publish update ttnn-jessie
36 1 Mehdi Abaakouk
Loading packages...
37 1 Mehdi Abaakouk
Generating metadata files and linking package files...
38 1 Mehdi Abaakouk
Finalizing metadata files...
39 1 Mehdi Abaakouk
Cleaning up prefix "." components main...
40 1 Mehdi Abaakouk
41 1 Mehdi Abaakouk
Publish for local repo ./ttnn-jessie [amd64, source] publishes {main: [ttnn-jessie]} has been successfully updated.
42 2 Mehdi Abaakouk
</pre>
43 1 Mehdi Abaakouk
44 1 Mehdi Abaakouk
h2. Creation initial du depot
45 1 Mehdi Abaakouk
46 1 Mehdi Abaakouk
Sur la machine puppet:
47 1 Mehdi Abaakouk
48 3 Mehdi Abaakouk
<pre>
49 1 Mehdi Abaakouk
# cat .aptly.conf
50 1 Mehdi Abaakouk
{
51 1 Mehdi Abaakouk
  "rootDir": "/var/www/aptly",
52 1 Mehdi Abaakouk
  "downloadConcurrency": 4,
53 1 Mehdi Abaakouk
  "downloadSpeedLimit": 0,
54 1 Mehdi Abaakouk
  "architectures": [],
55 1 Mehdi Abaakouk
  "dependencyFollowSuggests": false,
56 1 Mehdi Abaakouk
  "dependencyFollowRecommends": false,
57 1 Mehdi Abaakouk
  "dependencyFollowAllVariants": false,
58 1 Mehdi Abaakouk
  "dependencyFollowSource": false,
59 1 Mehdi Abaakouk
  "gpgDisableSign": true,
60 1 Mehdi Abaakouk
  "gpgDisableVerify": false,
61 1 Mehdi Abaakouk
  "downloadSourcePackages": false,
62 1 Mehdi Abaakouk
  "ppaDistributorID": "ubuntu",
63 1 Mehdi Abaakouk
  "ppaCodename": "",
64 1 Mehdi Abaakouk
  "S3PublishEndpoints": {}
65 1 Mehdi Abaakouk
}
66 1 Mehdi Abaakouk
67 1 Mehdi Abaakouk
# aptly repo create ttnn-trusty
68 5 Mehdi Abaakouk
# aptly publish  -distribution ttnn-trusty -skip-signing=true repo ttnn-trusty
69 1 Mehdi Abaakouk
# aptly repo create ttnn-jessie
70 5 Mehdi Abaakouk
# aptly publish  -distribution ttnn-jessie -skip-signing=true repo ttnn-jessie
71 3 Mehdi Abaakouk
</pre>
72 5 Mehdi Abaakouk
73 1 Mehdi Abaakouk
74 1 Mehdi Abaakouk
/var/www/aptly est le documentroot de apache http://puppet.tetaneutral.net