1. Clone BIRD’s Git repository https://gitlab.nic.cz/labs/bird.git and https://salsa.debian.org/debian/bird2.git. Copy the debian folder to BIRD repo.
  2. Install dependencies (building a deb archive requires texlive, so be careful on your disk space):
    1
    2
    apt install -y gcc autoconf automake gcc flex bison libncurses-dev libreadline-dev libssh-dev
    apt install -y docbook-xsl libssh-gcrypt-dev linuxdoc-tools-latex opensp quilt texlive-latex-extra xsltproc
  3. Also packages required for creating a .deb archive:
    1
    apt install -y build-essential fakeroot devscripts
  4. Pop revision first (for example, 2.0.7-4.1moecast1) with dpkg -i.
  5. Build (will be configured by debuild):
    1
    debuild -b -uc -us
  6. After this we can get debs in the parent folder of the git repo.

I haven’t figured out a way not to build the docs (since it requires texlive).

References

  1. BuildingTutorial - Debian Wiki