evobackup/server/docs/debian.md

55 lines
952 B
Markdown
Raw Normal View History

2018-05-30 15:22:17 +02:00
# Debian Package
The **bkctld** package can be built from the **debian** branch of
this git repository with git-buildpackage and sbuild.
2018-05-30 15:22:17 +02:00
## 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 the **debian** branch :
2018-05-30 15:22:17 +02:00
~~~
git checkout debian
~~~
Launch git-buildpackage :
~~~
gbp buildpackage
~~~
The generated build files (including the `.deb`) are located in the `/tmp/bkctld/` directory.