This file is indexed.

/usr/bin/libval-config is in libval-dev 2.0-4.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/bin/sh
#
srcdir=.
prefix=/usr
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
sbindir=${exec_prefix}/sbin
libdir=${prefix}/lib/x86_64-linux-gnu
datadir=${prefix}/share
includedir=${prefix}/include/validator
mandir=${prefix}/share/man

lvc_PREFIX=$prefix
lvc_EXEC_PREFIX=$exec_prefix
lvc_INCLUDEDIR=$includedir
lvc_DEVCFLAGS=""
lvc_CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Ulinux -Dlinux=linux -Ulinux -Dlinux=linux -DLIBVAL_CONFIGURED=1"
lvc_CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
lvc_LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"
lvc_LIBS="-lnsl -lcrypto -lssl  -lpthread"
lvc_LIBDIR="-L${libdir}"
LIBVAL_SUFFIX=-threads

lvc_RESOLV_CONF="/etc/dnssec-tools/resolv.conf"
lvc_ROOT_HINTS="/etc/dnssec-tools/root.hints"
lvc_DNSVAL="/etc/dnssec-tools/dnsval.conf"

if test "x$1" = "x"; then
  usage="yes"
else
  while test "x$done" = "x" -a "x$1" != "x" -a "x$usage" != "xyes"; do
  case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
  esac

  case $1 in
    --prefix=*)
      prefix=$optarg
      lvc_PREFIX=${prefix}
      lvc_INCLUDEDIR=${prefix}/include
      lvc_LIBDIR=-L${prefix}/lib
      ;;

    --exec-prefix=*)
      exec_prefix=$optarg
      lvc_EXEC_PREFIX=${exec_prefix}
      lvc_LIBDIR=-L${exec_prefix}/lib
      ;;

    --configure-options|--con*)
      echo " '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--with-nsec3' '--without-dlv' '--with-ipv6' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'"
      ;;
    #################################################### compile
    --base-cflags)
      echo ${lvc_CFLAGS} ${lvc_CPPFLAGS} -I${lvc_INCLUDEDIR}
      ;;
    --cflags|--cf*)
      echo ${lvc_CFLAGS} ${lvc_DEVFLAGS} ${lvc_CPPFLAGS} -I. -I${lvc_INCLUDEDIR}
      ;;
    --srcdir)
      echo $lvc_SRCDIR
      ;;
    #################################################### linking
    --libdir|--lib-dir)
      echo $lvc_LIBDIR
      ;;
    --ldflags|--ld*)
      echo $lvc_LDFLAGS
      ;;
    #################################################### client lib
    --libs)
      # use this one == --libval-libs + --external-libs
      echo $lvc_LDFLAGS $lvc_LIBDIR -lsres -lval${LIBVAL_SUFFIX} $lvc_LIBS
      ;;
    --libval-libs)
      echo $lvc_LIBDIR -lsres -lval${LIBVAL_SUFFIX}
      ;;
    --external-libs)
      echo $lvc_LDFLAGS $lvc_LIBS
      ;;
    ####################################################
    --resolver-config|--res*)
        echo $lvc_RESOLV_CONF
        ;;
    --root-hints|--roo*)
        echo $lvc_ROOT_HINTS
        ;;
    --dnsval-config|--dns*)
        echo $lvc_DNSVAL
        ;;
    ####################################################
    --version|--ver*)
      echo 0.3
      ;;
    --help)
      usage="yes"
      ;;
    --prefix|--pre*)
      echo $lvc_PREFIX
      ;;
    --exec-prefix)
      echo $lvc_EXEC_PREFIX
      ;;
    *)
      echo "unknown option $1"
      usage="yes"
      ;;
  esac
  shift
  done
fi

if test "x$usage" = "xyes"; then
  echo ""
  echo "Usage:"
  echo "  libval-config [--cflags] [--agent-libs] [--libs] [--version]"
  echo "                  ... [see below for complete flag list]"
  echo ""
  echo "    --version         displays the libval version number"
  echo ""
  echo "  These options produce the various compilation flags needed when"
  echo "  building external SNMP applications:"
  echo ""
  echo "    --base-cflags     lists additional compilation flags needed"
  echo "    --cflags          lists additional compilation flags needed"
  echo "                      (includes -I. and extra developer warning flags)"
  echo ""
  echo "  These options produce the various link flags needed when"
  echo "  building external SNMP applications:"
  echo ""
  echo "    --libs            lists libraries needed for building applications"
  echo ""
  echo "  These options produce various link flags broken down into parts."
  echo "  (Most of the time the simple options above should be used.)"
  echo ""
  echo "    --libdir              path to libval"
  echo ""
  echo "    --libval-libs         libval (with path)"
  echo ""
  echo "    --ldflags             link flags for external libraries"
  echo "    --external-libs       external libraries needed by libval"
  echo ""
  echo "  Details on how the libval package was compiled:"
  echo ""
  echo "    --configure-options   display original configure arguments"
  echo "    --prefix              display the installation prefix"
  echo ""
  echo "    --resolver-config     display path to resolver configuration"
  echo "    --root-hints          display path to root hints file"
  echo "    --dnsval-config       display path to dnsval configuration"
  exit
fi