From ca70cd72c314f0945f8e52408bfd71dd9eac9225 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 6 Nov 2015 11:28:46 -0200 Subject: Index --- basics.mdwn | 13 ++++++ building.mdwn | 40 ++++++++++++++++++ env.mdwn | 60 ++++++++++++++++++++++++++ index.mdwn | 120 ++++++---------------------------------------------- repositories.md | 21 --------- repositories.mdwn | 21 +++++++++ ruby.mdwn | 2 +- templates/page.tmpl | 2 +- 8 files changed, 150 insertions(+), 129 deletions(-) create mode 100644 building.mdwn create mode 100644 env.mdwn delete mode 100644 repositories.md create mode 100644 repositories.mdwn diff --git a/basics.mdwn b/basics.mdwn index 53b19c7..0778793 100644 --- a/basics.mdwn +++ b/basics.mdwn @@ -1,6 +1,19 @@ Basic packaging =============== +Configuration files +------------------- + +All the commands in this guide assumes that you're using [these configuration files](https://git.fluxo.info/?p=rhatto/dotfiles/debian.git;a=summary). + +Starting a new package +---------------------- + +We use the `packages/` folder from this repo to store sources: + + mkdir package/$package + cd package/$package + Getting the debianized source ----------------------------- diff --git a/building.mdwn b/building.mdwn new file mode 100644 index 0000000..9f6d8db --- /dev/null +++ b/building.mdwn @@ -0,0 +1,40 @@ +Building +======== + +Standard build +-------------- + + DIST=wheezy sudo -E cowbuilder --build $package*.dsc + +Signing +------- + +To sign both the `.dsc` and the `.changes` files: + + debsign $package*.changes + +Uploading +--------- + +Simply run + + dupload *changes + +This assumes a `~/.dupload.conf` like the following: + + package config; + $default_host = "myremote"; + + $cfg{'myremote'} = { + fqdn => "myremote.example.org", + login => "user", + method => "scpb", + incoming => "/var/reprepro/incoming/", + # The dinstall on ftp-master sends emails itself + #dinstall_runs => 1, + }; + +It's also important that: + + 1. The host remote port is correctly defined at your `~/.ssh/config`. + 2. The user is in the `reprepro` group in the server. diff --git a/env.mdwn b/env.mdwn new file mode 100644 index 0000000..b477af6 --- /dev/null +++ b/env.mdwn @@ -0,0 +1,60 @@ +Environment +=========== + +Build environment creation +-------------------------- + +The following steps needs to be run just once for each arch and distro version. + +### Setup cowbuilder chroots + +This is the recommended method: + + sudo mkdir -p /var/cache/pbuilder/sid-amd64 + sudo -E cowbuilder --create + + sudo mkdir -p /var/cache/pbuilder/wheezy-amd64 + sudo -E DIST=wheezy cowbuilder --create + +### Setup pbuilder chroots + +If you want to setup directly using `pbuilder`: + + git-pbuilder create + DIST=wheezy git-pbuilder + +### Compatibility with git-buildpackage + +This is a workaround while we don't find a cleaner way to fix +[this issue](http://ramblingfoo.blogspot.com.br/2012/10/howto-sudo-cowbuilder-git-buildpackage.html) +with `git-buildpackage` not getting `~/.pbuilderrc` from the local user: + + ( cd /var/cache/pbuilder/ && sudo ln -s sid-amd64/base.cow ) + +External repo integration +------------------------- + +If your package storage lives elsewhere, make a symlink like this: + + ( + cd /var/cache/pbuilder/wheezy-amd64 && \ + sudo rm -rf result && \ + sudo ln -s /var/data/apps/distros/debian/packages/build-area/wheezy-amd64 result + ) + +Environment maintenance +----------------------- + +These steps should be run once in a while to ensure we have an up to date packaging environment. + +### Pbuilder + + DIST=sid git-pbuilder update + DIST=wheezy git-pbuilder update --override-config + +### Cowbuilder + + DIST=sid sudo -E cowbuilder --update + DIST=wheezy sudo -E cowbuilder --update --override-config + + diff --git a/index.mdwn b/index.mdwn index 86f10fa..e63930f 100644 --- a/index.mdwn +++ b/index.mdwn @@ -11,109 +11,17 @@ Grab this repository using git clone --recursive git://git.fluxo.info/debian.git -Configuration files -------------------- - -All the commands in this guide assumes that you're using [these configuration files](https://git.fluxo.info/?p=rhatto/dotfiles/debian.git;a=summary). - -Starting a new package ----------------------- - -We use the `packages/` folder from this repo to store sources: - - mkdir package/$package - cd package/$package - -Build environment creation --------------------------- - -The following steps needs to be run just once for each arch and distro version. - -### Setup cowbuilder chroots - -This is the recommended method: - - sudo mkdir -p /var/cache/pbuilder/sid-amd64 - sudo -E cowbuilder --create - - sudo mkdir -p /var/cache/pbuilder/wheezy-amd64 - sudo -E DIST=wheezy cowbuilder --create - -### Setup pbuilder chroots - -If you want to setup directly using `pbuilder`: - - git-pbuilder create - DIST=wheezy git-pbuilder - -### Compatibility with git-buildpackage - -This is a workaround while we don't find a cleaner way to fix -[this issue](http://ramblingfoo.blogspot.com.br/2012/10/howto-sudo-cowbuilder-git-buildpackage.html) -with `git-buildpackage` not getting `~/.pbuilderrc` from the local user: - - ( cd /var/cache/pbuilder/ && sudo ln -s sid-amd64/base.cow ) - -External repo integration -------------------------- - -If your package storage lives elsewhere, make a symlink like this: - - ( - cd /var/cache/pbuilder/wheezy-amd64 && \ - sudo rm -rf result && \ - sudo ln -s /var/data/apps/distros/debian/packages/build-area/wheezy-amd64 result - ) - -Environment maintenance ------------------------ - -These steps should be run once in a while to ensure we have an up to date packaging environment. - -### Pbuilder - - DIST=sid git-pbuilder update - DIST=wheezy git-pbuilder update --override-config - -### Cowbuilder - - DIST=sid sudo -E cowbuilder --update - DIST=wheezy sudo -E cowbuilder --update --override-config - -Building --------- - - DIST=wheezy sudo -E cowbuilder --build $package*.dsc - -Signing -------- - -To sign both the `.dsc` and the `.changes` files: - - debsign $package*.changes - -Uploading ---------- - -Simply run - - dupload *changes - -This assumes a `~/.dupload.conf` like the following: - - package config; - $default_host = "myremote"; - - $cfg{'myremote'} = { - fqdn => "myremote.example.org", - login => "user", - method => "scpb", - incoming => "/var/reprepro/incoming/", - # The dinstall on ftp-master sends emails itself - #dinstall_runs => 1, - }; - -It's also important that: - - 1. The host remote port is correctly defined at your `~/.ssh/config`. - 2. The user is in the `reprepro` group in the server. +Index +----- + +* [Basics](basics). +* [Environment](env). +* [Checking sources](checking). +* [Building](building). +* [Repositories](repositories). +* [References](references). +* [TODO](todo). +* Custom procedures: + * [LEAP](leap). + * [Python](python). + * [Ruby](ruby). diff --git a/repositories.md b/repositories.md deleted file mode 100644 index 8f66d72..0000000 --- a/repositories.md +++ /dev/null @@ -1,21 +0,0 @@ -Repositories -============ - -General: - -* [HowToSetupADebianRepository](https://wiki.debian.org/HowToSetupADebianRepository). -* [Setting up your own APT repository with upload support](http://www.debian-administration.org/article/286/Setting_up_your_own_APT_repository_with_upload_support). - -Reprepro: - -* [puppet-reprepro](https://git.sarava.org/?p=puppet-reprepro.git;a=summary). -Alguns links sobre como instalar e usar o reprepro: -* [reprepro](http://mirrorer.alioth.debian.org/). -* [HowToSetupADebianRepository](http://wiki.debian.org/HowToSetupADebianRepository?highlight=(reprepro)). -* [Setting up your own APT repository with upload support](http://www.debian-administration.org/article/Setting_up_your_own_APT_repository_with_upload_support). -* [Setting up a basic Debian repository with reprepro](https://noc.sidux.com/fll/wiki/reprepro). -* [Setting up and managing an APT repository with reprepro](http://www.jejik.com/articles/2006/09/setting_up_and_managing_an_apt_repository_with_reprepro/). - -Removing a package from the repository: - - su reprepro -c "reprepro -b /var/reprepro remove squeeze kedpm" diff --git a/repositories.mdwn b/repositories.mdwn new file mode 100644 index 0000000..8cb956f --- /dev/null +++ b/repositories.mdwn @@ -0,0 +1,21 @@ +Repositories +============ + +General: + +* [HowToSetupADebianRepository](https://wiki.debian.org/HowToSetupADebianRepository). +* [Setting up your own APT repository with upload support](http://www.debian-administration.org/article/286/Setting_up_your_own_APT_repository_with_upload_support). + +Reprepro: + +* [puppet-reprepro](https://git.sarava.org/?p=puppet-reprepro.git;a=summary). +Alguns links sobre como instalar e usar o reprepro: +* [reprepro](http://mirrorer.alioth.debian.org/). +* [HowToSetupADebianRepository](http://wiki.debian.org/HowToSetupADebianRepository). +* [Setting up your own APT repository with upload support](http://www.debian-administration.org/article/Setting_up_your_own_APT_repository_with_upload_support). +* [Setting up a basic Debian repository with reprepro](https://noc.sidux.com/fll/wiki/reprepro). +* [Setting up and managing an APT repository with reprepro](http://www.jejik.com/articles/2006/09/setting_up_and_managing_an_apt_repository_with_reprepro/). + +Removing a package from the repository: + + su reprepro -c "reprepro -b /var/reprepro remove squeeze kedpm" diff --git a/ruby.mdwn b/ruby.mdwn index c11a92d..d84e20a 100644 --- a/ruby.mdwn +++ b/ruby.mdwn @@ -2,4 +2,4 @@ Ruby packaging ============== * See [this](https://wiki.debian.org/Teams/Ruby/Packaging). -* Example: `leap.md`. +* Example: [LEAP](/leap). diff --git a/templates/page.tmpl b/templates/page.tmpl index b525d22..590445c 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -51,7 +51,7 @@
  • /
  • -
  • | Meta
  • +
  • | History
  • | Feed
  • -- cgit v1.2.3