Install libedit and pam based on config flags.

This commit is contained in:
Darren Tucker 2021-10-22 09:42:14 +11:00
parent 8c626cc563
commit 34df52c201
1 changed files with 8 additions and 7 deletions

15
.github/setup_ci.sh vendored
View File

@ -23,9 +23,16 @@ if [ "${TARGETS}" = "kitchensink" ]; then
TARGETS="kerberos5 libedit pam sk selinux"
fi
for flag in $CONFIGFLAGS; do
case "$flag" in
--with-pam) PACKAGES="${PACKAGES} libpam0g-dev" ;;
--with-libedit) PACKAGES="${PACKAGES} libedit-dev" ;;
esac
done
for TARGET in $TARGETS; do
case $TARGET in
default|without-openssl|without-zlib|c89)
default|without-openssl|without-zlib|c89|libedit|*pam)
# nothing to do
;;
clang-*|gcc-*)
@ -36,12 +43,6 @@ for TARGET in $TARGETS; do
PACKAGES="$PACKAGES heimdal-dev"
#PACKAGES="$PACKAGES libkrb5-dev"
;;
libedit)
PACKAGES="$PACKAGES libedit-dev"
;;
*pam)
PACKAGES="$PACKAGES libpam0g-dev"
;;
sk)
INSTALL_FIDO_PPA="yes"
PACKAGES="$PACKAGES libfido2-dev libu2f-host-dev libcbor-dev"