diff --git a/README.md b/README.md index e6a84ca..5f77184 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ See [docs/usage.md](docs/usage.md). Man page, in roff language, can be generated with pandoc : ~~~ -pandoc -f markdown -t man usage.md --template default.man -V title=bkctld -V section=8 -V date="$(date '+%d %b %Y')" -V footer="$(git describe --tags)" -V header="bkctld man page" -V author="$(git shortlog -sne|awk '{ $1 = "" } sub(FS,"\n")')" +pandoc -f markdown -t man usage.md --template default.man -V title=bkctld -V section=8 -V date="$(date '+%d %b %Y')" -V footer="$(git describe --tags)" -V header="bkctld man page" ~~~ #### Client configuration diff --git a/docs/debian.md b/docs/debian.md new file mode 100644 index 0000000..ddcc1b3 --- /dev/null +++ b/docs/debian.md @@ -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 +~~~ + +*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 +~~~