containers:

  ubuntu:
    builder: ubuntu
    uids: [0-1000, 65534]
    gids: [0-1000, 65534]
    parameters:
      repos: universe
      ppas: libzmq-dbg libzmq-dev libzmq1
      packages:
        gcc make checkinstall wget git
        libzmq-dbg libzmq-dev libzmq1 python3 python3-yaml
        libyaml-dev libev-dev libssl-dev
    provision: |
      /bin/chown root /var/spool/rsyslog


commands:

  build-ubuntu-package:

    description: Create an ubuntu (.deb) package using checkinstall in
      container
    container: ubuntu
    write-mode: transient-hard-link-copy
    run: |
      set -ex
      #
      python3 ./waf configure --prefix=/usr
      python3 ./waf build
      #
      checkinstall \
        --default \
        --maintainer=paul@colomiets.name \
        --pkglicense=MIT \
        --pkgname=zerogw \
        --pkgver=${1:-$(git describe | cut -c2-)} \
        --nodoc \
      python3 ./waf install

containers:

  ubuntu:
    builder: ubuntu
    uids: [0-1000, 65534]
    gids: [0-1000, 65534]
    parameters:
      repos: universe
      ppas: libzmq-dbg libzmq-dev libzmq1
      packages:
        gcc make checkinstall wget git
        libzmq-dbg libzmq-dev libzmq1 python3 python3-yaml
        libyaml-dev libev-dev libssl-dev
    provision: |
      /bin/chown root /var/spool/rsyslog


commands:

  build-ubuntu-package:

    description: Create an ubuntu (.deb) package using checkinstall in
      container
    container: ubuntu
    write-mode: transient-hard-link-copy
    run: |
      set -ex
      #
      python3 ./waf configure --prefix=/usr
      python3 ./waf build
      #
      checkinstall \
        --default \
        --maintainer=paul@colomiets.name \
        --pkglicense=MIT \
        --pkgname=zerogw \
        --requires="libev4, libyaml-0-2, libzmq1" \
        --pkgver=${1:-$(git describe | cut -c2-)} \
        --nodoc \
      python3 ./waf install

Fix dependencies of zerogw package
Fix dependencies of zerogw package
