diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index 583cd8469..f66030fc5 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -2,6 +2,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (C) 2017 Intel Corporation # All rights reserved. +# Copyright (c) 2022 Dell Inc, or its subsidiaries. # # Please run this script as root. @@ -23,6 +24,7 @@ function usage() { echo " -b --docs Additional dependencies for building docs" echo " -u --uring Additional dependencies for io_uring" echo " -D --daos Additional dependencies for DAOS" + echo " -A --avahi Additional dependencies for Avahi mDNS Discovery" echo "" exit 0 } @@ -36,6 +38,7 @@ function install_all_dependencies() { INSTALL_DOCS=true INSTALL_LIBURING=true INSTALL_DAOS=true + INSTALL_AVAHI=true } INSTALL_CRYPTO=false @@ -47,8 +50,9 @@ INSTALL_RDMA=false INSTALL_DOCS=false INSTALL_LIBURING=false INSTALL_DAOS=false +INSTALL_AVAHI=false -while getopts 'abdfhipruDR-:' optchar; do +while getopts 'abdfhipruADR-:' optchar; do case "$optchar" in -) case "$OPTARG" in @@ -62,6 +66,7 @@ while getopts 'abdfhipruDR-:' optchar; do docs) INSTALL_DOCS=true ;; uring) INSTALL_LIBURING=true ;; daos) INSTALL_DAOS=true ;; + avahi) INSTALL_AVAHI=true ;; *) echo "Invalid argument '$OPTARG'" usage @@ -78,6 +83,7 @@ while getopts 'abdfhipruDR-:' optchar; do b) INSTALL_DOCS=true ;; u) INSTALL_LIBURING=true ;; D) INSTALL_DAOS=true ;; + A) INSTALL_AVAHI=true ;; *) echo "Invalid argument '$OPTARG'" usage diff --git a/scripts/pkgdep/debian.sh b/scripts/pkgdep/debian.sh index cff21c2b2..038905d45 100755 --- a/scripts/pkgdep/debian.sh +++ b/scripts/pkgdep/debian.sh @@ -3,6 +3,7 @@ # Copyright (C) 2020 Intel Corporation # Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. +# Copyright (c) 2022 Dell Inc, or its subsidiaries. # VERSION_ID_NUM=$(sed 's/\.//g' <<< $VERSION_ID) @@ -83,3 +84,8 @@ if [[ $INSTALL_DOCS == "true" ]]; then # Additional dependencies for building docs apt-get install -y doxygen mscgen graphviz fi +# Additional dependencies for Avahi +if [[ $INSTALL_AVAHI == "true" ]]; then + # Additional dependencies for Avahi + apt-get install -y libavahi-client-dev +fi diff --git a/scripts/pkgdep/rhel.sh b/scripts/pkgdep/rhel.sh index d49fa05ca..2bc864013 100755 --- a/scripts/pkgdep/rhel.sh +++ b/scripts/pkgdep/rhel.sh @@ -2,6 +2,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (C) 2020 Intel Corporation # All rights reserved. +# Copyright (c) 2022 Dell Inc, or its subsidiaries. # disclaimer() { @@ -182,3 +183,8 @@ if [[ $INSTALL_DAOS == "true" ]]; then echo "Skipping installation of DAOS bdev dependencies. It is supported only for CentOS 7, CentOS 8 and Rocky 8" fi fi +# Additional dependencies for Avahi +if [[ $INSTALL_AVAHI == "true" ]]; then + # Additional dependencies for Avahi + yum install -y avahi-devel +fi diff --git a/scripts/pkgdep/sles.sh b/scripts/pkgdep/sles.sh index 520b53b93..0a044a4af 100755 --- a/scripts/pkgdep/sles.sh +++ b/scripts/pkgdep/sles.sh @@ -2,6 +2,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright (C) 2020 Intel Corporation # All rights reserved. +# Copyright (c) 2022 Dell Inc, or its subsidiaries. # # Minimal install zypper install -y gcc gcc-c++ make cunit-devel libaio-devel libopenssl-devel \ @@ -43,3 +44,7 @@ if [[ $INSTALL_DAOS == "true" ]]; then zypper --non-interactive refresh zypper install -y daos-client daos-devel fi +if [[ $INSTALL_AVAHI == "true" ]]; then + # Additional dependencies for Avahi + zypper install -y avahi-devel +fi