Add doc for Debian packaging

This commit is contained in:
Victor LABORIE 2018-05-30 15:22:17 +02:00
parent 1bc4530430
commit f6aca343fb
1 changed files with 50 additions and 0 deletions

50
docs/debian.md Normal file
View File

@ -0,0 +1,50 @@
# Debian Package
**bkctld** package can be build from the **debian** branch of this Git repository with git-buildpackage and sbuild.
## Dependencies
Install Debian dependencies :
~~~
apt install git-buildpackage sbuild
~~~
Add your user to sbuild :
~~~
sbuild-adduser <username>
~~~
*You must logout and re-login or use `newgrp sbuild` in your current shell*
You need a schroot definition in */etc/schroot/schroot.conf*, eg :
~~~
[sid]
description=Debian sid (unstable)
directory=/srv/chroot/sid
groups=root,sbuild
root-groups=root,sbuild
aliases=unstable,default
~~~
Build the sbuild chroot :
~~~
sbuild-createchroot --include=eatmydata,ccache,gnupg unstable /srv/chroot/sid http://deb.debian.org/debian
~~~
## Build
You must be in **debian** branch :
~~~
git checkout debian
~~~
Launch git-buildpackage :
~~~
gbp buildpackage
~~~