Skip to content

Building debian package

@aifsair edited this page Oct 4, 2017 · 2 revisions

Foreword

This has been tested in a docker environment based on debian:stable (Debian GNU/linux 9 at the time of writing).

Requirements

To create a deb package from a debian install, you'll need to install the following packages:

# apt-get install git-core devscripts build-essential lintian python-setuptools python-all python3-all python3-setuptools python-ipaddr python-nose python-psutil python3-nose python3-psutil

Required steps

Get the code (v4.0.2 as of now)

# git clone https://github.com/Exa-Networks/exabgp.git
# cd exabgp
# git checkout 4.0.2 

Retrieve debian folder from branch debian/sid

# git checkout origin/debian/sid -- debian

Update the changelog

# dch -v 4.0.2-0 "New upstream release"

Misc steps (required for now)

# rm debian/source/format
# sed -i '/^qa/d' debian/exabgp-common.install

Build the deb files

# debuild -us -uc
This package has a Debian revision number but there does not seem to be
an appropriate original tar file or .orig directory in the parent directory;
(expected one of exabgp_4.0.0.orig.tar.gz, exabgp_4.0.0.orig.tar.bz2,
exabgp_4.0.0.orig.tar.lzma,  exabgp_4.0.0.orig.tar.xz or exabgp.orig)
continue anyway? (y/n)

Answer y and wait for the packages to be construced in ...

Clone this wiki locally