summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bind9/package.py
blob: 05f73c57ea33eaf86363fa018bf4647e2906731f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Bind9(AutotoolsPackage):
    """
    BIND 9 has evolved to be a very flexible, full-featured DNS system.
    """

    homepage = "https://github.com/isc-projects/bind9"
    url = "https://github.com/isc-projects/bind9/archive/v9_14_6.tar.gz"

    license("Apache-2.0")

    version("9_14_6", sha256="98be7a7b6d614b519f6c8d6ec7a8a39759ae9604d87228d9dc7c034471e5433e")

    depends_on("libuv", type="link")
    depends_on("pkgconfig", type="build")
    depends_on("openssl", type="link")
    depends_on("iconv", type="link")

    def configure_args(self):
        args = [
            "--without-python",
            "--disable-linux-caps",
            "--with-openssl={0}".format(self.spec["openssl"].prefix),
        ]
        return args