nessus-config.pre.in
上传用户:tjescc
上传日期:2021-02-23
资源大小:419k
文件大小:1k
- #!/bin/sh
- #
- # Nessus libraries configuration script
- #
- # by Renaud Deraison - <deraison@cvs.nessus.org>
- #
- # Thanks to the GTK team for the idea.
- #
- # Some code comes from gtk-config
- #
- #
- PREFIX=@prefix@
- LIBDIR=$PREFIX/lib
- INCLUDEDIR=$PREFIX/include
- DEFS="@syspcap@"
- VERSION=@version@
- CIPHER="%CIPHER_LDFLAGS%"
- CIPHER_CFLAGS="%CIPHER_CFLAGS%"
- SSL_CFLAGS="@sslcflags@"
- EXTRA="@EXTRA@ @llib@ @ssl@"
- EGDPATH="@egdpath@"
- usage()
- {
- echo "Usage : nessus-config [ --cflags | --libs | --version | --egd ]"
- exit $1
- }
- test $# -gt 0 || usage 1
- # check whether we have echo -n, depending
- # on the current shell, used
- case `echo -n` in
- -n) Xn= ; Xc='c' ;;
- *) Xn=-n ; Xc=
- esac
- while test $# -gt 0; do
- case "$1" in
- --version)
- echo $VERSION
- exit 0
- ;;
- --libs)
-
- echo $Xn "-L$DESTDIR$LIBDIR -lnessus -lhosts_gatherer @pcap_flag@ $CIPHER $EXTRA $Xc"
- ;;
- --cflags)
- echo $Xn "$DEFS -I$DESTDIR$INCLUDEDIR/nessus $CIPHER_CFLAGS $SSL_CFLAGS $Xc"
- ;;
- --egd)
- echo $Xn "$EGDPATH" $Xc
- ;;
- --help | -h)
- usage 0
- ;;
- *)
- usage 1
- ;;
- esac
- shift
- done
- echo
-