Apt Backports TTNN » Historique » Version 6
Version 5 (Mehdi Abaakouk, 13/12/2015 18:56) → Version 6/8 (Mehdi Abaakouk, 14/12/2015 08:26)
h1. Apt Backports TTNN
h2. Backport example de borgbackup: attic:
<pre>
# dget http://http.debian.net/debian/pool/main/b/borgbackup/borgbackup_0.28.2-2.dsc http://http.debian.net/debian/pool/main/a/attic/attic_0.16-2.dsc
# dpkg-source -x borgbackup_0.28.2-2.dsc attic_0.16-2.dsc
# cd borgbackup_0.28.2 attic_0.16
# dch -i
Ajouter ttnn1 à la version (ubuntu1ttnn1 pour ubuntu), faire d'autre modification si besoin... version..
# debuild
</pre>
Génération du debdiff # cd -
<pre>
debdiff borgbackup_0.28.2-2.dsc borgbackup_0.28.2-2ttnn2.dsc > borgbackup-backports-jessie.debdiff
</pre>
h2. Ajout de package au repo debian tetaneutral
Copier les fichiers *.tar.* *.dsc *.deb sur la machine puppet dans:
/root/aptly_packages_import/<packagename>-<distrib> (example: /root/aptly_packages_import/borg-jessie)
Ajout les sources et binaires à aptly:
<pre>
# aptly repo add ttnn-jessie *.dsc
Loading packages...
[+] attic_0.16-2_source added
# aptly repo add ttnn-jessie *.deb
Loading packages...
[+] attic_0.16-2_amd64 added
# aptly publish update ttnn-jessie
Loading packages...
Generating metadata files and linking package files...
Finalizing metadata files...
Cleaning up prefix "." components main...
Publish for local repo ./ttnn-jessie [amd64, source] publishes {main: [ttnn-jessie]} has been successfully updated.
</pre>
h2. Creation initial du depot
Sur la machine puppet:
<pre>
# cat .aptly.conf
{
"rootDir": "/var/www/aptly",
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"architectures": [],
"dependencyFollowSuggests": false,
"dependencyFollowRecommends": false,
"dependencyFollowAllVariants": false,
"dependencyFollowSource": false,
"gpgDisableSign": true,
"gpgDisableVerify": false,
"downloadSourcePackages": false,
"ppaDistributorID": "ubuntu",
"ppaCodename": "",
"S3PublishEndpoints": {}
}
# aptly repo create ttnn-trusty
# aptly publish -distribution ttnn-trusty -skip-signing=true repo ttnn-trusty
# aptly repo create ttnn-jessie
# aptly publish -distribution ttnn-jessie -skip-signing=true repo ttnn-jessie
</pre>
/var/www/aptly est le documentroot de apache http://puppet.tetaneutral.net
h2. Backport example de borgbackup: attic:
<pre>
# dget http://http.debian.net/debian/pool/main/b/borgbackup/borgbackup_0.28.2-2.dsc http://http.debian.net/debian/pool/main/a/attic/attic_0.16-2.dsc
# dpkg-source -x borgbackup_0.28.2-2.dsc attic_0.16-2.dsc
# cd borgbackup_0.28.2 attic_0.16
# dch -i
Ajouter ttnn1 à la version (ubuntu1ttnn1 pour ubuntu), faire d'autre modification si besoin... version..
# debuild
</pre>
Génération du debdiff # cd -
<pre>
debdiff borgbackup_0.28.2-2.dsc borgbackup_0.28.2-2ttnn2.dsc > borgbackup-backports-jessie.debdiff
</pre>
h2. Ajout de package au repo debian tetaneutral
Copier les fichiers *.tar.* *.dsc *.deb sur la machine puppet dans:
/root/aptly_packages_import/<packagename>-<distrib> (example: /root/aptly_packages_import/borg-jessie)
Ajout les sources et binaires à aptly:
<pre>
# aptly repo add ttnn-jessie *.dsc
Loading packages...
[+] attic_0.16-2_source added
# aptly repo add ttnn-jessie *.deb
Loading packages...
[+] attic_0.16-2_amd64 added
# aptly publish update ttnn-jessie
Loading packages...
Generating metadata files and linking package files...
Finalizing metadata files...
Cleaning up prefix "." components main...
Publish for local repo ./ttnn-jessie [amd64, source] publishes {main: [ttnn-jessie]} has been successfully updated.
</pre>
h2. Creation initial du depot
Sur la machine puppet:
<pre>
# cat .aptly.conf
{
"rootDir": "/var/www/aptly",
"downloadConcurrency": 4,
"downloadSpeedLimit": 0,
"architectures": [],
"dependencyFollowSuggests": false,
"dependencyFollowRecommends": false,
"dependencyFollowAllVariants": false,
"dependencyFollowSource": false,
"gpgDisableSign": true,
"gpgDisableVerify": false,
"downloadSourcePackages": false,
"ppaDistributorID": "ubuntu",
"ppaCodename": "",
"S3PublishEndpoints": {}
}
# aptly repo create ttnn-trusty
# aptly publish -distribution ttnn-trusty -skip-signing=true repo ttnn-trusty
# aptly repo create ttnn-jessie
# aptly publish -distribution ttnn-jessie -skip-signing=true repo ttnn-jessie
</pre>
/var/www/aptly est le documentroot de apache http://puppet.tetaneutral.net