github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/debian/BUILD (about)

     1  load("//tools:defs.bzl", "pkg_deb", "pkg_tar", "select_arch", "version")
     2  
     3  package(licenses = ["notice"])
     4  
     5  pkg_tar(
     6      name = "debian-bin",
     7      srcs = [
     8          "//runsc",
     9          "//shim:containerd-shim-runsc-v1",
    10      ],
    11      mode = "0755",
    12      package_dir = "/usr/bin",
    13  )
    14  
    15  pkg_tar(
    16      name = "debian-data",
    17      extension = "tar.gz",
    18      deps = [
    19          ":debian-bin",
    20          "//shim:config",
    21      ],
    22  )
    23  
    24  pkg_deb(
    25      name = "debian",
    26      out = "runsc-latest.deb",
    27      architecture = select_arch(
    28          amd64 = "amd64",
    29          arm64 = "arm64",
    30      ),
    31      changes = "runsc.changes",
    32      conffiles = [
    33          "/etc/containerd/runsc.toml",
    34      ],
    35      data = ":debian-data",
    36      deb = "runsc.deb",
    37      # Note that the description_file will be flatten (all newlines removed),
    38      # and therefore it is kept to a simple one-line description. The expected
    39      # format for debian packages is "short summary\nLonger explanation of
    40      # tool." and this is impossible with the flattening.
    41      description_file = "description",
    42      homepage = "https://gvisor.dev/",
    43      maintainer = "The gVisor Authors <gvisor-dev@googlegroups.com>",
    44      package = "runsc",
    45      postinst = "postinst.sh",
    46      version_file = version,
    47      visibility = [
    48          "//visibility:public",
    49      ],
    50  )