mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 03:51:16 -05:00
All changes in this commit were automated using the command: shfmt -w -i 2 -ci -bn . $(find . -name "*.sh.in") By default, only *.sh and files without extension are checked, so *.sh.in files have to be added additionally. (See mvdan/sh#944)
32 lines
789 B
Bash
32 lines
789 B
Bash
#!/bin/sh -e
|
|
#
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
#
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
#
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
# information regarding copyright ownership.
|
|
|
|
. ../conf.sh
|
|
|
|
[ -n "${SOFTHSM2_CONF}" ] || {
|
|
echo_i "skip: softhsm2 configuration not available"
|
|
exit 255
|
|
}
|
|
|
|
parse_openssl_config
|
|
[ -f "$SOFTHSM2_MODULE" ] || {
|
|
echo_i "skip: softhsm2 module not available"
|
|
exit 1
|
|
}
|
|
|
|
for _bin in softhsm2-util pkcs11-tool; do
|
|
command -v "$_bin" >/dev/null || {
|
|
echo_i "skip: $_bin not available"
|
|
exit 1
|
|
}
|
|
done
|