X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f5776429a3145d59f5b131c25d0f9428ae947f4e..175f44511b8b3cf327e4ed9268420e423229691a:/projects/stargazer/build diff --git a/projects/stargazer/build b/projects/stargazer/build index 770401bb..9875d0a4 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -92,7 +92,6 @@ printf " Building STG 2.4 for $sys $release\n" printf "#############################################################################\n" STG_LIBS="logger.lib - locker.lib crypto.lib common.lib scriptexecuter.lib @@ -354,6 +353,30 @@ else fi rm -f fake +printf "Checking for -lnfnetlink... " +$CC $CFLAGS $LDFLAGS build_check.c -lnfnetlink -o fake > /dev/null 2> /dev/null +if [ $? != 0 ] +then + CHECK_NFNETLINK=no + printf "no\n" +else + CHECK_NFNETLINK=yes + printf "yes\n" +fi +rm -f fake + +printf "Checking for -lnetfilter_queue... " +$CC $CFLAGS $LDFLAGS build_check.c -lnetfilter_queue -o fake > /dev/null 2> /dev/null +if [ $? != 0 ] +then + CHECK_NFQ=no + printf "no\n" +else + CHECK_NFQ=yes + printf "yes\n" +fi +rm -f fake + if [ "$OS" = "linux" ] then printf "Checking for linux/netfilter_ipv4/ip_queue.h... " @@ -415,6 +438,13 @@ then capture/pcap" fi +if [ "$CHECK_NFNETLINK" = "yes" -a "$CHECK_NFQ" = "yes" ] +then + PLUGINS="$PLUGINS + capture/nfqueue" + NFQ_LIBS="-lnfnetlink -lnetfilter_queue" +fi + printf "OS=$OS\n" > $CONFFILE printf "STG_TIME=yes\n" >> $CONFFILE printf "DEBUG=$DEBUG\n" >> $CONFFILE @@ -431,7 +461,10 @@ printf "CHECK_MYSQLCLIENT=$CHECK_MYSQLCLIENT\n" >> $CONFFILE printf "CHECK_PQ=$CHECK_PQ\n" >> $CONFFILE printf "CHECK_XMLRPC=$CHECK_XMLRPC\n" >> $CONFFILE printf "CHECK_PCAP=$CHECK_PCAP\n" >> $CONFFILE +printf "CHECK_NFNETLINK=$CHECK_NFNETLINK\n" >> $CONFFILE +printf "CHECK_NFQ=$CHECK_NFQ\n" >> $CONFFILE printf "DEFS=$DEFS\n" >> $CONFFILE +printf "NFQ_LIBS=$NFQ_LIBS\n" >> $CONFFILE printf "STG_LIBS=" >> $CONFFILE for lib in $STG_LIBS do