summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am8
-rwxr-xr-xtools/cql_config101
-rwxr-xr-xtools/cql_config_defines.sh.sample9
3 files changed, 0 insertions, 118 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 15b11d1db6..5af77b9764 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -11,12 +11,4 @@ DISTCLEANFILES = path_replacer.sh
if GENERATE_DOCS
-# Scripts for Cassandra support. Ultimately those scripts will have to be
-# incorporated in DataStax cpp-driver source tree, but until that happens,
-# let's keep them in Kea repo.
-# Scripts for sysrepo are also included. If users do not want to install
-# the sysrepo libraries and binaries in the default system tree and prefer
-# a custom path, these scripts can be used.
-EXTRA_DIST = cql_config cql_config_defines.sh.sample
-
endif
diff --git a/tools/cql_config b/tools/cql_config
deleted file mode 100755
index 799b50fd7b..0000000000
--- a/tools/cql_config
+++ /dev/null
@@ -1,101 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2016-2021 Internet Systems Consortium, Inc. ("ISC")
-#
-# 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 http://mozilla.org/MPL/2.0/.
-
-# This is keactrl script responsible for starting up Kea processes.
-# This script is used to run Kea from installation directory,
-# as well as for running tests.
-
-# Exit with error if commands exit with non-zero and if undefined variables are
-# used.
-set -eu
-
-cql_lib="cassandra"
-
-if test "$(uname -s)" = "Darwin"; then
- DIR=$(stat -f %N "$0" | xargs dirname)
-else
- DIR=$(readlink -f "$0" | xargs dirname)
-fi
-
-if ! [ -f "${DIR}/cql_config_defines.sh" ] || ! [ -x "${DIR}/cql_config_defines.sh" ]; then
- echo "missing path configuration file for Cassandra (cql_config_defines.sh)"
- exit 1
-fi
-
-# shellcheck disable=SC1091
-# SC1091: Not following: ./cql_config_defines.sh was not specified as input (see shellcheck -x).
-# shellcheck source=./tools/cql_config_defines.sh.sample
-. "${DIR}/cql_config_defines.sh"
-
-if [ $# -ne 1 ] && [ $# -ne 2 ]; then
- echo "run: \`$0 --help\` for more help"
- exit 1
-fi
-
-if [ "$1" = "--help" ]; then
- echo "cql_config 'option' ['library']"
- echo "options:"
- echo "--help"
- echo " print this help message"
- echo "--cflags-only-other"
- echo " get cpp compilation flags"
- echo "--cflags-only-I"
- echo " get include path"
- echo "--libs"
- echo " get lib path"
- echo "--modversion"
- echo " get version"
- echo "--print-errors"
- echo " check existence"
- echo "libraries:"
- echo " cassandra"
- echo " cassandra_static"
- exit 0
-fi
-
-if [ $# -ne 2 ]; then
- echo "run: \`$0 --help\` for more help"
- exit 1
-elif [ "$2" != "cassandra" ] && [ "$2" != "cassandra_static" ]; then
- echo "library $2 not supported"
- echo "run: \`$0 --help\` for more help"
- exit 1
-else
- cql_lib=$2
-fi
-
-if [ "$1" = "--cflags-only-other" ]; then
- exit 0
-fi
-
-if [ "$1" = "--cflags-only-I" ]; then
- echo "-I${CPP_DRIVER_PATH}/include/"
- exit 0
-fi
-
-if [ "$1" = "--libs" ]; then
- echo "-L${CPP_DRIVER_PATH}/build/ -l${cql_lib} -lssl -lcrypto -luv -lz"
- exit 0
-fi
-
-if [ "$1" = "--modversion" ]; then
- MAJOR=$(grep VERSION_MAJOR "${CPP_DRIVER_PATH}/include/cassandra.h" | cut -d " " -f 3)
- MINOR=$(grep VERSION_MINOR "${CPP_DRIVER_PATH}/include/cassandra.h" | cut -d " " -f 3)
- PATCH=$(grep VERSION_PATCH "${CPP_DRIVER_PATH}/include/cassandra.h" | cut -d " " -f 3)
- echo "${MAJOR}.${MINOR}.${PATCH}"
- exit 0
-fi
-
-if [ "$1" = "--print-errors" ]; then
- exit 0
-fi
-
-echo "wrong parameter"
-echo "run: \`$0 --help\` for more help"
-
-exit 1
diff --git a/tools/cql_config_defines.sh.sample b/tools/cql_config_defines.sh.sample
deleted file mode 100755
index 305088e67e..0000000000
--- a/tools/cql_config_defines.sh.sample
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# This auxiliary script is considered temporary in nature. It will not be
-# necessary once the DataStax cpp-driver project accepts proper cql_config
-# script.
-
-# This variable should point to the directory where cpp-driver is compiled.
-# You can download cpp-driver sources from https://github.com/datastax/cpp-driver
-export CPP_DRIVER_PATH="/please/specify/path/to/cpp-driver/in/cql_config_defines.sh"