github.com/letsencrypt/boulder@v0.20251208.0/tools/make-deb.sh (about)

     1  #!/usr/bin/env bash
     2  #
     3  # Produce a .deb from a built Boulder plus helper files.
     4  #
     5  # This script expects to run on Ubuntu, as configured on GitHub Actions runners
     6  # (with curl, make, and git installed).
     7  #
     8  # -e Stops execution in the instance of a command or pipeline error.
     9  # -u Treat unset variables as an error and exit immediately.
    10  set -eu
    11  cd "$(realpath -- "$(dirname -- "$0")")/.."
    12  
    13  BUILD="$(mktemp -d)"
    14  
    15  mkdir -p "${BUILD}/opt"
    16  cp -a /opt/boulder "${BUILD}/opt/boulder"
    17  
    18  mkdir -p "${BUILD}/DEBIAN"
    19  cat > "${BUILD}/DEBIAN/control" <<-EOF
    20  Package: boulder
    21  Version: 1:${VERSION}
    22  License: Mozilla Public License v2.0
    23  Vendor: ISRG
    24  Architecture: amd64
    25  Maintainer: Community
    26  Section: default
    27  Priority: extra
    28  Homepage: https://github.com/letsencrypt/boulder
    29  Description: Boulder is an ACME-compatible X.509 Certificate Authority
    30  EOF
    31  
    32  dpkg-deb -Zgzip -b "${BUILD}" "boulder-${VERSION}-${COMMIT_ID}.x86_64.deb"