Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/bin
File: isc-config.sh
#!/bin/sh
[0] Fix | Delete
#
[1] Fix | Delete
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[2] Fix | Delete
#
[3] Fix | Delete
# This Source Code Form is subject to the terms of the Mozilla Public
[4] Fix | Delete
# License, v. 2.0. If a copy of the MPL was not distributed with this
[5] Fix | Delete
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
[6] Fix | Delete
#
[7] Fix | Delete
# See the COPYRIGHT file distributed with this work for additional
[8] Fix | Delete
# information regarding copyright ownership.
[9] Fix | Delete
[10] Fix | Delete
prefix=/usr
[11] Fix | Delete
exec_prefix=/usr
[12] Fix | Delete
exec_prefix_set=
[13] Fix | Delete
includedir=/usr/include/bind9
[14] Fix | Delete
libdir_suffix=
[15] Fix | Delete
arch=$(uname -m)
[16] Fix | Delete
[17] Fix | Delete
case $arch in
[18] Fix | Delete
x86_64 | amd64 | sparc64 | s390x | ppc64)
[19] Fix | Delete
libdir=/usr/lib64${libdir_suffix}
[20] Fix | Delete
sec_libdir=/usr/lib${libdir_suffix}
[21] Fix | Delete
;;
[22] Fix | Delete
* )
[23] Fix | Delete
libdir=/usr/lib${libdir_suffix}
[24] Fix | Delete
sec_libdir=/usr/lib64${libdir_suffix}
[25] Fix | Delete
;;
[26] Fix | Delete
esac
[27] Fix | Delete
[28] Fix | Delete
usage()
[29] Fix | Delete
{
[30] Fix | Delete
cat << EOF
[31] Fix | Delete
Usage: isc-config [OPTIONS] [LIBRARIES]
[32] Fix | Delete
Options:
[33] Fix | Delete
[--prefix[=DIR]]
[34] Fix | Delete
[--exec-prefix[=DIR]]
[35] Fix | Delete
[--version]
[36] Fix | Delete
[--libs]
[37] Fix | Delete
[--cflags]
[38] Fix | Delete
Libraries:
[39] Fix | Delete
isc
[40] Fix | Delete
isccc
[41] Fix | Delete
isccfg
[42] Fix | Delete
dns
[43] Fix | Delete
lwres
[44] Fix | Delete
bind9
[45] Fix | Delete
irs
[46] Fix | Delete
EOF
[47] Fix | Delete
exit $1
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
if test $# -eq 0; then
[51] Fix | Delete
usage 1 1>&2
[52] Fix | Delete
fi
[53] Fix | Delete
[54] Fix | Delete
while test $# -gt 0; do
[55] Fix | Delete
case "$1" in
[56] Fix | Delete
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
[57] Fix | Delete
*) optarg= ;;
[58] Fix | Delete
esac
[59] Fix | Delete
[60] Fix | Delete
case "$1" in
[61] Fix | Delete
--prefix=*)
[62] Fix | Delete
prefix=$optarg
[63] Fix | Delete
if test "x$exec_prefix_set" = x ; then
[64] Fix | Delete
exec_prefix=$prefix
[65] Fix | Delete
exec_prefix_set=true
[66] Fix | Delete
fi
[67] Fix | Delete
;;
[68] Fix | Delete
--prefix)
[69] Fix | Delete
echo_prefix=true
[70] Fix | Delete
;;
[71] Fix | Delete
--exec-prefix=*)
[72] Fix | Delete
exec_prefix=$optarg
[73] Fix | Delete
exec_prefix_set=true
[74] Fix | Delete
;;
[75] Fix | Delete
--exec-prefix)
[76] Fix | Delete
echo_exec_prefix=true
[77] Fix | Delete
;;
[78] Fix | Delete
--version)
[79] Fix | Delete
echo VERSION=9.11.36-RedHat-9.11.36-16.el8_10.2
[80] Fix | Delete
exit 0
[81] Fix | Delete
;;
[82] Fix | Delete
--cflags)
[83] Fix | Delete
echo_cflags=true
[84] Fix | Delete
;;
[85] Fix | Delete
--libs)
[86] Fix | Delete
echo_libs=true;
[87] Fix | Delete
;;
[88] Fix | Delete
irs)
[89] Fix | Delete
libirs=true;
[90] Fix | Delete
libdns=true;
[91] Fix | Delete
libisccfg=true;
[92] Fix | Delete
libisc=true;
[93] Fix | Delete
;;
[94] Fix | Delete
isc)
[95] Fix | Delete
libisc=true;
[96] Fix | Delete
;;
[97] Fix | Delete
isccc)
[98] Fix | Delete
libisccc=true;
[99] Fix | Delete
libisc=true;
[100] Fix | Delete
;;
[101] Fix | Delete
isccfg)
[102] Fix | Delete
libisccfg=true;
[103] Fix | Delete
libisc=true;
[104] Fix | Delete
;;
[105] Fix | Delete
dns)
[106] Fix | Delete
libdns=true;
[107] Fix | Delete
libisc=true;
[108] Fix | Delete
;;
[109] Fix | Delete
lwres)
[110] Fix | Delete
liblwres=true;
[111] Fix | Delete
;;
[112] Fix | Delete
bind9)
[113] Fix | Delete
libdns=true;
[114] Fix | Delete
libisc=true;
[115] Fix | Delete
libisccfg=true;
[116] Fix | Delete
libbind9=true;
[117] Fix | Delete
;;
[118] Fix | Delete
*)
[119] Fix | Delete
usage 1 1>&2
[120] Fix | Delete
esac
[121] Fix | Delete
shift
[122] Fix | Delete
done
[123] Fix | Delete
[124] Fix | Delete
if test x"$echo_prefix" = x"true" ; then
[125] Fix | Delete
echo $prefix
[126] Fix | Delete
fi
[127] Fix | Delete
if test x"$echo_exec_prefix" = x"true" ; then
[128] Fix | Delete
echo $exec_prefix
[129] Fix | Delete
fi
[130] Fix | Delete
if test x"$echo_cflags" = x"true"; then
[131] Fix | Delete
if test x"${exec_prefix_set}" = x"true"; then
[132] Fix | Delete
includes="-I${exec_prefix}/include"
[133] Fix | Delete
else
[134] Fix | Delete
includes="-I${includedir}"
[135] Fix | Delete
fi
[136] Fix | Delete
if test x"$libisc" = x"true"; then
[137] Fix | Delete
includes="$includes -D_REENTRANT -DDIG_SIGCHASE -D_GNU_SOURCE "
[138] Fix | Delete
fi
[139] Fix | Delete
echo $includes
[140] Fix | Delete
fi
[141] Fix | Delete
if test x"$echo_libs" = x"true"; then
[142] Fix | Delete
if test x"${exec_prefix_set}" = x"true"; then
[143] Fix | Delete
libs="-L${exec_prefix}/lib"
[144] Fix | Delete
else
[145] Fix | Delete
if [ ! -x $libdir/libisc.so ] ; then
[146] Fix | Delete
if [ ! -x $sec_libdir/libisc.so ] ; then
[147] Fix | Delete
echo "Error: ISC libs not found in $libdir"
[148] Fix | Delete
if [ -d $sec_libdir ] ; then
[149] Fix | Delete
echo "Error: ISC libs not found in $sec_libdir"
[150] Fix | Delete
fi
[151] Fix | Delete
exit 1
[152] Fix | Delete
fi
[153] Fix | Delete
libdir=$sec_libdir
[154] Fix | Delete
fi
[155] Fix | Delete
libs="-L${libdir}"
[156] Fix | Delete
fi
[157] Fix | Delete
if test x"$libirs" = x"true" ; then
[158] Fix | Delete
libs="$libs -lirs"
[159] Fix | Delete
fi
[160] Fix | Delete
if test x"$liblwres" = x"true" ; then
[161] Fix | Delete
libs="$libs -llwres"
[162] Fix | Delete
fi
[163] Fix | Delete
if test x"$libbind9" = x"true" ; then
[164] Fix | Delete
libs="$libs -lbind9"
[165] Fix | Delete
fi
[166] Fix | Delete
if test x"$libdns" = x"true" ; then
[167] Fix | Delete
libs="$libs -ldns -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcrypto"
[168] Fix | Delete
fi
[169] Fix | Delete
if test x"$libisccfg" = x"true" ; then
[170] Fix | Delete
libs="$libs -lisccfg"
[171] Fix | Delete
fi
[172] Fix | Delete
if test x"$libisccc" = x"true" ; then
[173] Fix | Delete
libs="$libs -lisccc"
[174] Fix | Delete
fi
[175] Fix | Delete
if test x"$libisc" = x"true" ; then
[176] Fix | Delete
libs="$libs -lisc -lcrypto"
[177] Fix | Delete
needothers=true
[178] Fix | Delete
fi
[179] Fix | Delete
if test x"$needothers" = x"true" ; then
[180] Fix | Delete
libs="$libs -ldl -lprotobuf-c -lfstrm -lcap -lz -ljson-c -lpthread -lxml2 "
[181] Fix | Delete
fi
[182] Fix | Delete
echo $libs
[183] Fix | Delete
fi
[184] Fix | Delete
[185] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function